logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

comedi_find_subdevice_by_type - search for subdevice type

Authors

DavidSchleef <ds@schleef.org>
           Author.

       FrankMoriHess <fmhess@users.sourceforge.net>
           Author.

       HermanBruyninckx <Herman.Bruyninckx@mech.kuleuven.ac.be>
           Author.

       BerndPorr <tech@linux-usb-daq.co.uk>
           Author.

       IanAbbott <abbotti@mev.co.uk>
           Author.

       ÉricPiel <piel@delmic.com>
           Author.

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.

Name

       comedi_find_subdevice_by_type - search for subdevice type

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.

Synopsis

#include<comedilib.h>intcomedi_find_subdevice_by_type(comedi_t*device,inttype,unsignedintstart_subdevice);

See Also