Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
l3g4200_regs.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013 Eduardo Lavratti <agressiva@hotmail.com>
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 
27 #ifndef L3G4200_REGS_H
28 #define L3G4200_REGS_H
29 
30 /* default I2C address */
31 #define L3G4200_ADDR 0xD2
32 #define L3G4200_ADDR_ALT 0xD0
33 
34 /* Registers */
35 #define L3G4200_WHO_AM_I 0x0F
36 
37 #define L3G4200_REG_CTRL_REG1 0x20
38 #define L3G4200_REG_CTRL_REG2 0x21
39 #define L3G4200_REG_CTRL_REG3 0x22
40 #define L3G4200_REG_CTRL_REG4 0x23
41 #define L3G4200_REG_CTRL_REG5 0x24
42 #define L3G4200_REG_REFERENCE 0x25
43 #define L3G4200_REG_OUT_TEMP 0x26
44 #define L3G4200_REG_STATUS_REG 0x27
45 
46 #define L3G4200_REG_OUT_X_L 0x28
47 #define L3G4200_REG_OUT_X_H 0x29
48 #define L3G4200_REG_OUT_Y_L 0x2A
49 #define L3G4200_REG_OUT_Y_H 0x2B
50 #define L3G4200_REG_OUT_Z_L 0x2C
51 #define L3G4200_REG_OUT_Z_H 0x2D
52 
53 #define L3G4200_REG_FIFO_CTRL_REG 0x2E
54 #define L3G4200_REG_FIFO_SRC_REG 0x2F
55 
56 #define L3G4200_REG_INT1_CFG 0x30
57 #define L3G4200_REG_INT1_SRC 0x31
58 #define L3G4200_REG_INT1_THS_XH 0x32
59 #define L3G4200_REG_INT1_THS_XL 0x33
60 #define L3G4200_REG_INT1_THS_YH 0x34
61 #define L3G4200_REG_INT1_THS_YL 0x35
62 #define L3G4200_REG_INT1_THS_ZH 0x36
63 #define L3G4200_REG_INT1_THS_ZL 0x37
64 #define L3G4200_REG_INT1_DURATION 0x38
65 
67 enum L3g4200_DR {
72 };
73 
80 };
81 
86 };
87 
88 #endif /* L3G4200_REGS_H */
L3g4200_SCALE
L3g4200_SCALE
Definition: l3g4200_regs.h:82
L3g4200_DR
L3g4200_DR
Output Data Rate Options.
Definition: l3g4200_regs.h:67
L3G4200_DLPF_2
@ L3G4200_DLPF_2
Definition: l3g4200_regs.h:77
L3G4200_SCALE_500
@ L3G4200_SCALE_500
Definition: l3g4200_regs.h:84
L3G4200_DR_400Hz
@ L3G4200_DR_400Hz
Definition: l3g4200_regs.h:70
L3G4200_DLPF_1
@ L3G4200_DLPF_1
Definition: l3g4200_regs.h:76
L3G4200_SCALE_250
@ L3G4200_SCALE_250
Definition: l3g4200_regs.h:83
L3G4200_DR_100Hz
@ L3G4200_DR_100Hz
Definition: l3g4200_regs.h:68
L3g4200_DLPF
L3g4200_DLPF
Digital Low Pass Filter Options.
Definition: l3g4200_regs.h:75
L3G4200_SCALE_2000
@ L3G4200_SCALE_2000
Definition: l3g4200_regs.h:85
L3G4200_DR_800Hz
@ L3G4200_DR_800Hz
Definition: l3g4200_regs.h:71
L3G4200_DR_200Hz
@ L3G4200_DR_200Hz
Definition: l3g4200_regs.h:69
L3G4200_DLPF_4
@ L3G4200_DLPF_4
Definition: l3g4200_regs.h:79
L3G4200_DLPF_3
@ L3G4200_DLPF_3
Definition: l3g4200_regs.h:78