Specifications
Comedi
53 / 148
Description
The command capabilities of the subdevice indicated by the parameters device and subdevice are probed, and the results
placed in the command structure pointed to by the parameter command. The command structure pointed to by command is
modified to be a valid command that can be used as a parameter to comedi_command() (after the command has additionally
been assigned a valid chanlist array). The command measures scans consisting of chanlist_len channels at a scan rate that
corresponds to a period of scan_period_ns nanoseconds. The rate is adjusted to a rate that the device can handle.
Return value
If successful, 0 is returned, otherwise -1.
5.4.2.8 comedi_get_cmd_src_mask
comedi_get_cmd_src_mask — streaming input/output capabilities
Synopsis
#include <comedilib.h>
int comedi_get_cmd_src_mask(comedi_t * device, unsigned int subdevice, comedi_cmd * command);
Description
The command capabilities of the subdevice indicated by the parameters device and subdevice are probed, and the results
placed in the command structure pointed to by command. The trigger source elements of the command structure are set to be the
bitwise-or of the subdevice’s supported trigger sources. Other elements in the structure are undefined.
Return value
If successful, 0 is returned, otherwise -1.
5.4.2.9 comedi_get_max_buffer_size
comedi_get_max_buffer_size — maximum streaming buffer size
Synopsis
#include <comedilib.h>
int comedi_get_max_buffer_size(comedi_t * device, unsigned int subdevice);
Description
The function comedi_get_max_buffer_size() returns the maximum allowable size (in bytes) of the streaming buffer
for the subdevice specified by device and subdevice. Changing the maximum buffer size can be accomplished with com-
edi_set_max_buffer_size() or with the comedi_config program, and requires appropriate privileges. On error, -1 is
returned.
5.4.2.10 comedi_get_read_subdevice
comedi_get_read_subdevice — find streaming input subdevice