Xenomai API  2.5.6.1
src/drvlib/analogy/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.
int a4l_snd_cancel (a4l_desc_t *dsc, unsigned int idx_subd)
 Cancel an asynchronous acquisition.
int a4l_set_bufsize (a4l_desc_t *dsc, unsigned int idx_subd, unsigned long size)
 Change the size of the asynchronous buffer.
int a4l_get_bufsize (a4l_desc_t *dsc, unsigned int idx_subd, unsigned long *size)
 Get the size of the asynchronous buffer.
int a4l_mark_bufrw (a4l_desc_t *dsc, unsigned int idx_subd, unsigned long cur, unsigned long *new)
 Update the asynchronous buffer state.
int a4l_poll (a4l_desc_t *dsc, unsigned int idx_subd, unsigned long ms_timeout)
 Get the available data count.
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.
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.
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.

Detailed Description

Analogy for Linux, command, transfer, etc.

related features

Note:
Copyright (C) 1997-2000 David A. Schleef <[email protected]>
Copyright (C) 2008 Alexis Berlemont <[email protected]>

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.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines