Paparazzi UAS
v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
|
Register and address definitions for ADXL345 accelerometer. More...
Go to the source code of this file.
Macros | |
#define | ADXL345_ADDR 0xA6 |
default I2C address More... | |
#define | ADXL345_ADDR_ALT 0x3A |
#define | ADXL345_REG_BW_RATE 0x2C |
#define | ADXL345_REG_POWER_CTL 0x2D |
#define | ADXL345_REG_INT_ENABLE 0x2E |
#define | ADXL345_REG_DATA_FORMAT 0x31 |
#define | ADXL345_REG_DATA_X0 0x32 |
#define | ADXL345_REG_DATA_X1 0x33 |
#define | ADXL345_REG_DATA_Y0 0x34 |
#define | ADXL345_REG_DATA_Y1 0x35 |
#define | ADXL345_REG_DATA_Z0 0x36 |
#define | ADXL345_REG_DATA_Z1 0x37 |
#define | ADXL345_INT_INVERT 0x20 |
#define | ADXL345_FULL_RES 0x08 |
#define | ADXL345_JUSTIFY_MSB 0x04 |
Enumerations | |
enum | Adxl345Rates { ADXL345_RATE_25HZ = 0x08, ADXL345_RATE_50HZ = 0x09, ADXL345_RATE_100HZ = 0x0A, ADXL345_RATE_200HZ = 0x0B, ADXL345_RATE_400HZ = 0x0C, ADXL345_RATE_800HZ = 0x0D, ADXL345_RATE_1600HZ = 0x0E, ADXL345_RATE_3200HZ = 0x0F } |
Selectable data rates in ADXL345_REG_BW_RATE bandwith is always half of data rate. More... | |
enum | Adxl345Ranges { ADXL345_RANGE_2G = 0x00, ADXL345_RANGE_4G = 0x01, ADXL345_RANGE_8G = 0x02, ADXL345_RANGE_16G = 0x03 } |
Selectable range in ADXL345_REG_DATA_FORMAT. More... | |
Register and address definitions for ADXL345 accelerometer.
Definition in file adxl345_regs.h.
#define ADXL345_ADDR 0xA6 |
default I2C address
Definition at line 32 of file adxl345_regs.h.
Referenced by imu_aspirin_i2c_init(), imu_gl1_init(), and imu_ppzuav_init().
#define ADXL345_ADDR_ALT 0x3A |
Definition at line 33 of file adxl345_regs.h.
Referenced by imu_navgo_init(), and imu_umarim_init().
#define ADXL345_FULL_RES 0x08 |
Definition at line 74 of file adxl345_regs.h.
#define ADXL345_INT_INVERT 0x20 |
Definition at line 73 of file adxl345_regs.h.
#define ADXL345_JUSTIFY_MSB 0x04 |
Definition at line 75 of file adxl345_regs.h.
#define ADXL345_REG_BW_RATE 0x2C |
Definition at line 36 of file adxl345_regs.h.
Referenced by adxl345_i2c_send_config(), and adxl345_spi_send_config().
#define ADXL345_REG_DATA_FORMAT 0x31 |
Definition at line 39 of file adxl345_regs.h.
Referenced by adxl345_i2c_send_config(), and adxl345_spi_send_config().
#define ADXL345_REG_DATA_X0 0x32 |
Definition at line 40 of file adxl345_regs.h.
Referenced by adxl345_i2c_read(), and adxl345_spi_read().
#define ADXL345_REG_DATA_X1 0x33 |
Definition at line 41 of file adxl345_regs.h.
#define ADXL345_REG_DATA_Y0 0x34 |
Definition at line 42 of file adxl345_regs.h.
#define ADXL345_REG_DATA_Y1 0x35 |
Definition at line 43 of file adxl345_regs.h.
#define ADXL345_REG_DATA_Z0 0x36 |
Definition at line 44 of file adxl345_regs.h.
#define ADXL345_REG_DATA_Z1 0x37 |
Definition at line 45 of file adxl345_regs.h.
#define ADXL345_REG_INT_ENABLE 0x2E |
Definition at line 38 of file adxl345_regs.h.
Referenced by adxl345_i2c_send_config(), and adxl345_spi_send_config().
#define ADXL345_REG_POWER_CTL 0x2D |
Definition at line 37 of file adxl345_regs.h.
Referenced by adxl345_i2c_send_config(), and adxl345_spi_send_config().
enum Adxl345Ranges |
Selectable range in ADXL345_REG_DATA_FORMAT.
Enumerator | |
---|---|
ADXL345_RANGE_2G | |
ADXL345_RANGE_4G | |
ADXL345_RANGE_8G | |
ADXL345_RANGE_16G |
Definition at line 65 of file adxl345_regs.h.
enum Adxl345Rates |
Selectable data rates in ADXL345_REG_BW_RATE bandwith is always half of data rate.
Enumerator | |
---|---|
ADXL345_RATE_25HZ | |
ADXL345_RATE_50HZ | |
ADXL345_RATE_100HZ | |
ADXL345_RATE_200HZ | |
ADXL345_RATE_400HZ | |
ADXL345_RATE_800HZ | |
ADXL345_RATE_1600HZ | |
ADXL345_RATE_3200HZ |
Definition at line 51 of file adxl345_regs.h.