1COMEDI_FIND_SUBDEVIC(3)        Comedi reference        COMEDI_FIND_SUBDEVIC(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 subdevice
16       belonging to comedi device device, having type type, starting with the
17       subdevice start_subdevice. The comedi_subdevice_type enum specifies the
18       possible subdevice types.
19

RETURN VALUE

21       If it finds a subdevice with the requested type, it returns its index.
22       If there is an error, the function returns -1 and sets the appropriate
23       error.
24

AUTHORS

26       David Schleef <ds@schleef.org>
27           Author.
28
29       Frank Mori Hess <fmhess@users.sourceforge.net>
30           Author.
31
32       Herman Bruyninckx <Herman.Bruyninckx@mech.kuleuven.ac.be>
33           Author.
34
35       Bernd Porr <tech@linux-usb-daq.co.uk>
36           Author.
37
38       Ian Abbott <abbotti@mev.co.uk>
39           Author.
40
41       Éric Piel <piel@delmic.com>
42           Author.
43
45       Copyright © 1998-2003 David Schleef
46       Copyright © 2001-2003, 2005, 2008 Frank Mori Hess
47       Copyright © 2002-2003 Herman Bruyninckx
48       Copyright © 2012 Bernd Porr
49       Copyright © 2012 Ian Abbott
50       Copyright © 2012, 2015 Éric Piel
51
52       This document is part of Comedilib. In the context of this document,
53       the term "source code" as defined by the license is interpreted as the
54       XML source.
55
56       This library is free software; you can redistribute it and/or modify it
57       under the terms of the GNU Lesser General Public License as published
58       by the Free Software Foundation, version 2.1 of the License.
59
60       This library is distributed in the hope that it will be useful, but
61       WITHOUT ANY WARRANTY; without even the implied warranty of
62       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
63       General Public License for more details.
64
65       You should have received a copy of the GNU Lesser General Public
66       License along with this library; if not, write to the Free Software
67       Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
68       USA.
69
70
71
72
73Comedi                            05/11/2017           COMEDI_FIND_SUBDEVIC(3)
Impressum