Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
adxl345_regs.h File Reference

Register and address definitions for ADXL345 accelerometer. More...

+ This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

Register and address definitions for ADXL345 accelerometer.

Definition in file adxl345_regs.h.

Macro Definition Documentation

◆ ADXL345_ADDR

#define ADXL345_ADDR   0xA6

default I2C address

Definition at line 32 of file adxl345_regs.h.

◆ ADXL345_ADDR_ALT

#define ADXL345_ADDR_ALT   0x3A

Definition at line 33 of file adxl345_regs.h.

◆ ADXL345_FULL_RES

#define ADXL345_FULL_RES   0x08

Definition at line 74 of file adxl345_regs.h.

◆ ADXL345_INT_INVERT

#define ADXL345_INT_INVERT   0x20

Definition at line 73 of file adxl345_regs.h.

◆ ADXL345_JUSTIFY_MSB

#define ADXL345_JUSTIFY_MSB   0x04

Definition at line 75 of file adxl345_regs.h.

◆ ADXL345_REG_BW_RATE

#define ADXL345_REG_BW_RATE   0x2C

Definition at line 36 of file adxl345_regs.h.

◆ ADXL345_REG_DATA_FORMAT

#define ADXL345_REG_DATA_FORMAT   0x31

Definition at line 39 of file adxl345_regs.h.

◆ ADXL345_REG_DATA_X0

#define ADXL345_REG_DATA_X0   0x32

Definition at line 40 of file adxl345_regs.h.

◆ ADXL345_REG_DATA_X1

#define ADXL345_REG_DATA_X1   0x33

Definition at line 41 of file adxl345_regs.h.

◆ ADXL345_REG_DATA_Y0

#define ADXL345_REG_DATA_Y0   0x34

Definition at line 42 of file adxl345_regs.h.

◆ ADXL345_REG_DATA_Y1

#define ADXL345_REG_DATA_Y1   0x35

Definition at line 43 of file adxl345_regs.h.

◆ ADXL345_REG_DATA_Z0

#define ADXL345_REG_DATA_Z0   0x36

Definition at line 44 of file adxl345_regs.h.

◆ ADXL345_REG_DATA_Z1

#define ADXL345_REG_DATA_Z1   0x37

Definition at line 45 of file adxl345_regs.h.

◆ ADXL345_REG_INT_ENABLE

#define ADXL345_REG_INT_ENABLE   0x2E

Definition at line 38 of file adxl345_regs.h.

◆ ADXL345_REG_POWER_CTL

#define ADXL345_REG_POWER_CTL   0x2D

Definition at line 37 of file adxl345_regs.h.

Enumeration Type Documentation

◆ 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.

◆ 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.