Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
adxl345.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ADXL345_ADDR   0xA6
 
#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_RATE_3200   0x0F
 
#define ADXL345_RATE_1600   0x0E
 
#define ADXL345_RATE_800   0x0D
 
#define ADXL345_RATE_400   0x0C
 
#define ADXL345_RATE_200   0x0B
 
#define ADXL345_RATE_100   0x0A
 
#define ADXL345_RATE_50   0x09
 
#define ADXL345_INT_INVERT   0x20
 
#define ADXL345_FULL_RES   0x08
 
#define ADXL345_JUSTIFY_MSB   0x04
 
#define ADXL345_RANGE_16G   0x03
 
#define ADXL345_RANGE_8G   0x02
 
#define ADXL345_RANGE_4G   0x01
 
#define ADXL345_RANGE_2G   0x00
 

Macro Definition Documentation

#define ADXL345_ADDR   0xA6

Definition at line 5 of file adxl345.h.

Referenced by adxl345_init(), and imu_impl_init().

#define ADXL345_ADDR_ALT   0x3A

Definition at line 6 of file adxl345.h.

#define ADXL345_FULL_RES   0x08

Definition at line 33 of file adxl345.h.

Referenced by configure_accel(), and imu_impl_init().

#define ADXL345_INT_INVERT   0x20

Definition at line 32 of file adxl345.h.

Referenced by configure_accel().

#define ADXL345_JUSTIFY_MSB   0x04

Definition at line 34 of file adxl345.h.

#define ADXL345_RANGE_16G   0x03

Definition at line 35 of file adxl345.h.

Referenced by configure_accel(), and imu_impl_init().

#define ADXL345_RANGE_2G   0x00

Definition at line 38 of file adxl345.h.

#define ADXL345_RANGE_4G   0x01

Definition at line 37 of file adxl345.h.

#define ADXL345_RANGE_8G   0x02

Definition at line 36 of file adxl345.h.

#define ADXL345_RATE_100   0x0A

Definition at line 28 of file adxl345.h.

Referenced by imu_impl_init().

#define ADXL345_RATE_1600   0x0E

Definition at line 24 of file adxl345.h.

#define ADXL345_RATE_200   0x0B

Definition at line 27 of file adxl345.h.

#define ADXL345_RATE_3200   0x0F

Definition at line 23 of file adxl345.h.

#define ADXL345_RATE_400   0x0C

Definition at line 26 of file adxl345.h.

#define ADXL345_RATE_50   0x09

Definition at line 29 of file adxl345.h.

Referenced by imu_impl_init().

#define ADXL345_RATE_800   0x0D

Definition at line 25 of file adxl345.h.

#define ADXL345_REG_BW_RATE   0x2C

Definition at line 9 of file adxl345.h.

Referenced by adxl345_send_config(), configure_accel(), imu_impl_init(), and main_periodic_task().

#define ADXL345_REG_DATA_FORMAT   0x31

Definition at line 12 of file adxl345.h.

Referenced by adxl345_send_config(), configure_accel(), imu_impl_init(), and main_periodic_task().

#define ADXL345_REG_DATA_X0   0x32

Definition at line 13 of file adxl345.h.

Referenced by adxl345_read(), adxl345_start_reading_data(), imu_periodic(), and read_data().

#define ADXL345_REG_DATA_X1   0x33

Definition at line 14 of file adxl345.h.

#define ADXL345_REG_DATA_Y0   0x34

Definition at line 15 of file adxl345.h.

#define ADXL345_REG_DATA_Y1   0x35

Definition at line 16 of file adxl345.h.

#define ADXL345_REG_DATA_Z0   0x36

Definition at line 17 of file adxl345.h.

#define ADXL345_REG_DATA_Z1   0x37

Definition at line 18 of file adxl345.h.

#define ADXL345_REG_INT_ENABLE   0x2E

Definition at line 11 of file adxl345.h.

Referenced by adxl345_send_config(), configure_accel(), and main_periodic_task().

#define ADXL345_REG_POWER_CTL   0x2D

Definition at line 10 of file adxl345.h.

Referenced by adxl345_send_config(), configure_accel(), imu_impl_init(), and main_periodic_task().