Xenomai
3.1
|
Functions | |
int | a4l_open (a4l_desc_t *dsc, const char *fname) |
Open an Analogy device and basically fill the descriptor. More... | |
int | a4l_close (a4l_desc_t *dsc) |
Close the Analogy device related with the descriptor. More... | |
int | a4l_fill_desc (a4l_desc_t *dsc) |
Fill the descriptor with subdevices, channels and ranges data. More... | |
int | a4l_get_subdinfo (a4l_desc_t *dsc, unsigned int subd, a4l_sbinfo_t **info) |
Get an information structure on a specified subdevice. More... | |
int | a4l_get_chinfo (a4l_desc_t *dsc, unsigned int subd, unsigned int chan, a4l_chinfo_t **info) |
Get an information structure on a specified channel. More... | |
int | a4l_get_rnginfo (a4l_desc_t *dsc, unsigned int subd, unsigned int chan, unsigned int rng, a4l_rnginfo_t **info) |
Get an information structure on a specified range. More... | |
This is the API interface used to fill and use Analogy device descriptor structure
int a4l_close | ( | a4l_desc_t * | dsc | ) |
Close the Analogy device related with the descriptor.
The file descriptor is associated with a context. The context is one of the enabler of asynchronous transfers. So, by closing the file descriptor, the programer must keep in mind that the currently occuring asynchronous transfer will cancelled.
[in] | dsc | Device descriptor |
References a4l_sys_close(), and a4l_descriptor::fd.
int a4l_fill_desc | ( | a4l_desc_t * | dsc | ) |
Fill the descriptor with subdevices, channels and ranges data.
[in] | dsc | Device descriptor partly filled by a4l_open(). |
References a4l_descriptor::fd, and a4l_descriptor::magic.
int a4l_get_chinfo | ( | a4l_desc_t * | dsc, |
unsigned int | subd, | ||
unsigned int | chan, | ||
a4l_chinfo_t ** | info | ||
) |
Get an information structure on a specified channel.
[in] | dsc | Device descriptor filled by a4l_open() and a4l_fill_desc() |
[in] | subd | Subdevice index |
[in] | chan | Channel index |
[out] | info | Channel information structure |
References a4l_descriptor::magic.
int a4l_get_rnginfo | ( | a4l_desc_t * | dsc, |
unsigned int | subd, | ||
unsigned int | chan, | ||
unsigned int | rng, | ||
a4l_rnginfo_t ** | info | ||
) |
Get an information structure on a specified range.
[in] | dsc | Device descriptor filled by a4l_open() and a4l_fill_desc() |
[in] | subd | Subdevice index |
[in] | chan | Channel index |
[in] | rng | Range index |
[out] | info | Range information structure |
References a4l_descriptor::magic.
int a4l_get_subdinfo | ( | a4l_desc_t * | dsc, |
unsigned int | subd, | ||
a4l_sbinfo_t ** | info | ||
) |
Get an information structure on a specified subdevice.
[in] | dsc | Device descriptor filled by a4l_open() and a4l_fill_desc() |
[in] | subd | Subdevice index |
[out] | info | Subdevice information structure |
References a4l_descriptor::magic.
Referenced by a4l_sync_dio().
int a4l_open | ( | a4l_desc_t * | dsc, |
const char * | fname | ||
) |
Open an Analogy device and basically fill the descriptor.
[out] | dsc | Device descriptor |
[in] | fname | Device name |
References A4L_BSC_DESC, a4l_sys_close(), a4l_sys_desc(), a4l_sys_open(), and a4l_descriptor::fd.