zephyr/drivers/sensor/ism330dhcx
Francois Gervais 96a887809c drivers: sensor: ism330dhcx: fix pulse mode interrupts
On my end, the ISM330DHCX was stopping working after a few seconds.

After investigation, it seems that the function used to set the device
in pulse mode only works for special modes like tap and embedded functions
and not for data-ready as intended.

The data-ready was then in the default latched mode which does not work
sustainably with the rest of the driver logic. In this mode, the driver
can miss an interrupt and be forever waiting on a new data-ready pulse
which will never happen as the interrupt line is already active.

This calls the correct function to enable pulsed data-ready mode as
described in the datasheet section 9.7 COUNTER_BDR_REG1 (0Bh).

Signed-off-by: Francois Gervais <francoisgervais@gmail.com>
2023-08-30 08:35:39 -05:00
..
CMakeLists.txt modules/hal_st: Align sensor drivers to stmemsc HAL i/f v2.02 2023-04-14 10:51:15 -05:00
ism330dhcx.c drivers: sensor: Refactor drivers to use SENSOR_DEVICE_DT_INST_DEFINE 2022-10-27 09:27:14 +00:00
ism330dhcx.h modules/hal_st: Align sensor drivers to stmemsc HAL i/f v2.02 2023-04-14 10:51:15 -05:00
ism330dhcx_i2c.c modules/hal_st: Align sensor drivers to stmemsc HAL i/f v2.02 2023-04-14 10:51:15 -05:00
ism330dhcx_shub.c tests: drivers: build_all: add sensorhub test case 2023-05-09 16:23:15 +09:00
ism330dhcx_spi.c sensor: ism330dhcx: Incorrect handle passed to ctx struct in SPI mode 2023-07-07 09:18:41 +00:00
ism330dhcx_trigger.c drivers: sensor: ism330dhcx: fix pulse mode interrupts 2023-08-30 08:35:39 -05:00
Kconfig drivers: sensor: Convert Kconfig bus 'depends on' to 'select' 2022-08-08 06:58:18 +01:00