table of contents
COMEDI_COMMAND(3) | Comedi reference | COMEDI_COMMAND(3) |
NAME¶
comedi_command - start streaming input/outputSYNOPSIS¶
#include <comedilib.h>
int
comedi_command(comedi_t * device,
comedi_cmd * command);
DESCRIPTION¶
The function comedi_command starts a streaming input or output. The command structure pointed to by command specifies settings for the acquisition. The command must be able to pass comedi_command_test with a return value of 0, or comedi_command will fail. For input subdevices, sample values are read using the function read on the device file. For output subdevices, sample values are written using the function write.RETURN VALUE¶
If successful, 0 is returned, otherwise -1.AUTHORS¶
David Schleef <ds@schleef.org>Author.
Frank Mori Hess <fmhess@users.sourceforge.net>
Author.
Herman Bruyninckx <Herman.Bruyninckx@mech.kuleuven.ac.be>
Author.
Bernd Porr <tech@linux-usb-daq.co.uk>
Author.
Ian Abbott <abbotti@mev.co.uk>
Author.
Éric Piel <piel@delmic.com>
Author.
COPYRIGHT¶
Copyright © 1998-2003 David Schleef07/14/2014 | Comedi |