lis2dw driver: add stationary/motion detection
This commit is contained in:
@@ -236,6 +236,8 @@ typedef enum {
|
||||
#define LIS2DW_WAKE_UP_THS_VAL_SLEEP_ON 0b01000000
|
||||
|
||||
#define LIS2DW_REG_WAKE_UP_DUR 0x35
|
||||
#define LIS2DW_WAKE_UP_DUR_STATIONARY 0b00010000
|
||||
|
||||
#define LIS2DW_REG_FREE_FALL 0x36
|
||||
#define LIS2DW_REG_STATUS_DUP 0x37
|
||||
|
||||
@@ -339,6 +341,10 @@ void lis2dw_enable_sleep(void);
|
||||
|
||||
void lis2dw_disable_sleep(void);
|
||||
|
||||
void lis2dw_enable_stationary_motion_detection(void);
|
||||
|
||||
void lis2dw_disable_stationary_motion_detection(void);
|
||||
|
||||
void lis2dw_enable_tap_detection(void);
|
||||
|
||||
void lis2dw_disable_tap_detection(void);
|
||||
|
||||
Reference in New Issue
Block a user