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_internal_trigger - generate soft trigger

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

       This function sends an INSN_INTTRIG instruction to a subdevice, which causes an internal triggering
       event. This event can, for example, trigger a subdevice to start an asynchronous command.

       The trig_num parameter is reserved for future use, and should be set to 0. It is likely it will be used
       in the future to support multiple independent internal triggers. For example, an asynchronous command
       might be specified for a subdevice with a start_src of TRIG_INT, and a start_arg of 5. Then the start
       event would only be triggered if comedi_internal_trigger were called on the subdevice with a trig_num
       equal to the same value of 5.

Name

       comedi_internal_trigger - generate soft trigger

Return Value

       0 on success, -1 on error.

Synopsis

#include<comedilib.h>intcomedi_internal_trigger(comedi_t*device,unsignedintsubdevice,unsignedinttrig_num);

See Also