zephyr/samples/sensor
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
..
adt7420 samples: sensor: adt7420: rework for trigger testing 2020-01-08 16:38:43 +01:00
adxl362 coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
adxl372 coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
amg88xx coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
ams_iAQcore tests: fix test identifiers 2019-12-09 15:53:44 -05:00
apds9960 coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
bme280 coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
bme680 tests: fix test identifiers 2019-12-09 15:53:44 -05:00
bmg160 sensor: bmg160: Convert to DTS 2019-11-08 07:44:54 -06:00
bmm150 sensor: bmm150: Convert to DTS 2019-11-08 07:44:54 -06:00
ccs811 coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
dht samples: sensor: dht: add sample 2019-12-19 06:43:37 -06:00
ens210 tests: fix test identifiers 2019-12-09 15:53:44 -05:00
fxas21002 doc: fix broken file and zephyr-app refs 2019-10-08 15:42:32 -05:00
fxos8700 samples: sensors: fxos8700: add support for twr-ke18f board 2019-07-01 11:41:25 -05:00
fxos8700-hid usb: api: Add user device status callback 2019-12-19 13:08:55 +01:00
grove_light cleanup: include/: move misc/printk.h to sys/printk.h 2019-06-27 22:55:49 -04:00
grove_temperature samples: grove_temperature: cleanup whitelisting 2019-07-12 05:54:16 -07:00
hmc5883l sensor: hmc5883l: convert to device tree 2019-11-08 12:12:38 -06:00
hts221 coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
isl29035 samples: sensors: isl29035: add sample 2019-12-18 15:07:02 -06:00
lis2dh samples: sensor: add lis2dh sample 2019-10-25 11:02:58 -05:00
lps22hb doc: fix LPS22HB doc indentation 2019-11-20 17:47:20 -05:00
lps22hh samples: sensor: lps22hh: add standalone sample 2019-12-20 20:25:11 -05:00
lsm6dsl global: Remove leading/trailing blank lines in files 2019-12-11 19:17:27 +01:00
lsm303dlhc coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
magn_polling sensor: bmc150_magn: Convert to DTS 2019-11-08 07:44:54 -06:00
max30101 coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
max44009 sensor: max44009: Convert to DTS 2019-11-08 07:44:54 -06:00
mcp9808 drivers: sensor: mcp9808: fix various problems and improve test 2020-01-08 20:33:51 -05:00
mpu6050 samples: sensor: mpu6050: convert to devicetree 2020-01-08 16:40:04 +01:00
ms5837 coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
sensor_shell samples: sensor: fix test identifier 2019-12-20 10:35:13 -05:00
sht3xd global: Remove leading/trailing blank lines in files 2019-12-11 19:17:27 +01:00
sx9500 sensor: sx9500: Convert to DTS 2019-11-08 07:44:54 -06:00
th02 sensor: th02: Convert to DTS 2019-11-08 07:44:54 -06:00
thermometer x86: consolidate x86_64 architecture, SoC and boards 2019-10-25 17:57:55 -04:00
ti_hdc tests: fix test identifiers 2019-12-09 15:53:44 -05:00
tmp112 sensor: tmp112: Convert to DTS 2019-11-08 07:44:54 -06:00
tmp116 tests: fix test identifiers 2019-12-09 15:53:44 -05:00
vl53l0x coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
sensor.rst