1COMEDI_COMMAND(3) COMEDI_COMMAND(3)
2
3
4
6 comedi_command - start streaming input/output
7
9 #include <comedilib.h>
10
11 int comedi_command (comedi_t * device, comedi_cmd * command);
12
14 The function comedi_command() starts streaming input or output. The
15 command structure pointed to by the parameter command specifies the
16 acquisition. The command must be able to pass comedi_command_test()
17 with a return value of 0, or comedi_command() will fail. For input
18 subdevices, sample values are read using the function read(). For out‐
19 put subdevices, sample values are written using the function write().
20
21 If sucessful, 0 is returned, otherwise -1.
22
23 28 October 2007 COMEDI_COMMAND(3)