diff options
| author | Jonathan Cameron <[email protected]> | 2022-06-26 13:29:32 +0100 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2022-08-15 22:30:01 +0100 |
| commit | 5c64990b99aa91622cf044a9a2f7a78de8f770a2 (patch) | |
| tree | 7dd6a06389ed9d6bfc41acb2b65d5abf46b919e9 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 431e9147b4667d67399fe5db4f8203d55811951b (diff) | |
iio: core: Introduce _zeropoint for differential channels
Address an ABI gap for device where the offset of both lines in a
differential pair may be controlled so as to allow a wider range of
inputs, but without having any direct effect of the differential
measurement.
_offset cannot be used as to remain in line with existing usage,
userspace would be expected to apply it as (_raw + _offset) * _scale
whereas _zeropoint is not. i.e. If we were computing the differential
in software it would be.
((postive_raw + _zeropoint) - (negative_raw + zeropoint) + _offset) * _scale
= ((postive_raw - negative_raw) + _offset) * _scale
= (differential_raw + _offset) * _scale
Similarly calibbias is expected to tweak the measurement seen, not
the adjust the two lines of the differential pair.
Needed for in_capacitanceX-capacitanceY_zeropoint for the
AD7746 CDC driver.
Signed-off-by: Jonathan Cameron <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions