1# Copyright (c) 2025 Würth Elektronik eiSos GmbH & Co. KG
2# SPDX-License-Identifier: Apache-2.0
3
4menuconfig WSEN_PADS_2511020213301
5	bool "WSEN-PADS-2511020213301 absolute pressure and temperature sensor"
6	default y
7	depends on DT_HAS_WE_WSEN_PADS_2511020213301_ENABLED
8	select I2C if $(dt_compat_on_bus,$(DT_COMPAT_WE_WSEN_PADS),i2c)
9	select SPI if $(dt_compat_on_bus,$(DT_COMPAT_WE_WSEN_PADS),spi)
10	select HAS_WESENSORS
11	help
12	  Enable driver for the WSEN-PADS-2511020213301 I2C/SPI-based absolute pressure sensor with integrated
13	  temperature sensor.
14
15if WSEN_PADS_2511020213301
16
17choice WSEN_PADS_2511020213301_TRIGGER_MODE
18	prompt "Trigger mode"
19	default WSEN_PADS_2511020213301_TRIGGER_NONE
20	help
21	  Specify the type of triggering to be used by the driver.
22
23config WSEN_PADS_2511020213301_TRIGGER_NONE
24	bool "No trigger"
25
26config WSEN_PADS_2511020213301_TRIGGER_GLOBAL_THREAD
27	bool "Use global thread"
28	depends on GPIO
29	select WSEN_PADS_2511020213301_TRIGGER
30
31config WSEN_PADS_2511020213301_TRIGGER_OWN_THREAD
32	bool "Use own thread"
33	depends on GPIO
34	select WSEN_PADS_2511020213301_TRIGGER
35
36endchoice # WSEN_PADS_2511020213301_TRIGGER_MODE
37
38config WSEN_PADS_2511020213301_TRIGGER
39	bool
40
41config WSEN_PADS_2511020213301_THREAD_PRIORITY
42	int "Thread priority"
43	depends on WSEN_PADS_2511020213301_TRIGGER_OWN_THREAD
44	default 10
45	help
46	  Priority of thread used by the driver to handle interrupts.
47
48config WSEN_PADS_2511020213301_THREAD_STACK_SIZE
49	int "Thread stack size"
50	depends on WSEN_PADS_2511020213301_TRIGGER_OWN_THREAD
51	default 1024
52	help
53	  Stack size of thread used by the driver to handle interrupts.
54
55config WSEN_PADS_2511020213301_PRESSURE_THRESHOLD
56	bool "Pressure threshold triggers"
57	depends on WSEN_PADS_2511020213301_TRIGGER
58	help
59	  Allows you to set up triggers for high and/or low pressure thresholds.
60	  if activated then data ready trigger can't be set up.
61
62endif # WSEN_PADS_2511020213301
63