Документ взят из кэша поисковой машины. Адрес оригинального документа : http://mavr.sao.ru/hq/sts/linux/comedi/doc/func-ref-comedi-find-subdevice-by-type.html
Дата изменения: Unknown
Дата индексирования: Fri Dec 28 19:53:22 2007
Кодировка:

Поисковые слова: arp 220
comedi_find_subdevice_by_type

comedi_find_subdevice_by_type

Name

comedi_find_subdevice_by_type -- search for subdevice type

Synopsis

#include <comedilib.h>

int comedi_find_subdevice_by_type(comedi_t * device, int type, unsigned int start_subdevice);

Description

The function comedi_find_subdevice_by_type() tries to locate a subdevice belonging to comedi device device, having type type, starting with the subdevice start_subdevice. If it finds a subdevice with the requested type, it returns its index. If it does not locate the requested subdevice, it returns -1 and sets the Comedilib error number to XXX "subdevice not found". If there is an error, the function returns -1 and sets the appropriate error.