Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
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
51
enum
Adxl345Rates
{
52
ADXL345_RATE_25HZ
= 0x08,
53
ADXL345_RATE_50HZ
= 0x09,
54
ADXL345_RATE_100HZ
= 0x0A,
55
ADXL345_RATE_200HZ
= 0x0B,
56
ADXL345_RATE_400HZ
= 0x0C,
57
ADXL345_RATE_800HZ
= 0x0D,
58
ADXL345_RATE_1600HZ
= 0x0E,
59
ADXL345_RATE_3200HZ
= 0x0F
60
};
61
65
enum
Adxl345Ranges
{
66
ADXL345_RANGE_2G
= 0x00,
67
ADXL345_RANGE_4G
= 0x01,
68
ADXL345_RANGE_8G
= 0x02,
69
ADXL345_RANGE_16G
= 0x03
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 */
ADXL345_RATE_800HZ
@ ADXL345_RATE_800HZ
Definition:
adxl345_regs.h:57
ADXL345_RATE_1600HZ
@ ADXL345_RATE_1600HZ
Definition:
adxl345_regs.h:58
ADXL345_RATE_200HZ
@ ADXL345_RATE_200HZ
Definition:
adxl345_regs.h:55
ADXL345_RANGE_4G
@ ADXL345_RANGE_4G
Definition:
adxl345_regs.h:67
ADXL345_RATE_25HZ
@ ADXL345_RATE_25HZ
Definition:
adxl345_regs.h:52
ADXL345_RANGE_16G
@ ADXL345_RANGE_16G
Definition:
adxl345_regs.h:69
ADXL345_RATE_3200HZ
@ ADXL345_RATE_3200HZ
Definition:
adxl345_regs.h:59
ADXL345_RATE_100HZ
@ ADXL345_RATE_100HZ
Definition:
adxl345_regs.h:54
Adxl345Rates
Adxl345Rates
Selectable data rates in ADXL345_REG_BW_RATE bandwith is always half of data rate.
Definition:
adxl345_regs.h:51
ADXL345_RATE_50HZ
@ ADXL345_RATE_50HZ
Definition:
adxl345_regs.h:53
ADXL345_RANGE_2G
@ ADXL345_RANGE_2G
Definition:
adxl345_regs.h:66
ADXL345_RATE_400HZ
@ ADXL345_RATE_400HZ
Definition:
adxl345_regs.h:56
ADXL345_RANGE_8G
@ ADXL345_RANGE_8G
Definition:
adxl345_regs.h:68
Adxl345Ranges
Adxl345Ranges
Selectable range in ADXL345_REG_DATA_FORMAT.
Definition:
adxl345_regs.h:65
sw
airborne
peripherals
adxl345_regs.h
Generated on Tue Feb 1 2022 13:51:17 for Paparazzi UAS by
1.8.17