mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-11 11:56:14 +00:00
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> |
||
---|---|---|
.. | ||
adt7420 | ||
adxl362 | ||
adxl372 | ||
amg88xx | ||
ams_iAQcore | ||
apds9960 | ||
bme280 | ||
bme680 | ||
bmg160 | ||
bmm150 | ||
ccs811 | ||
dht | ||
ens210 | ||
fxas21002 | ||
fxos8700 | ||
fxos8700-hid | ||
grove_light | ||
grove_temperature | ||
hmc5883l | ||
hts221 | ||
isl29035 | ||
lis2dh | ||
lps22hb | ||
lps22hh | ||
lsm6dsl | ||
lsm303dlhc | ||
magn_polling | ||
max30101 | ||
max44009 | ||
mcp9808 | ||
mpu6050 | ||
ms5837 | ||
sensor_shell | ||
sht3xd | ||
sx9500 | ||
th02 | ||
thermometer | ||
ti_hdc | ||
tmp112 | ||
tmp116 | ||
vl53l0x | ||
sensor.rst |