logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

comedi_find_range - search for range

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_find_range tries to locate the optimal (smallest) range for the channel channel
       belonging to subdevice subdevice of the comedi device device, that includes both min and max in units of
       unit.

Name

       comedi_find_range - search for range

Return Value

       If a matching range is found, the index of the matching range is returned. If no matching range is
       available, the function returns -1.

Synopsis

#include<comedilib.h>intcomedi_find_range(comedi_t*device,unsignedintsubdevice,unsignedintchannel,unsignedintunit,doublemin,doublemax);

See Also