~ubuntu-branches/ubuntu/intrepid/comedilib/intrepid

« back to all changes in this revision

Viewing changes to doc/man/comedi_data_write.3

  • Committer: Bazaar Package Importer
  • Author(s): David Schleef
  • Date: 2004-11-04 11:43:51 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041104114351-a50kaei5yamka8r6
Tags: 0.7.22-2
It helps if the shared library is actually in the package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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" "" ""
 
7
 
 
8
.SH NAME
 
9
comedi_data_write \- write single sample to channel
 
10
.SH SYNOPSIS
 
11
.sp
 
12
\fB#include <comedilib.h>
 
13
.sp
 
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);
 
15
\fR
 
16
.SH "DESCRIPTION"
 
17
.PP
 
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
 
23
silently ignored.
 
24
.PP
 
25
The function comedi_data_write() writes the data value specified
 
26
by the parameter data to the specified channel.
 
27
.PP
 
28
On sucess, comedi_data_write() returns 1 (the number of samples
 
29
written).  If there is an error, -1 is returned.
 
30
.PP