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_dio_write - write single bit to digital 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 writes the value bit to the channel channel belonging to the subdevice subdevice of device
       device. This function is equivalent to:

           comedi_data_write(device, subdevice, channel, 0, 0, bit);

       This function does not require a digital subdevice or a subdevice with a maximum data value of 1 to work
       properly.

       If you wish to write multiple digital channels at once, it is more efficient to use comedi_dio_bitfield2
       than to call this function multiple times.

Name

       comedi_dio_write - write single bit to digital channel

Return Value

       Return values and errors are the same as comedi_data_write.

Synopsis

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

See Also