accelerometer: clarify purpose of this bit

This commit is contained in:
Joey Castillo
2024-11-27 11:09:47 -05:00
parent 9719567047
commit a6f80ceb61
2 changed files with 5 additions and 5 deletions

View File

@@ -233,14 +233,14 @@ void lis2dw_disable_stationary_motion_detection(void) {
watch_i2c_write8(LIS2DW_ADDRESS, LIS2DW_REG_WAKE_UP_DUR, configuration & ~LIS2DW_WAKE_UP_DUR_STATIONARY);
}
void lis2dw_enable_tap_detection(void) {
void lis2dw_enable_double_tap_event(void) {
uint8_t configuration = watch_i2c_read8(LIS2DW_ADDRESS, LIS2DW_REG_WAKE_UP_THS);
watch_i2c_write8(LIS2DW_ADDRESS, LIS2DW_REG_WAKE_UP_THS, configuration | LIS2DW_WAKE_UP_THS_VAL_TAP_EVENT_ENABLED);
watch_i2c_write8(LIS2DW_ADDRESS, LIS2DW_REG_WAKE_UP_THS, configuration | LIS2DW_WAKE_UP_THS_ENABLE_DOUBLE_TAP);
}
void lis2dw_disable_tap_detection(void) {
void lis2dw_disable_double_tap_event(void) {
uint8_t configuration = watch_i2c_read8(LIS2DW_ADDRESS, LIS2DW_REG_WAKE_UP_THS);
watch_i2c_write8(LIS2DW_ADDRESS, LIS2DW_REG_WAKE_UP_THS, configuration & ~LIS2DW_WAKE_UP_THS_VAL_TAP_EVENT_ENABLED);
watch_i2c_write8(LIS2DW_ADDRESS, LIS2DW_REG_WAKE_UP_THS, configuration & ~LIS2DW_WAKE_UP_THS_ENABLE_DOUBLE_TAP);
}
void lis2dw_configure_wakeup_threshold(uint8_t threshold) {