1COMEDI_FIND_RANGE(3) COMEDI_FIND_RANGE(3)
2
3
4
6 comedi_find_range - search for range
7
9 #include <comedilib.h>
10
11 int comedi_find_range (comedi_t * device, unsigned int subdevice,
12 unsigned int channel, unsigned int unit, double min, double max);
13
15 The function comedi_find_range() tries to locate the optimal (smallest)
16 range for the channel chan belonging to a subdevice of the comedi
17 device device, that includes both min and max in units. If a matching
18 range is found, the index of the matching range is returned. If no
19 matching range is available, the function returns -1.
20
21 28 October 2007 COMEDI_FIND_RANGE(3)