Xenomai API
2.6.5
|
Functions | |
int | a4l_sync_write (a4l_desc_t *dsc, unsigned int idx_subd, unsigned int chan_desc, unsigned int ns_delay, void *buf, size_t nbyte) |
Perform a synchronous acquisition write operation. More... | |
int | a4l_sync_read (a4l_desc_t *dsc, unsigned int idx_subd, unsigned int chan_desc, unsigned int ns_delay, void *buf, size_t nbyte) |
Perform a synchronous acquisition read operation. More... | |
int | a4l_sync_dio (a4l_desc_t *dsc, unsigned int idx_subd, void *mask, void *buf) |
Perform a synchronous acquisition digital acquisition. More... | |
int | a4l_config_subd (a4l_desc_t *dsc, unsigned int idx_subd, unsigned int type,...) |
Configure a subdevice. More... | |
int a4l_config_subd | ( | a4l_desc_t * | dsc, |
unsigned int | idx_subd, | ||
unsigned int | type, | ||
... | |||
) |
Configure a subdevice.
a4l_config_subd() takes a variable count of arguments. According to the configuration type, some additional argument is necessary:
[in] | dsc | Device descriptor filled by a4l_open() (and optionally a4l_fill_desc()) |
[in] | idx_subd | Index of the concerned subdevice |
[in] | type | Configuration parameter |
References A4L_INSN_CONFIG, a4l_snd_insn(), CHAN, a4l_instruction::chan_desc, a4l_instruction::data_size, and a4l_instruction::type.
int a4l_sync_dio | ( | a4l_desc_t * | dsc, |
unsigned int | idx_subd, | ||
void * | mask, | ||
void * | buf | ||
) |
Perform a synchronous acquisition digital acquisition.
[in] | dsc | Device descriptor filled by a4l_open() (and optionally a4l_fill_desc()) |
[in] | idx_subd | Index of the concerned subdevice |
[in] | mask | Write mask which indicates which bit(s) must be modified |
[in,out] | buf | Input / output buffer |
References a4l_get_subdinfo(), A4L_INSN_BITS, a4l_sizeof_subd(), a4l_snd_insn(), a4l_instruction::data_size, and a4l_instruction::type.
int a4l_sync_read | ( | a4l_desc_t * | dsc, |
unsigned int | idx_subd, | ||
unsigned int | chan_desc, | ||
unsigned int | ns_delay, | ||
void * | buf, | ||
size_t | nbyte | ||
) |
Perform a synchronous acquisition read operation.
[in] | dsc | Device descriptor filled by a4l_open() (and optionally a4l_fill_desc()) |
[in] | idx_subd | Index of the concerned subdevice |
[in] | chan_desc | Channel descriptor (channel, range and reference) |
[in] | ns_delay | Optional delay (in nanoseconds) to wait between the setting of the input channel and sample(s) acquisition(s). |
[in] | buf | Input buffer |
[in] | nbyte | Number of bytes to read |
References A4L_INSN_READ, A4L_INSN_WAIT, a4l_snd_insn(), a4l_snd_insnlist(), a4l_instruction_list::count, a4l_instruction::data, a4l_instruction::data_size, and a4l_instruction::type.
int a4l_sync_write | ( | a4l_desc_t * | dsc, |
unsigned int | idx_subd, | ||
unsigned int | chan_desc, | ||
unsigned int | ns_delay, | ||
void * | buf, | ||
size_t | nbyte | ||
) |
Perform a synchronous acquisition write operation.
[in] | dsc | Device descriptor filled by a4l_open() (and optionally a4l_fill_desc()) |
[in] | idx_subd | Index of the concerned subdevice |
[in] | chan_desc | Channel descriptor (channel, range and reference) |
[in] | ns_delay | Optional delay (in nanoseconds) to wait between the setting of the input channel and sample(s) acquisition(s). |
[in] | buf | Output buffer |
[in] | nbyte | Number of bytes to write |
References A4L_INSN_WAIT, A4L_INSN_WRITE, a4l_snd_insn(), a4l_snd_insnlist(), a4l_instruction_list::count, a4l_instruction::data, a4l_instruction::data_size, and a4l_instruction::type.