Specifications
Comedi
52 / 148
Synopsis
#include <comedilib.h>
int comedi_get_buffer_contents(comedi_t * device, unsigned int subdevice);
Description
The function comedi_get_buffer_contents() is used on a subdevice that has a Comedi command in progress. The
number of bytes that are available in the streaming buffer is returned. If there is an error, -1 is returned.
5.4.2.5 comedi_get_buffer_offset
comedi_get_buffer_offset — streaming buffer status
Synopsis
#include <comedilib.h>
int comedi_get_buffer_offset(comedi_t * device, unsigned int subdevice);
Description
The function comedi_get_buffer_offset() is used on a subdevice that has a Comedi command in progress. This function
returns the offset in bytes of the read pointer in the streaming buffer. This offset is only useful for memory mapped buffers. If
there is an error, -1 is returned.
5.4.2.6 comedi_get_buffer_size
comedi_get_buffer_size — streaming buffer size of subdevice
Synopsis
#include <comedilib.h>
int comedi_get_buffer_size(comedi_t * device, unsigned int subdevice);
Description
The function comedi_get_buffer_size() returns the size (in bytes) of the streaming buffer for the subdevice specified by
device and subdevice. On error, -1 is returned.
5.4.2.7 comedi_get_cmd_generic_timed
comedi_get_cmd_generic_timed — streaming input/output capabilities
Synopsis
#include <comedilib.h>
int comedi_get_cmd_generic_timed(comedi_t * device, unsigned int subdevice, comedi_cmd * command, unsigned int chan-
list_len, unsigned int scan_period_ns);