1COMEDI_GET_HARDCAL_CONVERTER(3) COMEDI_GET_HARDCAL_CONVERTER(3)
2
3
4
6 comedi_get_hardcal_converter - get converter for hardware-calibrated
7 subdevice
8
10 #include <comedilib.h>
11
12 int comedi_get_hardcal_converter (comedi_t *dev, unsigned subdevice,
13 unsigned channel, unsigned range, enum comedi_conversion_direction
14 direction, comedi_polynomial_t *converter);
15
17 alpha
18
20 comedi_get_hardcal_converter() initializes converter so it can be
21 passed to either comedi_to_physical() or comedi_from_physical(). The
22 result can be used to convert data from the specified subdevice, chan‐
23 nel, and range. The direction parameter specifies whether converter
24 will be passed to comedi_to_physical() or comedi_from_physical().
25
26 This function initializes converter as a simple linear function with no
27 calibration information, appropriate for boards which do their
28 gain/offset/nonlinearity corrections in hardware. If your board needs
29 calibration to be performed in software by the host computer, use
30 comedi_get_softcal_converter() instead. A subdevice will advertise the
31 fact that it depends on a software calibration with the SDF_SOFT_CALI‐
32 BRATED subdevice flag.
33
34 The result of this function will only depend on the channel parameter
35 if either comedi_range_is_chan_specific() or comedi_max‐
36 data_is_chan_specific() is true for the specified subdevice.
37
39 Zero on success or -1 on failure.
40
41 28 October 2007COMEDI_GET_HARDCAL_CONVERTER(3)