Risk-Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

comedi_dio_get_config - query input/output properties of channel

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

       The function comedi_dio_get_config queries the input/output configuration of an individual channel in a
       digital I/O subdevice (see comedi_dio_config). On success, *direction will be set to either COMEDI_INPUT
       or COMEDI_OUTPUT.

Name

       comedi_dio_get_config - query input/output properties of channel

Return Value

       If successful, 0 is returned, otherwise -1.

Synopsis

#include<comedilib.h>intcomedi_dio_get_config(comedi_t*device,unsignedintsubdevice,unsignedintchannel,unsignedint*direction);

See Also