remove unused enums

This commit is contained in:
Joey Castillo 2022-01-09 12:02:26 -05:00
parent 496530c85c
commit 1ea476ca24

View file

@ -81,29 +81,6 @@ typedef enum {
LIS2DW_RANGE_2_G = 0b00 // +/- 2g (default value)
} lis2dw_range_t;
typedef enum {
LIS2DW_INTERRUPT_CONFIGURATION_OR = 0b00000000,
LIS2DW_INTERRUPT_CONFIGURATION_AND = 0b10000000,
LIS2DW_INTERRUPT_CONFIGURATION_6D_MOVEMENT = 0b01000000,
LIS2DW_INTERRUPT_CONFIGURATION_6D_POSITION = 0b11000000, // in 6D mode, these have an alternate meaning:
LIS2DW_INTERRUPT_CONFIGURATION_Z_HIGH_ENABLE = 0b00100000, // Z up enable
LIS2DW_INTERRUPT_CONFIGURATION_Z_LOW_ENABLE = 0b00010000, // Z down enable
LIS2DW_INTERRUPT_CONFIGURATION_Y_HIGH_ENABLE = 0b00001000, // Y up enable
LIS2DW_INTERRUPT_CONFIGURATION_Y_LOW_ENABLE = 0b00000100, // Y down enable
LIS2DW_INTERRUPT_CONFIGURATION_X_HIGH_ENABLE = 0b00000010, // X up enable
LIS2DW_INTERRUPT_CONFIGURATION_X_LOW_ENABLE = 0b00000001, // X down enable
} lis2dw_interrupt_configuration;
typedef enum {
LIS2DW_INTERRUPT_STATE_ACTIVE = 0b01000000,
LIS2DW_INTERRUPT_STATE_Z_HIGH = 0b00100000, // Z up
LIS2DW_INTERRUPT_STATE_Z_LOW = 0b00010000, // Z down
LIS2DW_INTERRUPT_STATE_Y_HIGH = 0b00001000, // Y up
LIS2DW_INTERRUPT_STATE_Y_LOW = 0b00000100, // Y down
LIS2DW_INTERRUPT_STATE_X_HIGH = 0b00000010, // X up
LIS2DW_INTERRUPT_STATE_X_LOW = 0b00000001, // X down
} lis2dw_interrupt_state;
// Assumes SA0 is high; if low, its 0x18
#define LIS2DW_ADDRESS (0x19)