zephyr/drivers/sensor
Wenxi Xu a490c90dc3 drivers: sensor: bmi08x: fix interfaceand trigger
1. Temperature Interface
According to BMI08x datasheet, temperature reading
requires both MSB and LSB bytes to be read and
processed correctly.

Temp data processing should follow the formula:
Temp in °C = (temp_msb * 8) + (temp_lsb / 32)

This patch implements the correct reading
sequence and calculation method as specified
in the datasheet.

2. Trigger Setting
Previously we set handler and then trigger struct.
However under some situation, as long as we set
the handler, we get into ISR immediately and never
set trigger struct.
I simply changed the sequence.

Testing:
- Verified temperature readings match datasheet
- Tested on stm32f407igh board with BMI08x sensor

Fixes: #82375

Signed-off-by: Wenxi Xu <xuwenxi0517@gmail.com>
2025-01-15 19:04:06 +01:00
..
a01nyub drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
adi drivers: sensor: Add sensor clock API support 2025-01-15 19:03:13 +01:00
amd_sb_tsi drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
amg88xx drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
ams drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
aosong drivers: sensor: dht: Fix sensor read issue on esp32_devkitc_wrover 2024-12-23 09:16:06 +01:00
apds9253 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
apds9306 drivers: sensor: apds9306 fix unchecked return value coverity issue 2024-12-12 11:05:49 +01:00
apds9960 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
asahi_kasei drivers: sensor: Add sensor clock API support 2025-01-15 19:03:13 +01:00
bosch drivers: sensor: bmi08x: fix interfaceand trigger 2025-01-15 19:04:06 +01:00
current_amp drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
ene_tach_kb1200 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
ens160 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
espressif drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
explorir_m drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
f75303 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
fcx_mldx5 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
grow_r502a drivers: led: Place API into iterable section 2024-12-02 22:07:36 +00:00
hc_sr04 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
honeywell drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
hp206c drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
infineon drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
ist8310 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
ite drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
jedec drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
lm35 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
lm75 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
lm77 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
ltrf216a drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
maxim drivers: rtc: maxim,ds3231: RTC driver 2025-01-07 23:00:05 +01:00
meas drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
memsic drivers: sensor: Add sensor clock API support 2025-01-15 19:03:13 +01:00
mhz19b drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
microchip drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
nct75 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
nordic drivers: sensor: npm1300_charger: Updating of discharge current limit 2024-12-05 15:18:23 +01:00
ntc_thermistor drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
nuvoton drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
nxp drivers: sensor: nxp: add code judge whether read back correctly 2024-12-18 01:01:37 +01:00
pms7003 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
qdec_sam drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
renesas drivers: sensor: Add HS400x driver 2024-12-20 03:18:19 +01:00
rohm drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
rpi_pico_temp drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
s11059 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
sbs_gauge drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
seeed drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
sensirion drivers: sensor: scd4x: Fix to allow the use of multiple models 2024-12-11 21:33:14 +01:00
silabs drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
st drivers: sensor: Add sensor clock API support 2025-01-15 19:03:13 +01:00
sx9500 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
tdk drivers: sensor: Add sensor clock API support 2025-01-15 19:03:13 +01:00
th02 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
ti sensor: tmp108: optimize resource usage 2025-01-15 19:03:40 +01:00
tsic_xx6 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
veaa_x_3 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
vishay Sensor: VCNL4040: Update to lux/step constants 2025-01-09 08:20:22 +01:00
voltage_divider sensors: reconfig adc for channel 2025-01-14 22:55:07 +01:00
wsen drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
CMakeLists.txt drivers: sensor: Add sensor clock API support 2025-01-15 19:03:13 +01:00
default_rtio_sensor.c drivers: sensor: Add sensor clock API support 2025-01-15 19:03:13 +01:00
Kconfig drivers: sensor: Add sensor clock API support 2025-01-15 19:03:13 +01:00
Kconfig.sensor_clock drivers: sensor: Add sensor clock API support 2025-01-15 19:03:13 +01:00
Kconfig.trigger_template
sensor_clock_external.c drivers: sensor: Add sensor clock API support 2025-01-15 19:03:13 +01:00
sensor_clock_sys.c drivers: sensor: Add sensor clock API support 2025-01-15 19:03:13 +01:00
sensor_decoders_init.c
sensor_handlers.c
sensor_shell_stream.c
sensor_shell.c drivers: sensors: Add SENSOR_CHAN_FREQUENCY channel 2025-01-14 17:58:41 +01:00
sensor_shell.h
shell_battery.c