Skip to content

Commit

Permalink
add some adxl345 defines
Browse files Browse the repository at this point in the history
  • Loading branch information
Alon Levy committed Sep 3, 2010
1 parent 23adb06 commit cc87684
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions juggled/adxl345.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

// CHB_SPI registers

// Bandwidth
#define ADXL345_BW_RATE 0x2c

// b1010
#define ADXL345_100HZ_OUTPUT 10

// Power Control register
#define ADXL345_POWER_CTL 0x2d

Expand All @@ -20,6 +26,12 @@

#define ADXL345_DATA_FORMAT 0x31

#define ADXL345_FULLRES 8
#define ADXL345_2G 0
#define ADXL345_4G 1
#define ADXL345_8G 2
#define ADXL345_16G 3

#define ADXL345_FIFO_CTL 0x38

// Figure 36, page 15, W_not bit == Read bit?
Expand Down

0 comments on commit cc87684

Please sign in to comment.