Xenomai API
2.6.5
|
Analogy for Linux, subdevice related features. More...
Go to the source code of this file.
Data Structures | |
struct | a4l_subdevice |
Structure describing the subdevice. More... | |
Macros | |
Subdevices types | |
#define | A4L_SUBD_UNUSED (A4L_SUBD_MASK_SPECIAL|0x1) |
Unused subdevice. | |
#define | A4L_SUBD_AI (A4L_SUBD_MASK_READ|0x2) |
Analog input subdevice. | |
#define | A4L_SUBD_AO (A4L_SUBD_MASK_WRITE|0x4) |
Analog output subdevice. | |
#define | A4L_SUBD_DI (A4L_SUBD_MASK_READ|0x8) |
Digital input subdevice. | |
#define | A4L_SUBD_DO (A4L_SUBD_MASK_WRITE|0x10) |
Digital output subdevice. | |
#define | A4L_SUBD_DIO (A4L_SUBD_MASK_SPECIAL|0x20) |
Digital input/output subdevice. | |
#define | A4L_SUBD_COUNTER (A4L_SUBD_MASK_SPECIAL|0x40) |
Counter subdevice. | |
#define | A4L_SUBD_TIMER (A4L_SUBD_MASK_SPECIAL|0x80) |
Timer subdevice. | |
#define | A4L_SUBD_MEMORY (A4L_SUBD_MASK_SPECIAL|0x100) |
Memory, EEPROM, DPRAM. | |
#define | A4L_SUBD_CALIB (A4L_SUBD_MASK_SPECIAL|0x200) |
Calibration subdevice DACs. | |
#define | A4L_SUBD_PROC (A4L_SUBD_MASK_SPECIAL|0x400) |
Processor, DSP. | |
#define | A4L_SUBD_SERIAL (A4L_SUBD_MASK_SPECIAL|0x800) |
Serial IO subdevice. | |
#define | A4L_SUBD_TYPES |
Mask which gathers all the types. | |
Subdevice features | |
#define | A4L_SUBD_CMD 0x1000 |
The subdevice can handle command (i.e it can perform asynchronous acquisition) | |
#define | A4L_SUBD_MMAP 0x8000 |
The subdevice support mmap operations (technically, any driver can do it; however, the developer might want that his driver must be accessed through read / write. | |
Subdevice status | |
#define | A4L_SUBD_BUSY_NR 0 |
The subdevice is busy, a synchronous or an asynchronous acquisition is occuring. | |
#define | A4L_SUBD_BUSY (1 << A4L_SUBD_BUSY_NR) |
The subdevice is busy, a synchronous or an asynchronous acquisition is occuring. | |
#define | A4L_SUBD_CLEAN_NR 1 |
The subdevice is about to be cleaned in the middle of the detach procedure. | |
#define | A4L_SUBD_CLEAN (1 << A4L_SUBD_CLEAN_NR) |
The subdevice is busy, a synchronous or an asynchronous acquisition is occuring. | |
Analogy for Linux, subdevice related features.
Copyright (C) 1997-2000 David A. Schleef ds@sc Copyright (C) 2008 Alexis Berlemont hlee f.orgalexi s.be rlemo nt@f ree.f r
Xenomai is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Xenomai 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 General Public License for more details.
You should have received a copy of the GNU General Public License along with Xenomai; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.