# Copyright (c) 2025 Würth Elektronik eiSos GmbH & Co. KG
# SPDX-License-Identifier: Apache-2.0

menuconfig WSEN_ITDS_2533020201601
	bool "WSEN-ITDS-2533020201601 3-axis acceleration sensor"
	default y
	depends on DT_HAS_WE_WSEN_ITDS_2533020201601_ENABLED
	select I2C if $(dt_compat_on_bus,$(DT_COMPAT_WE_WSEN_ITDS_2533020201601),i2c)
	select SPI if $(dt_compat_on_bus,$(DT_COMPAT_WE_WSEN_ITDS_2533020201601),spi)
	select HAS_WESENSORS
	help
	  Enable driver for the WSEN-ITDS I2C/SPI-based acceleration sensor with integrated
	  temperature sensor.

if WSEN_ITDS_2533020201601

choice WSEN_ITDS_2533020201601_TRIGGER_MODE
	prompt "Trigger mode"
	default WSEN_ITDS_2533020201601_TRIGGER_NONE
	help
	  Specify the type of triggering to be used by the driver.

config WSEN_ITDS_2533020201601_TRIGGER_NONE
	bool "No trigger"

config WSEN_ITDS_2533020201601_TRIGGER_GLOBAL_THREAD
	bool "Use global thread"
	depends on GPIO
	select WSEN_ITDS_2533020201601_TRIGGER

config WSEN_ITDS_2533020201601_TRIGGER_OWN_THREAD
	bool "Use own thread"
	depends on GPIO
	select WSEN_ITDS_2533020201601_TRIGGER

endchoice # WSEN_ITDS_2533020201601_TRIGGER_MODE

config WSEN_ITDS_2533020201601_TRIGGER
	bool

config WSEN_ITDS_2533020201601_EVENTS
	bool

config WSEN_ITDS_2533020201601_THREAD_PRIORITY
	int "Thread priority"
	depends on WSEN_ITDS_2533020201601_TRIGGER_OWN_THREAD
	default 10
	help
	  Priority of thread used by the driver to handle interrupts.

config WSEN_ITDS_2533020201601_THREAD_STACK_SIZE
	int "Thread stack size"
	depends on WSEN_ITDS_2533020201601_TRIGGER_OWN_THREAD
	default 1024
	help
	  Stack size of thread used by the driver to handle interrupts.

config WSEN_ITDS_2533020201601_TAP
	bool "Tap and double tap detection"
	depends on WSEN_ITDS_2533020201601_TRIGGER
	select WSEN_ITDS_2533020201601_EVENTS
	help
	  Enable tap (single/double) detection
	  Note that the minimum ODR required for using the tap recognition functionality is 400 Hz.

config WSEN_ITDS_2533020201601_FREEFALL
	bool "Free-fall detection"
	depends on WSEN_ITDS_2533020201601_TRIGGER
	select WSEN_ITDS_2533020201601_EVENTS
	help
	  Enable free-fall detection

config WSEN_ITDS_2533020201601_DELTA
	bool "Wake-up detection (SENSOR_TRIG_DELTA)"
	depends on WSEN_ITDS_2533020201601_TRIGGER
	select WSEN_ITDS_2533020201601_EVENTS
	help
	  Enable wake-up detection (SENSOR_TRIG_DELTA)

endif # WSEN_ITDS_2533020201601
