Specifications
Comedi
48 / 148
Return value
If successful, 0 is returned. If there is an error, -1 is returned.
5.4.1.26 comedi_maxdata_is_chan_specific
comedi_maxdata_is_chan_specific — maximum sample depends on channel
Synopsis
#include <comedilib.h>
int comedi_maxdata_is_chan_specific(comedi_t * device, unsigned int subdevice);
Description
If each channel of the specified subdevice may have different maximum sample values, this function returns 1. Otherwise, this
function returns 0. On error, this function returns -1.
5.4.1.27 comedi_open
comedi_open — open a Comedi device
Synopsis
#include <comedilib.h>
comedi_t * comedi_open(const char * filename);
Description
Open a Comedi device specified by the file filename.
Return value
If successful, comedi_open() returns a pointer to a valid comedi_t structure. This structure is opaque; the pointer should not
be dereferenced by the application. NULL is returned on failure.
5.4.1.28 comedi_range_is_chan_specific
comedi_range_is_chan_specific — range information depends on channel
Synopsis
#include <comedilib.h>
int comedi_range_is_chan_specific(comedi_t * device, unsigned int subdevice);
Description
If each channel of the specified subdevice may have different range information, this function returns 1. Otherwise, this function
returns 0. On error, this function returns -1.