LIS2DH12 register definitions. More...
LIS2DH12 register definitions.
Definition in file lis2dh12_registers.h.
Go to the source code of this file.
Data Structures | |
union | LIS2DH12_CLICK_SRC_t |
CLICK_SRC definitions. More... | |
union | LIS2DH12_FIFO_SRC_REG_t |
FIFO_SRC_REG definitions. More... | |
union | LIS2DH12_CTRL_REG0_t |
CTRL_REG_0 definitions. More... | |
union | LIS2DH12_TEMP_CFG_REG_t |
TEMP_CFG_REG definitions. More... | |
union | LIS2DH12_CTRL_REG1_t |
CTRL_REG1 definitions. More... | |
union | LIS2DH12_CTRL_REG2_t |
CTRL_REG2 definitions. More... | |
union | LIS2DH12_CTRL_REG3_t |
CTRL_REG3 definitions. More... | |
union | LIS2DH12_CTRL_REG4_t |
CTRL_REG4 definitions. More... | |
union | LIS2DH12_CTRL_REG5_t |
CTRL_REG5 definitions. More... | |
union | LIS2DH12_CTRL_REG6_t |
CTRL_REG6 definitions. More... | |
union | LIS2DH12_REFERENCE_t |
REFERENCE definitions. More... | |
union | LIS2DH12_FIFO_CTRL_REG_t |
FIFO_CTRL_REG definitions. More... | |
union | LIS2DH12_INT1_CFG_t |
INT1_CFG definitions. More... | |
union | LIS2DH12_INT1_THS_t |
INT1_THS definitions. More... | |
union | LIS2DH12_INT1_DURATION_t |
INT1_DURATION definitions. More... | |
union | LIS2DH12_INT2_CFG_t |
INT2_CFG definitions. More... | |
union | LIS2DH12_INT2_THS_t |
INT2_THS definitions. More... | |
union | LIS2DH12_INT2_DURATION_t |
INT2_DURATION definitions. More... | |
union | LIS2DH12_CLICK_CFG_t |
CLICK_CFG definitions. More... | |
union | LIS2DH12_CLICK_THS_t |
CLICK_THS definitions. More... | |
union | LIS2DH12_TIME_LIMIT_t |
TIME_LIMIT definitions. More... | |
union | LIS2DH12_TIME_LATENCY_t |
TIME_LATENCY definitions. More... | |
union | LIS2DH12_TIME_WINDOW_t |
TIME_WINDOW definitions. More... | |
union | LIS2DH12_ACT_THS_t |
ACT_THS definitions. More... | |
union | LIS2DH12_ACT_DURATION_t |
ACT_DURATION definitions. More... | |
Definition of read/write Registers | |
#define | LIS2DH12_CTRL_REG2_HP_IA1 (1 << 0) |
#define | LIS2DH12_CTRL_REG2_HP_IA2 (1 << 1) |
#define | LIS2DH12_CTRL_REG2_HPCLICK (1 << 2) |
#define | LIS2DH12_CTRL_REG2_FDS (1 << 3) |
#define | LIS2DH12_CLICK_THS_LIR (0x80) |
#define LIS2DH12_CLICK_THS_LIR (0x80) |
Definition at line 213 of file lis2dh12_registers.h.
#define LIS2DH12_CTRL_REG2_FDS (1 << 3) |
Definition at line 211 of file lis2dh12_registers.h.
#define LIS2DH12_CTRL_REG2_HP_IA1 (1 << 0) |
Definition at line 208 of file lis2dh12_registers.h.
#define LIS2DH12_CTRL_REG2_HP_IA2 (1 << 1) |
Definition at line 209 of file lis2dh12_registers.h.
#define LIS2DH12_CTRL_REG2_HPCLICK (1 << 2) |
Definition at line 210 of file lis2dh12_registers.h.
#define LIS2DH12_INT_SRC_1 | ( | ret | ) | (((uint32_t)(ret) >> 0) & 0x7F) |
Extract interrupt flags for Event Slot 1.
Definition at line 123 of file lis2dh12_registers.h.
#define LIS2DH12_INT_SRC_2 | ( | ret | ) | (((uint32_t)(ret) >> 8) & 0x7F) |
Extract interrupt flags for Event Slot 2.
Definition at line 128 of file lis2dh12_registers.h.
#define LIS2DH12_INT_SRC_CLICK | ( | ret | ) | (((uint32_t)(ret) >> 16) & 0x7F) |
Extract interrupt flags for Click Event.
Definition at line 133 of file lis2dh12_registers.h.
anonymous enum |
STATUS_REG_AUX definitions.
Enumerator | |
---|---|
LIS2DH12_STATUS_REG_AUX_TDA | Temperature new data available. |
LIS2DH12_STATUS_REG_AUX_TOR | Temperature data overrun. |
Definition at line 31 of file lis2dh12_registers.h.
anonymous enum |
STATUS_REG_TEMP definitions.
Enumerator | |
---|---|
LIS2DH12_TEMP_CFG_REG_DISABLE | Temperature sensor disable. |
LIS2DH12_TEMP_CFG_REG_ENABLE | Temperature sensor enable |
Definition at line 39 of file lis2dh12_registers.h.
anonymous enum |
STATUS_REG definitions.
Definition at line 47 of file lis2dh12_registers.h.
anonymous enum |
INT1_SRC and INT2_SRC definitions.
Definition at line 61 of file lis2dh12_registers.h.
anonymous enum |
Interrupt config register values.
Definition at line 75 of file lis2dh12_registers.h.
anonymous enum |
Interrupt type register values.
Definition at line 89 of file lis2dh12_registers.h.
anonymous enum |
Event slots.
Enumerator | |
---|---|
LIS2DH12_EVENT_1 | first event slot |
LIS2DH12_EVENT_2 | second event slot |
LIS2DH12_EVENT_CLICK | click event |
Definition at line 114 of file lis2dh12_registers.h.