Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Devicetree binding constants for the ST IIS2DLPC accelerometer. More...

Go to the source code of this file.

Macros

Power modes

Values for the power-mode devicetree property.

#define IIS2DLPC_DT_LP_M1   0
 Low-power mode 1 (12-bit).
#define IIS2DLPC_DT_LP_M2   1
 Low-power mode 2 (14-bit).
#define IIS2DLPC_DT_LP_M3   2
 Low-power mode 3 (14-bit).
#define IIS2DLPC_DT_LP_M4   3
 Low-power mode 4 (14-bit).
#define IIS2DLPC_DT_HP_MODE   4
 High-performance mode (14-bit).
Filter bandwidth options

Bandwidth of the anti-aliasing filter, as a fraction of the ODR.

#define IIS2DLPC_DT_FILTER_BW_ODR_DIV_2   0
 ODR / 2.
#define IIS2DLPC_DT_FILTER_BW_ODR_DIV_4   1
 ODR / 4.
#define IIS2DLPC_DT_FILTER_BW_ODR_DIV_10   2
 ODR / 10.
#define IIS2DLPC_DT_FILTER_BW_ODR_DIV_20   3
 ODR / 20.
Tap detection mode

Values for the tap-mode devicetree property.

#define IIS2DLPC_DT_SINGLE_TAP   0
 Single-tap only.
#define IIS2DLPC_DT_SINGLE_DOUBLE_TAP   1
 Single and double tap.
Free-fall threshold options

Free-fall detection threshold.

#define IIS2DLPC_DT_FF_THRESHOLD_156_mg   0
 156 mg
#define IIS2DLPC_DT_FF_THRESHOLD_219_mg   1
 219 mg
#define IIS2DLPC_DT_FF_THRESHOLD_250_mg   2
 250 mg
#define IIS2DLPC_DT_FF_THRESHOLD_312_mg   3
 312 mg
#define IIS2DLPC_DT_FF_THRESHOLD_344_mg   4
 344 mg
#define IIS2DLPC_DT_FF_THRESHOLD_406_mg   5
 406 mg
#define IIS2DLPC_DT_FF_THRESHOLD_469_mg   6
 469 mg
#define IIS2DLPC_DT_FF_THRESHOLD_500_mg   7
 500 mg
Wake-up duration options

Wake-up event duration, in ODR periods.

#define IIS2DLPC_DT_WAKEUP_1_ODR   0
 1 ODR period
#define IIS2DLPC_DT_WAKEUP_2_ODR   1
 2 ODR periods
#define IIS2DLPC_DT_WAKEUP_3_ODR   2
 3 ODR periods
#define IIS2DLPC_DT_WAKEUP_4_ODR   3
 4 ODR periods

Detailed Description

Devicetree binding constants for the ST IIS2DLPC accelerometer.