zephyr/drivers/sensor/st/lis2dux12/Kconfig
Armando Visconti a10f807994 drivers/lis2dux12: add read_and_decode APIs support
Add RTIO async and RTIO stream functionalities that enables,
among all the other things, the sensor data streaming from FIFO.

RTIO stream supports following triggers:

  - SENSOR_TRIG_FIFO_WATERMARK
  - SENSOR_TRIG_FIFO_FULL
  - SENSOR_TRIG_DATA_READY

Following FIFO parameters has to be defined in device tree to
correctly stream sensor data:

  - fifo-watermark
  - accel-fifo-batch-rate

Currently the driver can decode FIFO content with Accelerometer
16-bit samples.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2025-06-06 09:11:04 -07:00

44 lines
1.3 KiB
Plaintext

# ST Microelectronics LIS2DUX12 3-axis accelerometer driver
# Copyright (c) 2024 STMicroelectronics
# SPDX-License-Identifier: Apache-2.0
menuconfig LIS2DUX12
bool "LIS2DUX12 I2C/SPI accelerometer sensor driver"
default y
depends on DT_HAS_ST_LIS2DUX12_ENABLED || DT_HAS_ST_LIS2DUXS12_ENABLED
depends on ZEPHYR_HAL_ST_MODULE
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ST_LIS2DUX12),i2c) || \
$(dt_compat_on_bus,$(DT_COMPAT_ST_LIS2DUXS12),i2c)
select SPI if $(dt_compat_on_bus,$(DT_COMPAT_ST_LIS2DUX12),spi) || \
$(dt_compat_on_bus,$(DT_COMPAT_ST_LIS2DUXS12),spi)
select HAS_STMEMSC
select USE_STDC_LIS2DUX12 if DT_HAS_ST_LIS2DUX12_ENABLED
select USE_STDC_LIS2DUXS12 if DT_HAS_ST_LIS2DUXS12_ENABLED
select RTIO_WORKQ if SENSOR_ASYNC_API
help
Enable driver for LIS2DUX12 accelerometer sensor driver
if LIS2DUX12
config LIS2DUX12_STREAM
bool "Use hardware FIFO to stream data"
select LIS2DUX12_TRIGGER
default y
depends on I2C_RTIO || SPI_RTIO
depends on SENSOR_ASYNC_API
help
Use this config option to enable streaming sensor data via RTIO subsystem.
module = LIS2DUX12
thread_priority = 10
thread_stack_size = 1024
source "drivers/sensor/Kconfig.trigger_template"
config LIS2DUX12_ENABLE_TEMP
bool "Temperature"
help
Enable/disable temperature
endif # LIS2DUX12