aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorStefan Brüns <stefan.bruens@rwth-aachen.de>2017-10-28 23:12:48 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2017-12-02 10:40:20 +0000
commitca6a2d86acaebd7a7e871fbb361a75101cf9f4cb (patch)
tree1ddfa9ee32b3e04f6ab12044f7cbcbb3c5ab597b /tools/perf/scripts/python
parentiio: adc: ina2xx: Use LSB specifier instead of divider in config (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 <stefan.bruens@rwth-aachen.de> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions