aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorStefan Brüns <[email protected]>2017-10-28 23:12:48 +0200
committerJonathan Cameron <[email protected]>2017-12-02 10:40:20 +0000
commitca6a2d86acaebd7a7e871fbb361a75101cf9f4cb (patch)
tree1ddfa9ee32b3e04f6ab12044f7cbcbb3c5ab597b /tools/perf/scripts/python
parent2d8119d752d4fe794d768b0c42cdf6cf14b37bcc (diff)
iio: adc: ina2xx: Allow setting Shunt Voltage PGA gain and Bus Voltage range
Reducing shunt and bus voltage range improves the accuracy, so allow altering the default settings. Both settings are exposed as gain values. While for the shunt voltage this is straightforward, the bus range settings of 32V (default) and 16V are mapped to gain values of 1 resp. 2, to provide a uniform API to userspace. As the gain settings are incorporated into the raw values by the sensor itself, adjusting of the scale attributes is not necessary. Signed-off-by: Stefan Brüns <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions