comedi_set_counter_mode man page

comedi_set_counter_mode — change mode of a counter subdevice

Synopsis

#include <comedilib.h>

int comedi_set_counter_mode(comedi_t * device, unsigned int subdevice, unsigned int channel, unsigned int mode);

Status

alpha

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.

Return Value

0 on success, -1 on error.

Authors

David Schleef <ds@schleef.org>

Author.

Frank Mori Hess <fmhess@users.sourceforge.net>

Author.

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

Author.

Bernd Porr <tech@linux-usb-daq.co.uk>

Author.

Ian Abbott <abbotti@mev.co.uk>

Author.

Éric Piel <piel@delmic.com>

Author.

Info

05/11/2017 Comedi reference