Loading...
Searching...
No Matches
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#ifdef __cplusplus
23 extern "C" {
24#endif
25
29#define L3G4200D_AUTOINC 0x80
30
35#define L3G4200D_REG_WHO_AM_I 0x0f
36#define L3G4200D_REG_CTRL1 0x20
37#define L3G4200D_REG_CTRL2 0x21
38#define L3G4200D_REG_CTRL3 0x22
39#define L3G4200D_REG_CTRL4 0x23
40#define L3G4200D_REG_CTRL5 0x24
41#define L3G4200D_REG_REF 0x25
42#define L3G4200D_REG_OUT_TEMP 0x26
43#define L3G4200D_REG_STATUS 0x27
44#define L3G4200D_REG_OUT_X_L 0x28
45#define L3G4200D_REG_OUT_X_H 0x29
46#define L3G4200D_REG_OUT_Y_L 0x2a
47#define L3G4200D_REG_OUT_Y_H 0x2b
48#define L3G4200D_REG_OUT_Z_L 0x2c
49#define L3G4200D_REG_OUT_Z_H 0x2d
50#define L3G4200D_REG_FIFO_CTRL 0x2e
51#define L3G4200D_REG_FIFO_SRC 0x2f
52#define L3G4200D_REG_INT1_CFG 0x30
53#define L3G4200D_REG_INT1_SRC 0x31
54#define L3G4200D_REG_INT1_THS_XH 0x32
55#define L3G4200D_REG_INT1_THS_XL 0x33
56#define L3G4200D_REG_INT1_THS_YH 0x34
57#define L3G4200D_REG_INT1_THS_YL 0x35
58#define L3G4200D_REG_INT1_THS_ZL 0x36
59#define L3G4200D_REG_INT1_THS_ZH 0x37
60#define L3G4200D_REG_INT1_DURATION 0x38
67#define L3G4200D_CTRL1_PD 0x08
68#define L3G4200D_CTRL1_ZEN 0x04
69#define L3G4200D_CTRL1_YEN 0x02
70#define L3G4200D_CTRL1_XEN 0x01
71#define L3G4200D_CTRL1_ALLON 0x0f
72#define L3G4200D_CTRL1_MODE_POS (4)
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)
89#ifdef __cplusplus
90}
91#endif
92
93#endif /* L3G4200D_REGS_H */