Zephyr API Documentation
3.6.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
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_ST_LIS2DW12_H_ */
zephyr
dt-bindings
sensor
lis2dw12.h
Generated on Thu Jul 4 2024 12:22:47 for Zephyr API Documentation by
1.9.6