Xenomai  3.0.8
async.c File Reference

Analogy for Linux, command, transfer, etc. More...

Include dependency graph for async.c:

Functions

int a4l_snd_command (a4l_desc_t *dsc, a4l_cmd_t *cmd)
 Send a command to an Analoy device. More...
 
int a4l_snd_cancel (a4l_desc_t *dsc, unsigned int idx_subd)
 Cancel an asynchronous acquisition. More...
 
int a4l_set_bufsize (a4l_desc_t *dsc, unsigned int idx_subd, unsigned long size)
 Change the size of the asynchronous buffer. More...
 
int a4l_get_bufsize (a4l_desc_t *dsc, unsigned int idx_subd, unsigned long *size)
 Get the size of the asynchronous buffer. More...
 
int a4l_mark_bufrw (a4l_desc_t *dsc, unsigned int idx_subd, unsigned long cur, unsigned long *new)
 Update the asynchronous buffer state. More...
 
int a4l_poll (a4l_desc_t *dsc, unsigned int idx_subd, unsigned long ms_timeout)
 Get the available data count. More...
 
int a4l_mmap (a4l_desc_t *dsc, unsigned int idx_subd, unsigned long size, void **ptr)
 Map the asynchronous ring-buffer into a user-space. More...
 
int a4l_async_read (a4l_desc_t *dsc, void *buf, size_t nbyte, unsigned long ms_timeout)
 Perform asynchronous read operation on the analog input subdevice. More...
 
int a4l_async_write (a4l_desc_t *dsc, void *buf, size_t nbyte, unsigned long ms_timeout)
 Perform asynchronous write operation on the analog input subdevice. More...
 

Detailed Description

Analogy for Linux, command, transfer, etc.

related features

Note
Copyright (C) 1997-2000 David A. Schleef ds@sc.nosp@m.hlee.nosp@m.f.org
Copyright (C) 2008 Alexis Berlemont alexi.nosp@m.s.be.nosp@m.rlemo.nosp@m.nt@f.nosp@m.ree.f.nosp@m.r

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.