Register and bit definitions for the ADXL345.
More...
Register and bit definitions for the ADXL345.
- Author
- Dylan Laduranty dylan.nosp@m..lad.nosp@m.urant.nosp@m.y@me.nosp@m.sotic.nosp@m..com
Definition in file adxl345_regs.h.
Go to the source code of this file.
|
#define | ADXL345_CHIP_ID (0xE5) |
|
|
#define | ADXL345_RES_10_BITS (0x03FF) |
|
#define | ADXL345_RES_11_BITS (0x07FF) |
|
#define | ADXL345_RES_12_BITS (0x0FFF) |
|
#define | ADXL345_RES_13_BITS (0x1FFF) |
|
|
#define | ADXL345_INACT_Z_ENABLE (1 << 0) |
|
#define | ADXL345_INACT_Y_ENABLE (1 << 1) |
|
#define | ADXL345_INACT_X_ENABLE (1 << 2) |
|
#define | ADXL345_INACT_ACDC (1 << 3) |
|
#define | ADXL345_ACT_Z_ENABLE (1 << 4) |
|
#define | ADXL345_ACT_Y_ENABLE (1 << 5) |
|
#define | ADXL345_ACT_X_ENABLE (1 << 6) |
|
#define | ADXL345_ACT_ACDC (1 << 7) |
|
|
#define | ADXL345_TAP_Z_ENABLE (1 << 0) |
|
#define | ADXL345_TAP_Y_ENABLE (1 << 1) |
|
#define | ADXL345_TAP_X_ENABLE (1 << 2) |
|
#define | ADXL345_SUPPRESS (1 << 3) |
|
#define | ADXL345_TAP_ALL_ENABLE |
|
|
#define | ADXL345_TAP_Z_SRC (1 << 0) |
|
#define | ADXL345_TAP_Y_SRC (1 << 1) |
|
#define | ADXL345_TAP_X_SRC (1 << 2) |
|
#define | ADXL345_ASLEEP (1 << 3) |
|
#define | ADXL345_ACT_Z_SRC (1 << 4) |
|
#define | ADXL345_ACT_Y_SRC (1 << 5) |
|
#define | ADXL345_ACT_X_SRC (1 << 6) |
|
|
#define | ADXL345_RATE_MASK (0x0F) |
|
#define | ADXL345_LOWPOWER (1 << 4) |
|
|
#define | ADXL345_WAKEUP_8HZ (0x00) |
|
#define | ADXL345_WAKEUP_4HZ (0x01) |
|
#define | ADXL345_WAKEUP_2HZ (0x02) |
|
#define | ADXL345_WAKEUP_1HZ (0x03) |
|
#define | ADXL345_SLEEP_BIT (1 << 2) |
|
#define | ADXL345_MEASURE_BIT (1 << 3) |
|
#define | ADXL345_AUTOSLEEP_BIT (1 << 4) |
|
#define | ADXL345_LINK_BIT (1 << 5) |
|
|
registers
|
#define | ADXL345_OVERRUN (1 << 0) |
|
#define | ADXL345_WATERMARK (1 << 1) |
|
#define | ADXL345_FREEFALL (1 << 2) |
|
#define | ADXL345_INACTIVITY (1 << 3) |
|
#define | ADXL345_ACTIVITY (1 << 4) |
|
#define | ADXL345_DOUBLE_TAP (1 << 5) |
|
#define | ADXL345_SINGLE_TAP (1 << 6) |
|
#define | ADXL345_DATA_READY (1 << 7) |
|
|
#define | ADXL345_RANGE_MASK (0x03) |
|
#define | ADXL345_JUSTIFY (1 << 2) |
|
#define | ADXL345_FULL_RES (1 << 3) |
|
#define | ADXL345_INT_INVERT (1 << 5) |
|
#define | ADXL345_SPI_BIT (1 << 6) |
|
#define | ADXL345_SELF_TEST (1 << 7) |
|
|
#define | ADXL345_SAMPLES_MASK (0x0F) |
|
#define | ADXL345_FIFO_TRIGGER_POS (4) |
|
#define | ADXL345_FIFO_TRIGGER (1 << ADXL345_FIFO_TRIGGER_POS) |
|
#define | ADXL345_FIFO_MODE_POS (6) |
|
#define | ADXL345_FIFO_MODE_MASK (0xC0) |
|
|
#define | ADXL345_FIFO_ENTRIES_MASK (0x3F) |
|
#define | ADXL345_FIFO_TRIG (1 << 7) |
|
◆ ADXL345_TAP_ALL_ENABLE
#define ADXL345_TAP_ALL_ENABLE |
Value: (ADXL345_TAP_Z_ENABLE | \
ADXL345_TAP_Y_ENABLE | \
ADXL345_TAP_X_ENABLE)
Definition at line 101 of file adxl345_regs.h.