zephyr/drivers/sensor/max17055
Hayden Ball 893857b48a max17055: Fix current conversion from MAX17055 unit to milliamps
`SENSOR_CHAN_GAUGE_AVG_CURRENT` is currently treated as a capacity
by the MAX17055 driver, however the unit conversion is different
for current and must be calculated separately.

Add a separate method to convert a current reading to milliamps
from 1.5625 uV/R_SENSE units, instead of the 5uVH/R_SENSE conversion
that was previously used.

Tested by comparing value read and converted from MAX17055 with
value from an external power profiling kit.

Signed-off-by: Hayden Ball <hayden@playerdata.co.uk>
2021-01-30 10:45:39 -05:00
..
CMakeLists.txt
Kconfig dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
max17055.c max17055: Fix current conversion from MAX17055 unit to milliamps 2021-01-30 10:45:39 -05:00
max17055.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00