logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

comedi_command - start streaming input/output

Authors

DavidSchleef <ds@schleef.org>
           Author.

       FrankMoriHess <fmhess@users.sourceforge.net>
           Author.

       HermanBruyninckx <Herman.Bruyninckx@mech.kuleuven.ac.be>
           Author.

       BerndPorr <tech@linux-usb-daq.co.uk>
           Author.

       IanAbbott <abbotti@mev.co.uk>
           Author.

       ÉricPiel <piel@delmic.com>
           Author.

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 descriptor. For output subdevices, sample values are written using the
       function write.

Name

       comedi_command - start streaming input/output

Return Value

       On success, 0 is returned. On failure, -1 is returned.

Synopsis

#include<comedilib.h>intcomedi_command(comedi_t*device,comedi_cmd*command);

See Also