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_DATA_WRITE" "3" "02 October 2004" "" ""
9
comedi_data_write \- write single sample to channel
12
\fB#include <comedilib.h>
14
int comedi_data_write (comedi_t * \fIdevice\fB, unsigned int \fIsubdevice\fB, unsigned int \fIchannel\fB, unsigned int \fIrange\fB, unsigned int \fIaref\fB, lsampl_t \fIdata\fB);
18
Writes a single sample on the channel that is specified by the
19
Comedi device device, the subdevice subdevice, and the channel
20
channel. If appropriate, the device is configured to use range
21
specification range and analog reference type aref. Analog
22
reference types that are not supported by the device are
25
The function comedi_data_write() writes the data value specified
26
by the parameter data to the specified channel.
28
On sucess, comedi_data_write() returns 1 (the number of samples
29
written). If there is an error, -1 is returned.