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