l3g4200d-regs.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 Freie Universität Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
19 #ifndef L3G4200D_REGS_H
20 #define L3G4200D_REGS_H
21 
22 
23 #ifdef __cplusplus
24  extern "C" {
25 #endif
26 
30 #define L3G4200D_AUTOINC 0x80
31 
36 #define L3G4200D_REG_WHO_AM_I 0x0f
37 #define L3G4200D_REG_CTRL1 0x20
38 #define L3G4200D_REG_CTRL2 0x21
39 #define L3G4200D_REG_CTRL3 0x22
40 #define L3G4200D_REG_CTRL4 0x23
41 #define L3G4200D_REG_CTRL5 0x24
42 #define L3G4200D_REG_REF 0x25
43 #define L3G4200D_REG_OUT_TEMP 0x26
44 #define L3G4200D_REG_STATUS 0x27
45 #define L3G4200D_REG_OUT_X_L 0x28
46 #define L3G4200D_REG_OUT_X_H 0x29
47 #define L3G4200D_REG_OUT_Y_L 0x2a
48 #define L3G4200D_REG_OUT_Y_H 0x2b
49 #define L3G4200D_REG_OUT_Z_L 0x2c
50 #define L3G4200D_REG_OUT_Z_H 0x2d
51 #define L3G4200D_REG_FIFO_CTRL 0x2e
52 #define L3G4200D_REG_FIFO_SRC 0x2f
53 #define L3G4200D_REG_INT1_CFG 0x30
54 #define L3G4200D_REG_INT1_SRC 0x31
55 #define L3G4200D_REG_INT1_THS_XH 0x32
56 #define L3G4200D_REG_INT1_THS_XL 0x33
57 #define L3G4200D_REG_INT1_THS_YH 0x34
58 #define L3G4200D_REG_INT1_THS_YL 0x35
59 #define L3G4200D_REG_INT1_THS_ZL 0x36
60 #define L3G4200D_REG_INT1_THS_ZH 0x37
61 #define L3G4200D_REG_INT1_DURATION 0x38
62 
68 #define L3G4200D_CTRL1_PD 0x08
69 #define L3G4200D_CTRL1_ZEN 0x04
70 #define L3G4200D_CTRL1_YEN 0x02
71 #define L3G4200D_CTRL1_XEN 0x01
72 #define L3G4200D_CTRL1_ALLON 0x0f
73 #define L3G4200D_CTRL1_MODE_POS (4)
74 
79 #define L3G4200D_CTRL4_BDU 0x80
80 #define L3G4200D_CTRL4_BLE 0x40
81 #define L3G4200D_CTRL4_FS1 0x20
82 #define L3G4200D_CTRL4_FS2 0x10
83 #define L3G4200D_CTRL4_ST1 0x04
84 #define L3G4200D_CTRL4_ST2 0x02
85 #define L3G4200D_CTRL4_SIM 0x01
86 #define L3G4200D_CTRL4_FS_POS (4)
87 
89 #ifdef __cplusplus
90 }
91 #endif
92 
93 #endif /* L3G4200D_REGS_H */
94