table of contents
COMEDI_FIND_SUBDEVIC(3) | Comedi reference | COMEDI_FIND_SUBDEVIC(3) |
NAME¶
comedi_find_subdevice_by_type - search for subdevice typeSYNOPSIS¶
#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. The comedi_subdevice_type enum specifies the possible subdevice types.RETURN VALUE¶
If it finds a subdevice with the requested type, it returns its index. If there is an error, the function returns -1 and sets the appropriate error.AUTHORS¶
David Schleef <ds@schleef.org>Author.
Frank Mori Hess <fmhess@users.sourceforge.net>
Author.
Herman Bruyninckx <Herman.Bruyninckx@mech.kuleuven.ac.be>
Author.
Bernd Porr <tech@linux-usb-daq.co.uk>
Author.
Ian Abbott <abbotti@mev.co.uk>
Author.
Éric Piel <piel@delmic.com>
Author.
COPYRIGHT¶
Copyright © 1998-2003 David Schleef07/14/2014 | Comedi |