1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
5
>comedi_dio_bitfield</TITLE
8
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
12
HREF="index.html"><LINK
14
TITLE=" Comedi Function Reference
16
HREF="x3563.html#FUNCTIONREFERENCE"><LINK
18
TITLE="comedi_dio_write"
19
HREF="r4670.html"><LINK
21
TITLE="comedi_sv_init"
22
HREF="r4721.html"></HEAD
33
SUMMARY="Header navigation table"
46
>Control and Measurement Device Interface</I
83
NAME="FUNC-REF-COMEDI-DIO-BITFIELD"
85
>comedi_dio_bitfield</H1
93
>comedi_dio_bitfield -- read/write multiple digital channels</DIV
95
CLASS="REFSYNOPSISDIV"
109
CLASS="FUNCSYNOPSISINFO"
110
>#include <comedilib.h></PRE
115
>int comedi_dio_bitfield</CODE
116
>(comedi_t * device, unsigned int subdevice, unsigned int write_mask, unsigned int * bits);</CODE
131
>The function comedi_dio_bitfield() allows multiple channels to
132
be read simultaneously from a digital input or digital I/O device.
133
The parameter write_mask and the value pointed to by bits
134
are interpreted as bit fields, with the least significant bit
135
representing channel 0. For each bit in write_mask that is
136
set to 1, the cooresponding bit in *bits is written to the digital
137
output channel. After writing all the output channels, each
138
channel is read, and the result placed in the approprate bits in
139
*bits. The result of reading an output channel is undefined.
140
It is not possible to access channels greater than 31 using this
150
SUMMARY="Footer navigation table"
189
>comedi_dio_write</TD
195
HREF="x3563.html#FUNCTIONREFERENCE"
b'\\ No newline at end of file'