zephyr/drivers/sensor/mcp9808
Peter A. Bigot f05cbb421d drivers: sensor: mcp9808: fix various problems and improve test
Correct handling of device encoded temperature values, which combine a
12-bit 2s complement signed value with a separate sign bit.  Rework
conversion between device and sensor temperature representations to
support negative temperatures in both domains.

Use a much simpler trigger configuration where the alert is driven by
comparator output, rather than as an interrupt that requires a pair of
I2C transactions to read and clear the flag.

Refactor the trigger infrastructure to use the setup/handle/process
idiom, which reduces duplicated code and to correctly detect alerts
present when the triggers are set.

Completely replace the sample with something that demonstrates
updating upper and lower threshold values to track moving
temperatures.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2020-01-08 20:33:51 -05:00
..
CMakeLists.txt
Kconfig
mcp9808_trigger.c drivers: sensor: mcp9808: fix various problems and improve test 2020-01-08 20:33:51 -05:00
mcp9808.c drivers: sensor: mcp9808: fix various problems and improve test 2020-01-08 20:33:51 -05:00
mcp9808.h drivers: sensor: mcp9808: fix various problems and improve test 2020-01-08 20:33:51 -05:00