related features
Copyright (C) 2008 Alexis Berlemont <alexis.berlemont@free.fr>
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.
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. |