Commit graph

7 commits

Author SHA1 Message Date
Ian Abbott
80d809282c demo: update demo programs to set read or write subdevice
Attempt to make the streaming command demos work if the specified
subdevice is not the default 'read' or 'write' subdevice (depending on
the direction of the command).

This uses the new comedi_set_read_subdevice() and
comedi_set_write_subdevice() functions.

Changing the read or write subdevice is currently supported only by the
Linux "in-tree" version of Comedi since kernel version 3.19.
2016-05-13 17:19:10 +01:00
Ian Abbott
7a8b838e66 demo: poll: fix polling of wrong subdevice
The call to comedi_poll() always sets the subdevice parameter to 0.  Set
it to the subdevice that the streaming command is using.
2016-05-13 16:42:14 +01:00
Frank Mori Hess
fbdf65b4f5 Made parse_options() write options to a struct instead of passing
them through global variables.
2007-01-03 21:14:53 +00:00
Frank Mori Hess
ea64ba8daa fixing includes for exit(), memset() for gcc 2.96 compiler warnings 2003-01-01 23:07:02 +00:00
David Schleef
b1886b0378 Removed comedi_poll(), since it was moved to comedilib 2001-10-24 22:25:51 +00:00
David Schleef
31b3e7ed7f Changed the name of verbose_flag; Added a few more flags in main.c 2001-07-14 00:50:52 +00:00
David Schleef
d4b04cd828 added poll example 2001-05-28 02:33:03 +00:00