Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
lis2dw12.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 STMicroelectronics
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ST_LIS2DW12_H_
7#define ZEPHYR_INCLUDE_DT_BINDINGS_ST_LIS2DW12_H_
8
9/* power-modes */
10#define LIS2DW12_DT_LP_M1 0
11#define LIS2DW12_DT_LP_M2 1
12#define LIS2DW12_DT_LP_M3 2
13#define LIS2DW12_DT_LP_M4 3
14#define LIS2DW12_DT_HP_MODE 4
15
16/* Filter bandwidth */
17#define LIS2DW12_DT_FILTER_BW_ODR_DIV_2 0
18#define LIS2DW12_DT_FILTER_BW_ODR_DIV_4 1
19#define LIS2DW12_DT_FILTER_BW_ODR_DIV_10 2
20#define LIS2DW12_DT_FILTER_BW_ODR_DIV_20 3
21
22/* Tap mode */
23#define LIS2DW12_DT_SINGLE_TAP 0
24#define LIS2DW12_DT_SINGLE_DOUBLE_TAP 1
25
26/* Free-Fall threshold */
27#define LIS2DW12_DT_FF_THRESHOLD_156_mg 0
28#define LIS2DW12_DT_FF_THRESHOLD_219_mg 1
29#define LIS2DW12_DT_FF_THRESHOLD_250_mg 2
30#define LIS2DW12_DT_FF_THRESHOLD_312_mg 3
31#define LIS2DW12_DT_FF_THRESHOLD_344_mg 4
32#define LIS2DW12_DT_FF_THRESHOLD_406_mg 5
33#define LIS2DW12_DT_FF_THRESHOLD_469_mg 6
34#define LIS2DW12_DT_FF_THRESHOLD_500_mg 7
35
36/* wakeup duration */
37#define LIS2DW12_DT_WAKEUP_1_ODR 0
38#define LIS2DW12_DT_WAKEUP_2_ODR 1
39#define LIS2DW12_DT_WAKEUP_3_ODR 2
40#define LIS2DW12_DT_WAKEUP_4_ODR 3
41
42/* sleep duration */
43#define LIS2DW12_DT_SLEEP_0_ODR 0
44#define LIS2DW12_DT_SLEEP_1_ODR 1
45#define LIS2DW12_DT_SLEEP_2_ODR 2
46#define LIS2DW12_DT_SLEEP_3_ODR 3
47#define LIS2DW12_DT_SLEEP_4_ODR 4
48#define LIS2DW12_DT_SLEEP_5_ODR 5
49#define LIS2DW12_DT_SLEEP_6_ODR 6
50#define LIS2DW12_DT_SLEEP_7_ODR 7
51#define LIS2DW12_DT_SLEEP_8_ODR 8
52#define LIS2DW12_DT_SLEEP_9_ODR 9
53#define LIS2DW12_DT_SLEEP_10_ODR 10
54#define LIS2DW12_DT_SLEEP_11_ODR 11
55#define LIS2DW12_DT_SLEEP_12_ODR 12
56#define LIS2DW12_DT_SLEEP_13_ODR 13
57#define LIS2DW12_DT_SLEEP_14_ODR 14
58#define LIS2DW12_DT_SLEEP_15_ODR 15
59
60#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_ST_LIS2DW12_H_ */