comedi_get_subdevice_type — type of subdevice


#include <comedilib.h>
int comedi_get_subdevice_type(comedi_t * device,
 unsigned int subdevice);


The function comedi_get_subdevice_type returns an integer describing the type of subdevice that belongs to the comedi device device and has the subdevice index subdevice. The comedi_subdevice_type enum specifies the possible values for the subdevice type.

Return value

The function returns the subdevice type, or -1 if there is an error.