From cc87684758cc7c27ee320a256cd2abaeae841199 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sat, 4 Sep 2010 01:34:06 +0300 Subject: [PATCH] add some adxl345 defines --- juggled/adxl345.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/juggled/adxl345.h b/juggled/adxl345.h index c417108..52de558 100644 --- a/juggled/adxl345.h +++ b/juggled/adxl345.h @@ -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 @@ -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?