Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
adxl345_regs.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2010-2013 The Paparazzi Team
3  *
4  * This file is part of paparazzi.
5  *
6  * paparazzi is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * paparazzi is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with paparazzi; see the file COPYING. If not, write to
18  * the Free Software Foundation, 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21 
28 #ifndef ADXL345_REGS_H
29 #define ADXL345_REGS_H
30 
32 #define ADXL345_ADDR 0xA6
33 #define ADXL345_ADDR_ALT 0x3A
34 
35 /* Registers */
36 #define ADXL345_REG_BW_RATE 0x2C
37 #define ADXL345_REG_POWER_CTL 0x2D
38 #define ADXL345_REG_INT_ENABLE 0x2E
39 #define ADXL345_REG_DATA_FORMAT 0x31
40 #define ADXL345_REG_DATA_X0 0x32
41 #define ADXL345_REG_DATA_X1 0x33
42 #define ADXL345_REG_DATA_Y0 0x34
43 #define ADXL345_REG_DATA_Y1 0x35
44 #define ADXL345_REG_DATA_Z0 0x36
45 #define ADXL345_REG_DATA_Z1 0x37
46 
60 };
61 
70 };
71 
72 /* data format bits */
73 #define ADXL345_INT_INVERT 0x20
74 #define ADXL345_FULL_RES 0x08
75 #define ADXL345_JUSTIFY_MSB 0x04
76 
77 
78 #endif /* ADXL345_REGS_H */
Adxl345Ranges
Selectable range in ADXL345_REG_DATA_FORMAT.
Definition: adxl345_regs.h:65
Adxl345Rates
Selectable data rates in ADXL345_REG_BW_RATE bandwith is always half of data rate.
Definition: adxl345_regs.h:51