1COMEDI_FIND_SUBDEVICE_BY_TYPE(3)              COMEDI_FIND_SUBDEVICE_BY_TYPE(3)
2
3
4

NAME

6       comedi_find_subdevice_by_type - search for subdevice type
7

SYNOPSIS

9       #include <comedilib.h>
10
11       int   comedi_find_subdevice_by_type   (comedi_t  *  device,  int  type,
12       unsigned int start_subdevice);
13

DESCRIPTION

15       The function comedi_find_subdevice_by_type() tries to locate  a  subde‐
16       vice belonging to comedi device device, having type type, starting with
17       the subdevice start_subdevice.   If  it  finds  a  subdevice  with  the
18       requested  type,  it  returns  its  index.   If  it does not locate the
19       requested subdevice, it returns -1 and sets the Comedilib error  number
20       to  XXX  "subdevice  not  found".   If  there is an error, the function
21       returns -1 and sets the appropriate error.
22
23                                28 October 2007COMEDI_FIND_SUBDEVICE_BY_TYPE(3)
Impressum