comedi_dio_config man page

comedi_dio_config — change input/output properties of channel

Synopsis

#include <comedilib.h>

int comedi_dio_config(comedi_t * device, unsigned int subdevice, unsigned int channel, unsigned int direction);

Description

The function comedi_dio_config configures individual channels in a digital I/O subdevice to be either input or output, depending on the value of direction. Valid directions are COMEDI_INPUT or COMEDI_OUTPUT.

Depending on the characteristics of the hardware device, multiple channels might be grouped together in hardware when configuring the input/output direction. In this case, a single call to comedi_dio_config for any channel in the group will affect the entire group.

Return Value

If successful, 0 is returned, otherwise -1.

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