table of contents
COMEDI_FIND_RANGE(3) | Comedi reference | COMEDI_FIND_RANGE(3) |
NAME¶
comedi_find_range - search for rangeSYNOPSIS¶
#include <comedilib.h>
int
comedi_find_range(comedi_t * device,
unsigned int subdevice,
unsigned int channel,
unsigned int unit,
double min, double max);
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.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.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.
COPYRIGHT¶
Copyright © 1998-2003 David Schleef07/14/2014 | Comedi |