Документ взят из кэша поисковой машины. Адрес оригинального документа : http://jet.sao.ru/hq/sts/linux/comedi/doc/func-ref-comedi-find-range.html
Дата изменения: Unknown
Дата индексирования: Tue Oct 2 09:31:15 2012
Кодировка:
comedi_find_range

comedi_find_range

Name

comedi_find_range -- search for range

Synopsis

#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 chan belonging to a subdevice of the comedi device device, that includes both min and max in units. If a matching range is found, the index of the matching range is returned. If no matching range is available, the function returns -1.