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_set_counter_mode - change mode of a counter 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 configures a counter subdevice. The meaning of the mode parameter is driver-dependent. If
       the subdevice does not support configuring its mode on a per-channel basis, then the channel parameter
       will be ignored.

       It is only useable on subdevices that provide support for the INSN_CONFIG_SET_COUNTER_MODE configuration
       instruction.

Name

       comedi_set_counter_mode - change mode of a counter subdevice

Return Value

       0 on success, -1 on error.

Status

       alpha

Synopsis

#include<comedilib.h>intcomedi_set_counter_mode(comedi_t*device,unsignedintsubdevice,unsignedintchannel,unsignedintmode);

See Also