1 /*
2  * Copyright (c) 2023 STMicroelectronics
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ST_IIS2DLPC_H_
7 #define ZEPHYR_INCLUDE_DT_BINDINGS_ST_IIS2DLPC_H_
8 
9 /* power-modes */
10 #define IIS2DLPC_DT_LP_M1			0
11 #define IIS2DLPC_DT_LP_M2			1
12 #define IIS2DLPC_DT_LP_M3			2
13 #define IIS2DLPC_DT_LP_M4			3
14 #define IIS2DLPC_DT_HP_MODE			4
15 
16 /* Filter bandwidth */
17 #define IIS2DLPC_DT_FILTER_BW_ODR_DIV_2		0
18 #define IIS2DLPC_DT_FILTER_BW_ODR_DIV_4		1
19 #define IIS2DLPC_DT_FILTER_BW_ODR_DIV_10	2
20 #define IIS2DLPC_DT_FILTER_BW_ODR_DIV_20	3
21 
22 /* Tap mode */
23 #define IIS2DLPC_DT_SINGLE_TAP			0
24 #define IIS2DLPC_DT_SINGLE_DOUBLE_TAP		1
25 
26 /* Free-Fall threshold */
27 #define IIS2DLPC_DT_FF_THRESHOLD_156_mg		0
28 #define IIS2DLPC_DT_FF_THRESHOLD_219_mg		1
29 #define IIS2DLPC_DT_FF_THRESHOLD_250_mg		2
30 #define IIS2DLPC_DT_FF_THRESHOLD_312_mg		3
31 #define IIS2DLPC_DT_FF_THRESHOLD_344_mg		4
32 #define IIS2DLPC_DT_FF_THRESHOLD_406_mg		5
33 #define IIS2DLPC_DT_FF_THRESHOLD_469_mg		6
34 #define IIS2DLPC_DT_FF_THRESHOLD_500_mg		7
35 
36 /* wakeup duration */
37 #define IIS2DLPC_DT_WAKEUP_1_ODR		0
38 #define IIS2DLPC_DT_WAKEUP_2_ODR		1
39 #define IIS2DLPC_DT_WAKEUP_3_ODR		2
40 #define IIS2DLPC_DT_WAKEUP_4_ODR		3
41 
42 #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_ST_IIS2DLPC_H_ */
43