1COMEDI_DIO_READ(3) COMEDI_DIO_READ(3)
2
3
4
6 comedi_dio_read - read single bit from digital channel
7
9 #include <comedilib.h>
10
11 int comedi_dio_read (comedi_t * device, unsigned int subdevice,
12 unsigned int channel, unsigned int * bit);
13
15 The function reads the channel channel belonging to the subdevice sub‐
16 device of device device. The data value that is read is stored in the
17 location pointed to by bit. This function is equivalent to
18 comedi_data_read(device,subdevice,channel,0,0,bit). This function does
19 not require a digital subdevice or a subdevice with a maximum data
20 value of 1 to work properly.
21
22 Return values and errors are the same as comedi_data_read().
23
24 28 October 2007 COMEDI_DIO_READ(3)