1COMEDI_APPLY_PARSED_(3) Comedi reference COMEDI_APPLY_PARSED_(3)
2
3
4
6 comedi_apply_parsed_calibration - set calibration from memory
7
9 #include <comedilib.h>
10
11 int comedi_apply_parsed_calibration(comedi_t * device,
12 unsigned int subdevice,
13 unsigned int channel,
14 unsigned int range,
15 unsigned int aref,
16 const comedi_calibration_t * calibration);
17
19 alpha
20
22 This function is similar to comedi_apply_calibration, except the
23 calibration information is read from memory instead of a file. This
24 function can be more efficient than comedi_apply_calibration since the
25 calibration file does not need to be reparsed with every call. The
26 value of parameter calibration is obtained by a call to
27 comedi_parse_calibration_file.
28
30 Returns 0 on success, -1 on failure.
31
33 David Schleef <ds@schleef.org>
34 Author.
35
36 Frank Mori Hess <fmhess@users.sourceforge.net>
37 Author.
38
39 Herman Bruyninckx <Herman.Bruyninckx@mech.kuleuven.ac.be>
40 Author.
41
42 Bernd Porr <tech@linux-usb-daq.co.uk>
43 Author.
44
45 Ian Abbott <abbotti@mev.co.uk>
46 Author.
47
48 Éric Piel <piel@delmic.com>
49 Author.
50
52 Copyright © 1998-2003 David Schleef
53 Copyright © 2001-2003, 2005, 2008 Frank Mori Hess
54 Copyright © 2002-2003 Herman Bruyninckx
55 Copyright © 2012 Bernd Porr
56 Copyright © 2012 Ian Abbott
57 Copyright © 2012, 2015 Éric Piel
58
59 This document is part of Comedilib. In the context of this document,
60 the term "source code" as defined by the license is interpreted as the
61 XML source.
62
63 This library is free software; you can redistribute it and/or modify it
64 under the terms of the GNU Lesser General Public License as published
65 by the Free Software Foundation, version 2.1 of the License.
66
67 This library is distributed in the hope that it will be useful, but
68 WITHOUT ANY WARRANTY; without even the implied warranty of
69 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
70 General Public License for more details.
71
72 You should have received a copy of the GNU Lesser General Public
73 License along with this library; if not, write to the Free Software
74 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
75 USA.
76
77
78
79
80Comedi 05/11/2017 COMEDI_APPLY_PARSED_(3)