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_get_gate_source - get gate for a subdevice

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 queries the gate for a subdevice, as set by comedi_set_gate_source. The currently
       configured gate source will be written to *gate_source. The possible values and their corresponding gates
       are driver-dependant. If the subdevice does not support configuring its gates on a per-channel basis,
       then the channel parameter will be ignored.

       This function is only useable on subdevices that provide support for the INSN_CONFIG_GET_GATE_SRC
       configuration instruction.

Name

       comedi_get_gate_source - get gate for a subdevice

Return Value

       0 on success, -1 on error.

Status

       alpha

Synopsis

#include<comedilib.h>intcomedi_get_gate_source(comedi_t*device,unsignedintsubdevice,unsignedintchannel,unsignedintgate_index,unsignedint*gate_source);

See Also