zephyr/drivers/sensor
Thomas Stranger 61f065230a drivers: sensor: ltrf216a: fix overflow in conversion
The conversion of the raw sensor value overflows because
only a 32 bit multiplication is executed.
Fix the issue by promoting the raw sensor value to uint64_t before
executing the multiplication.

Analysis:
The current implementation overflows for all raw values grater
than 9544(14-bit).
But according to the datasheet the sensor has a maximum resolution of
20-bit. So Multiplying that value with 450.000 would need at least 39
bit to avoid an overflow, hence do it using 64-bit arithmetic.

Fixes CID 330657

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2024-02-13 21:14:21 +01:00
..
a01nyub
adltc2990
adt7310
adt7420
adxl345
adxl362
adxl367
adxl372
ags10 drivers: sensor: Aosong AGS10 TVOC sensor 2024-01-19 06:06:02 -06:00
ak8975
akm09918c sensor: testing: Update sensor emul backend 2024-01-16 10:01:00 +01:00
amd_sb_tsi sensor: testing: Update sensor emul backend 2024-01-16 10:01:00 +01:00
amg88xx
ams_as5600
ams_iAQcore
apds9960
bh1750
bma4xx drivers: sensor: bma4xx: Add bma4xx emulator 2024-02-01 21:42:49 -06:00
bma280
bmc150_magn
bme280
bme680
bmg160
bmi08x
bmi160 bmi160: fix value calculation 2024-01-16 10:01:00 +01:00
bmi270
bmi323
bmm150
bmp388
bmp581 drivers: bmp581: Add BMP581 driver 2024-01-24 09:32:34 -05:00
bq274xx drivers: sensor: bq274xx: remove float use 2024-01-12 09:00:33 -06:00
ccs811
current_amp
dht
dps310
ds18b20
ens210
esp32_temp
explorir_m
f75303 sensor: testing: Update sensor emul backend 2024-01-16 10:01:00 +01:00
fdc2x1x
fxas21002
fxos8700
grove
grow_r502a
hm330x
hmc5883l
hp206c
hs300x
hts221 drivers/sensor: fix some ST drivers dependency to HAL_ST module 2024-01-12 12:55:46 +01:00
i3g4250d drivers/sensor: fix some ST drivers dependency to HAL_ST module 2024-01-12 12:55:46 +01:00
icm42605
icm42670
icm42688 sensor: testing: Update sensor emul backend 2024-01-16 10:01:00 +01:00
icp10125
iis2dh drivers/sensor: fix some ST drivers dependency to HAL_ST module 2024-01-12 12:55:46 +01:00
iis2dlpc drivers/sensor: fix some ST drivers dependency to HAL_ST module 2024-01-12 12:55:46 +01:00
iis2iclx drivers/sensor: fix some ST drivers dependency to HAL_ST module 2024-01-12 12:55:46 +01:00
iis2mdc drivers/sensor: fix some ST drivers dependency to HAL_ST module 2024-01-12 12:55:46 +01:00
iis3dhhc drivers/sensor: fix some ST drivers dependency to HAL_ST module 2024-01-12 12:55:46 +01:00
ina23x
ina219
ina3221
isl29035
ism330dhcx drivers/sensor: fix some ST drivers dependency to HAL_ST module 2024-01-12 12:55:46 +01:00
ist8310
ite_tach_it8xxx2
ite_vcmp_it8xxx2
lis2de12 drivers/sensor: add support to LIS2DE12 accelerometer 2024-01-31 15:39:45 +01:00
lis2dh
lis2ds12 drivers/sensor: fix some ST drivers dependency to HAL_ST module 2024-01-12 12:55:46 +01:00
lis2du12 drivers/sensor: fix some ST drivers dependency to HAL_ST module 2024-01-12 12:55:46 +01:00
lis2dw12 drivers/sensor: fix some ST drivers dependency to HAL_ST module 2024-01-12 12:55:46 +01:00
lis2mdl drivers/sensor: fix some ST drivers dependency to HAL_ST module 2024-01-12 12:55:46 +01:00
lis3mdl
lm75
lm77
lps2xdf drivers/sensor: lps2xdf: Fix uninitialized variables 2024-02-02 10:53:32 -06:00
lps22hb
lps22hh drivers/sensor: fix some ST drivers dependency to HAL_ST module 2024-01-12 12:55:46 +01:00
lps25hb
lsm6ds0
lsm6dsl
lsm6dso drivers/sensor: fix some ST drivers dependency to HAL_ST module 2024-01-12 12:55:46 +01:00
lsm6dso16is drivers/sensor: fix some ST drivers dependency to HAL_ST module 2024-01-12 12:55:46 +01:00
lsm6dsv16x drivers/sensor: fix some ST drivers dependency to HAL_ST module 2024-01-12 12:55:46 +01:00
lsm9ds0_gyro
lsm9ds0_mfd
lsm303dlhc_magn
ltrf216a drivers: sensor: ltrf216a: fix overflow in conversion 2024-02-13 21:14:21 +01:00
max6675
max17055
max17262
max30101
max31855
max31865 drivers: Fix signs in max31865 temperature calculation 2024-02-09 17:38:31 +00:00
max31875
max44009
mc3419
mchp_tach_xec
mcp970x
mcp9600
mcp9808
mcux_acmp
mhz19b
mpr
mpu6050
mpu9250
ms5607
ms5837
npm1300_charger
nrf5
ntc_thermistor
nuvoton_adc_cmp_npcx
nuvoton_tach_npcx
nxp_kinetis_temp
nxp_tempmon
opt3001
pcnt_esp32
pms7003
qdec_mcux
qdec_nrfx
qdec_nxp_s32 drivers: sensor: qdec_s32k: fix double promotion warning 2024-01-29 20:24:52 +00:00
qdec_sam
qdec_stm32
rpi_pico_temp
s11059
sbs_gauge
sgp40
sht3xd
sht4x
shtcx
si7006
si7055
si7060
si7210
sm351lt
stm32_temp drivers: adc: stm32: Fix race condition with internal channels 2024-01-11 13:53:17 +01:00
stm32_vbat drivers: adc: stm32: Fix race condition with internal channels 2024-01-11 13:53:17 +01:00
stm32_vref drivers: adc: stm32: Fix race condition with internal channels 2024-01-11 13:53:17 +01:00
stmemsc drivers/sensor: stmemsc: add new sets of i2c/spi APIs 2024-01-31 15:39:45 +01:00
stts751 drivers/sensor: fix some ST drivers dependency to HAL_ST module 2024-01-12 12:55:46 +01:00
sx9500
tcn75a
tcs3400
th02
ti_hdc
ti_hdc20xx
tmag5170
tmag5273 drivers: Add support for TI TMAG5273 3D Hall sensor 2024-02-05 13:23:24 -06:00
tmd2620
tmp007
tmp108 drivers: sensor: tmp108: fix coverity integer handling issue 2024-02-05 13:13:51 +01:00
tmp112
tmp116
tsl2540
tsl2561
vcnl4040
vcnl36825t sensors: Add driver for Vischay VCNL36825T Proximity Sensor 2024-02-02 10:51:10 -06:00
veml7700 drivers: veml7700: Add white channel 2024-01-31 10:44:33 -06:00
vl53l0x drivers/sensor: fix some ST drivers dependency to HAL_ST module 2024-01-12 12:55:46 +01:00
vl53l1x drivers/sensor: fix some ST drivers dependency to HAL_ST module 2024-01-12 12:55:46 +01:00
voltage_divider
wsen_hids
wsen_itds
wsen_pads
wsen_pdus
wsen_tids
xmc4xxx_temp
CMakeLists.txt drivers: Add support for TI TMAG5273 3D Hall sensor 2024-02-05 13:23:24 -06:00
Kconfig drivers: Add support for TI TMAG5273 3D Hall sensor 2024-02-05 13:23:24 -06:00
Kconfig.trigger_template
default_rtio_sensor.c
sensor_decoders_init.c
sensor_handlers.c
sensor_shell.c sensor_shell: add CONFIG to support trigger for more than one sensor device 2024-01-19 13:51:48 +01:00
sensor_shell.h
sensor_shell_stream.c
shell_battery.c