/* * lis2dw12.h * * Created on: Dec 30, 2025 * Author: Anson Bridges */ #ifndef INC_LIS2DW12_H_ #define INC_LIS2DW12_H_ #include const uint8_t LIS2DW_ADDR = 0x32; //0x0011001_ const uint8_t TAP_THS_Z = 0x32; const uint8_t TAP_THS_Y = 0x31; const uint8_t TAP_THS_X = 0x30; const uint8_t TAP_SRC = 0x39; const uint8_t OUT_X_L = 0x28; const uint8_t CTRL1 = 0x20; const uint8_t CTRL3 = 0x22; const uint8_t CTRL6 = 0x25; const uint8_t CTRL7 = 0x3F; const uint8_t INT_DUR = 0x33; const uint8_t INIT_CTRL1 = 0b01110111; // power mode const uint8_t INIT_CTRL3 = 0b00010000; const uint8_t INIT_CTRL6 = 0xC8; const uint8_t INIT_CTRL7 = 0b00100000; // enable interrupts const uint8_t INIT_INT_DUR = 0b00001100; const uint8_t INIT_TAP_Z = 0b11101100; //first 3 bits enable tap x/y/z, last 5 z threshold const uint8_t INIT_TAP_Y = 0b11101100; //first 3 bits tap priority, last 5 y threshold const uint8_t INIT_TAP_X = 0b00001100; // first 3 4D/6D, last 5 x threshold const uint8_t TAP_IA = 0b01000000; const uint8_t TAP_SINGLE = 0b00100000; const uint8_t TAP_DOUBLE = 0b00010000; const uint8_t TAP_SIGN = 0b00001000; const uint8_t TAP_X = 0b00000100; const uint8_t TAP_Y = 0b00000010; const uint8_t TAP_Z = 0b00000001; #endif /* INC_LIS2DW12_H_ */