zephyr/drivers/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 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
adxl362 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
adxl372 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
ak8975 drivers: sensor: ak8975: remove legacy reference to MPU6050 2020-01-08 16:40:04 +01:00
amg88xx drivers: amg88xx: check i2c write return value 2019-11-21 07:48:35 -06:00
ams_iAQcore kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
apds9960 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
bma280 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
bmc150_magn sensor: bmc150_magn: Convert to DTS 2019-11-08 07:44:54 -06:00
bme280 kconfig: Remove some redundant single-item menus and ifs 2019-12-21 10:26:54 -05:00
bme680 kconfig: Remove some redundant single-item menus and ifs 2019-12-21 10:26:54 -05:00
bmg160 sensor: bmg160: Convert to DTS 2019-11-08 07:44:54 -06:00
bmi160 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
bmm150 sensor: bmm150: Convert to DTS 2019-11-08 07:44:54 -06:00
ccs811 sensor: ccs811: Convert GPIOs to device tree 2019-11-06 11:13:04 +01:00
dht sensor: dht: convert from Kconfig to devicetree 2019-12-19 06:43:37 -06:00
ens210 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
fxas21002 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
fxos8700 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
grove kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
hmc5883l sensor: hmc5883l: convert to device tree 2019-11-08 12:12:38 -06:00
hp206c sensor: hp206c: Convert to DTS 2019-11-08 07:44:54 -06:00
hts221 drivers: sensor: hts221: Return error on not supported channel 2020-01-08 12:59:46 -05:00
iis3dhhc kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
isl29035 sensor: isl29035: Convert to DTS 2019-11-08 07:44:54 -06:00
lis2dh sensors: lis2dh: use proper scale factor for lsm303agr 2019-11-13 14:43:25 -06:00
lis2ds12 global: Remove leading/trailing blank lines in files 2019-12-11 19:17:27 +01:00
lis2dw12 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
lis2mdl driver/sensor: lis2mdl: handle SPI 4-wires mode selection 2019-11-05 15:42:00 -06:00
lis3mdl sensors: lis3mdl: Fix warning when TIGGER_OWN_THREAD is enabled 2019-11-06 17:10:49 +01:00
lps22hb kconfig: Remove some redundant single-item menus and ifs 2019-12-21 10:26:54 -05:00
lps22hh sensors: lps2hh: Fix misspelled GPIOS_CONTROLLER references 2019-12-19 06:41:25 -06:00
lps25hb kconfig: Remove some redundant single-item menus and ifs 2019-12-21 10:26:54 -05:00
lsm6ds0 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
lsm6dsl kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
lsm6dso include: Fix use of <gpio.h> -> <drivers/gpio.h> 2019-12-10 08:39:37 -05:00
lsm9ds0_gyro kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
lsm9ds0_mfd kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
lsm303dlhc_magn kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
max30101 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05: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 drivers: sensor: mpu6050: convert to devicetree 2020-01-08 16:40:04 +01:00
ms5607 sensor: add ms5607 sensor 2019-12-09 12:22:25 -06:00
ms5837 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
nrf5 drivers: clock_control: nrf: Switch to single clock device 2019-12-17 14:38:19 +01:00
opt3001 include: Fix use of <misc/FOO.h> -> <sys/FOO.h> 2019-12-10 08:39:37 -05:00
pms7003 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
qdec_nrfx kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
sht3xd kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
si7006 include: Fix use of <i2c.h> -> <drivers/i2c.h> 2019-12-10 08:39:37 -05:00
si7060 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
stts751 include: Fix use of <gpio.h> -> <drivers/gpio.h> 2019-12-10 08:39:37 -05: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
ti_hdc kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
tmp007 sensor: tmp007: Convert to DTS 2019-11-08 07:44:54 -06:00
tmp112 sensor: tmp112: Convert to DTS 2019-11-08 07:44:54 -06:00
tmp116 sensor: tmp116: Add support for tmp117, fix calculation issues 2019-12-20 20:18:25 -05:00
vl53l0x global: Remove leading/trailing blank lines in files 2019-12-11 19:17:27 +01:00
CMakeLists.txt subsys/shell: Introduce the Sensor Shell Module 2019-12-19 15:54:04 -05:00
Kconfig drivers: sensor: shell: Improved shell support for sensors 2020-01-08 12:59:46 -05:00
sensor_handlers.c kernel: Port remaining syscalls to new API 2019-09-12 11:31:50 +08:00
sensor_shell.c drivers: sensor: shell: Improved shell support for sensors 2020-01-08 12:59:46 -05:00