comedi_dio_read — read single bit from digital channel
|comedi_t * device,|
|unsigned int subdevice,|
|unsigned int channel,|
|unsigned int * bit|
comedi_dio_read reads the channel
belonging to the
subdevice of device
The data value that is
read is stored in the
This function is equivalent to:
comedi_data_read(device, subdevice, channel, 0, 0, bit);
This function does not require a digital subdevice or a subdevice with a maximum data value of 1 to work properly.
If you wish to read multiple digital channels at once, it is more efficient to
than to call this function multiple times.
Return values and errors are the same as