1COMEDI_GET_N_CHANNEL(3) Comedi reference COMEDI_GET_N_CHANNEL(3)
2
3
4
6 comedi_get_n_channels - number of subdevice channels
7
9 #include <comedilib.h>
10
11 int comedi_get_n_channels(comedi_t * device, unsigned int subdevice);
12
14 The function comedi_get_n_channels returns the number of channels of
15 the subdevice subdevice belonging to the comedi device device. This
16 function returns -1 on error and the Comedilib error value is set.
17
19 David Schleef <ds@schleef.org>
20 Author.
21
22 Frank Mori Hess <fmhess@users.sourceforge.net>
23 Author.
24
25 Herman Bruyninckx <Herman.Bruyninckx@mech.kuleuven.ac.be>
26 Author.
27
28 Bernd Porr <tech@linux-usb-daq.co.uk>
29 Author.
30
31 Ian Abbott <abbotti@mev.co.uk>
32 Author.
33
34 Éric Piel <piel@delmic.com>
35 Author.
36
38 Copyright © 1998-2003 David Schleef
39 Copyright © 2001-2003, 2005, 2008 Frank Mori Hess
40 Copyright © 2002-2003 Herman Bruyninckx
41 Copyright © 2012 Bernd Porr
42 Copyright © 2012 Ian Abbott
43 Copyright © 2012, 2015 Éric Piel
44
45 This document is part of Comedilib. In the context of this document,
46 the term "source code" as defined by the license is interpreted as the
47 XML source.
48
49 This library is free software; you can redistribute it and/or modify it
50 under the terms of the GNU Lesser General Public License as published
51 by the Free Software Foundation, version 2.1 of the License.
52
53 This library is distributed in the hope that it will be useful, but
54 WITHOUT ANY WARRANTY; without even the implied warranty of
55 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
56 General Public License for more details.
57
58 You should have received a copy of the GNU Lesser General Public
59 License along with this library; if not, write to the Free Software
60 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
61 USA.
62
63
64
65
66Comedi 05/11/2017 COMEDI_GET_N_CHANNEL(3)