1
.\" This manpage has been automatically generated by docbook2man
2
.\" from a DocBook document. This tool can be found at:
3
.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/>
4
.\" Please send any bug reports, improvements, comments, patches,
5
.\" etc. to Steve Cheng <steve@ggi-project.org>.
6
.TH "COMEDI_DIO_READ" "3" "02 October 2004" "" ""
9
comedi_dio_read \- read single bit from digital channel
12
\fB#include <comedilib.h>
14
int comedi_dio_read (comedi_t * \fIdevice\fB, unsigned int \fIsubdevice\fB, unsigned int \fIchannel\fB, unsigned int * \fIbit\fB);
18
The function reads the channel channel belonging to the
19
subdevice subdevice of device device. The data value that is
20
read is stored in the location pointed to by bit. This function
21
is equivalent to comedi_data_read(device,subdevice,channel,0,0,bit).
22
This function does not require a digital subdevice or a subdevice
23
with a maximum data value of 1 to work properly.
25
Return values and errors are the same as comedi_data_read().