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_global_oor_behavior - out-of-range behavior

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 changes the Comedilib out-of-range behavior. This currently affects the behavior of
       comedi_to_phys when converting endpoint sample values, that is, sample values equal to 0 or maxdata. If
       the out-of-range behavior is set to COMEDI_OOR_NAN, endpoint values are converted to NAN. If the
       out-of-range behavior is set to COMEDI_OOR_NUMBER, the endpoint values are converted similarly to other
       values.

Name

       comedi_set_global_oor_behavior - out-of-range behavior

Return Value

       The previous out-of-range behavior is returned.

Synopsis

#include<comedilib.h>enumcomedi_oor_behaviorcomedi_set_global_oor_behavior(enumcomedi_oor_behaviorbehavior);

See Also