|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
STMicroelectronics LIS2DW12 3-axis accelerometer. More...
Files | |
| file | lis2dw12.h |
| Devicetree binding constants for the ST LIS2DW12 accelerometer. | |
Power modes | |
Values for the power-mode devicetree property. | |
| #define | LIS2DW12_DT_LP_M1 0 |
| Low-power mode 1 (12-bit). | |
| #define | LIS2DW12_DT_LP_M2 1 |
| Low-power mode 2 (14-bit). | |
| #define | LIS2DW12_DT_LP_M3 2 |
| Low-power mode 3 (14-bit). | |
| #define | LIS2DW12_DT_LP_M4 3 |
| Low-power mode 4 (14-bit). | |
| #define | LIS2DW12_DT_HP_MODE 4 |
| High-performance mode (14-bit). | |
Filter bandwidth options | |
Values for the bw-filt devicetree property. | |
| #define | LIS2DW12_DT_FILTER_BW_ODR_DIV_2 0 |
| ODR / 2. | |
| #define | LIS2DW12_DT_FILTER_BW_ODR_DIV_4 1 |
| ODR / 4. | |
| #define | LIS2DW12_DT_FILTER_BW_ODR_DIV_10 2 |
| ODR / 10. | |
| #define | LIS2DW12_DT_FILTER_BW_ODR_DIV_20 3 |
| ODR / 20. | |
Tap detection mode | |
Values for the tap-mode devicetree property. | |
| #define | LIS2DW12_DT_SINGLE_TAP 0 |
| Single-tap only. | |
| #define | LIS2DW12_DT_SINGLE_DOUBLE_TAP 1 |
| Single and double tap. | |
Free-fall threshold options | |
Values for the ff-threshold devicetree property. | |
| #define | LIS2DW12_DT_FF_THRESHOLD_156_mg 0 |
| 156 mg | |
| #define | LIS2DW12_DT_FF_THRESHOLD_219_mg 1 |
| 219 mg | |
| #define | LIS2DW12_DT_FF_THRESHOLD_250_mg 2 |
| 250 mg | |
| #define | LIS2DW12_DT_FF_THRESHOLD_312_mg 3 |
| 312 mg | |
| #define | LIS2DW12_DT_FF_THRESHOLD_344_mg 4 |
| 344 mg | |
| #define | LIS2DW12_DT_FF_THRESHOLD_406_mg 5 |
| 406 mg | |
| #define | LIS2DW12_DT_FF_THRESHOLD_469_mg 6 |
| 469 mg | |
| #define | LIS2DW12_DT_FF_THRESHOLD_500_mg 7 |
| 500 mg | |
Wake-up duration options | |
Values for the wakeup-duration devicetree property. | |
| #define | LIS2DW12_DT_WAKEUP_1_ODR 0 |
| 1 ODR period | |
| #define | LIS2DW12_DT_WAKEUP_2_ODR 1 |
| 2 ODR periods | |
| #define | LIS2DW12_DT_WAKEUP_3_ODR 2 |
| 3 ODR periods | |
| #define | LIS2DW12_DT_WAKEUP_4_ODR 3 |
| 4 ODR periods | |
Sleep duration options | |
Values for the sleep-duration devicetree property. | |
| #define | LIS2DW12_DT_SLEEP_0_ODR 0 |
| 0 ODR periods | |
| #define | LIS2DW12_DT_SLEEP_1_ODR 1 |
| 1 ODR period | |
| #define | LIS2DW12_DT_SLEEP_2_ODR 2 |
| 2 ODR periods | |
| #define | LIS2DW12_DT_SLEEP_3_ODR 3 |
| 3 ODR periods | |
| #define | LIS2DW12_DT_SLEEP_4_ODR 4 |
| 4 ODR periods | |
| #define | LIS2DW12_DT_SLEEP_5_ODR 5 |
| 5 ODR periods | |
| #define | LIS2DW12_DT_SLEEP_6_ODR 6 |
| 6 ODR periods | |
| #define | LIS2DW12_DT_SLEEP_7_ODR 7 |
| 7 ODR periods | |
| #define | LIS2DW12_DT_SLEEP_8_ODR 8 |
| 8 ODR periods | |
| #define | LIS2DW12_DT_SLEEP_9_ODR 9 |
| 9 ODR periods | |
| #define | LIS2DW12_DT_SLEEP_10_ODR 10 |
| 10 ODR periods | |
| #define | LIS2DW12_DT_SLEEP_11_ODR 11 |
| 11 ODR periods | |
| #define | LIS2DW12_DT_SLEEP_12_ODR 12 |
| 12 ODR periods | |
| #define | LIS2DW12_DT_SLEEP_13_ODR 13 |
| 13 ODR periods | |
| #define | LIS2DW12_DT_SLEEP_14_ODR 14 |
| 14 ODR periods | |
| #define | LIS2DW12_DT_SLEEP_15_ODR 15 |
| 15 ODR periods | |
STMicroelectronics LIS2DW12 3-axis accelerometer.
| #define LIS2DW12_DT_FF_THRESHOLD_156_mg 0 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
156 mg
| #define LIS2DW12_DT_FF_THRESHOLD_219_mg 1 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
219 mg
| #define LIS2DW12_DT_FF_THRESHOLD_250_mg 2 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
250 mg
| #define LIS2DW12_DT_FF_THRESHOLD_312_mg 3 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
312 mg
| #define LIS2DW12_DT_FF_THRESHOLD_344_mg 4 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
344 mg
| #define LIS2DW12_DT_FF_THRESHOLD_406_mg 5 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
406 mg
| #define LIS2DW12_DT_FF_THRESHOLD_469_mg 6 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
469 mg
| #define LIS2DW12_DT_FF_THRESHOLD_500_mg 7 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
500 mg
| #define LIS2DW12_DT_FILTER_BW_ODR_DIV_10 2 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
ODR / 10.
| #define LIS2DW12_DT_FILTER_BW_ODR_DIV_2 0 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
ODR / 2.
| #define LIS2DW12_DT_FILTER_BW_ODR_DIV_20 3 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
ODR / 20.
| #define LIS2DW12_DT_FILTER_BW_ODR_DIV_4 1 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
ODR / 4.
| #define LIS2DW12_DT_HP_MODE 4 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
High-performance mode (14-bit).
| #define LIS2DW12_DT_LP_M1 0 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
Low-power mode 1 (12-bit).
| #define LIS2DW12_DT_LP_M2 1 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
Low-power mode 2 (14-bit).
| #define LIS2DW12_DT_LP_M3 2 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
Low-power mode 3 (14-bit).
| #define LIS2DW12_DT_LP_M4 3 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
Low-power mode 4 (14-bit).
| #define LIS2DW12_DT_SINGLE_DOUBLE_TAP 1 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
Single and double tap.
| #define LIS2DW12_DT_SINGLE_TAP 0 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
Single-tap only.
| #define LIS2DW12_DT_SLEEP_0_ODR 0 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
0 ODR periods
| #define LIS2DW12_DT_SLEEP_10_ODR 10 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
10 ODR periods
| #define LIS2DW12_DT_SLEEP_11_ODR 11 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
11 ODR periods
| #define LIS2DW12_DT_SLEEP_12_ODR 12 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
12 ODR periods
| #define LIS2DW12_DT_SLEEP_13_ODR 13 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
13 ODR periods
| #define LIS2DW12_DT_SLEEP_14_ODR 14 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
14 ODR periods
| #define LIS2DW12_DT_SLEEP_15_ODR 15 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
15 ODR periods
| #define LIS2DW12_DT_SLEEP_1_ODR 1 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
1 ODR period
| #define LIS2DW12_DT_SLEEP_2_ODR 2 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
2 ODR periods
| #define LIS2DW12_DT_SLEEP_3_ODR 3 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
3 ODR periods
| #define LIS2DW12_DT_SLEEP_4_ODR 4 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
4 ODR periods
| #define LIS2DW12_DT_SLEEP_5_ODR 5 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
5 ODR periods
| #define LIS2DW12_DT_SLEEP_6_ODR 6 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
6 ODR periods
| #define LIS2DW12_DT_SLEEP_7_ODR 7 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
7 ODR periods
| #define LIS2DW12_DT_SLEEP_8_ODR 8 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
8 ODR periods
| #define LIS2DW12_DT_SLEEP_9_ODR 9 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
9 ODR periods
| #define LIS2DW12_DT_WAKEUP_1_ODR 0 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
1 ODR period
| #define LIS2DW12_DT_WAKEUP_2_ODR 1 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
2 ODR periods
| #define LIS2DW12_DT_WAKEUP_3_ODR 2 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
3 ODR periods
| #define LIS2DW12_DT_WAKEUP_4_ODR 3 |
#include <zephyr/dt-bindings/sensor/lis2dw12.h>
4 ODR periods