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
9#pragma once
10
20
21#ifdef __cplusplus
22 extern "C" {
23#endif
24
28#define L3G4200D_AUTOINC 0x80
29
34#define L3G4200D_REG_WHO_AM_I 0x0f
35#define L3G4200D_REG_CTRL1 0x20
36#define L3G4200D_REG_CTRL2 0x21
37#define L3G4200D_REG_CTRL3 0x22
38#define L3G4200D_REG_CTRL4 0x23
39#define L3G4200D_REG_CTRL5 0x24
40#define L3G4200D_REG_REF 0x25
41#define L3G4200D_REG_OUT_TEMP 0x26
42#define L3G4200D_REG_STATUS 0x27
43#define L3G4200D_REG_OUT_X_L 0x28
44#define L3G4200D_REG_OUT_X_H 0x29
45#define L3G4200D_REG_OUT_Y_L 0x2a
46#define L3G4200D_REG_OUT_Y_H 0x2b
47#define L3G4200D_REG_OUT_Z_L 0x2c
48#define L3G4200D_REG_OUT_Z_H 0x2d
49#define L3G4200D_REG_FIFO_CTRL 0x2e
50#define L3G4200D_REG_FIFO_SRC 0x2f
51#define L3G4200D_REG_INT1_CFG 0x30
52#define L3G4200D_REG_INT1_SRC 0x31
53#define L3G4200D_REG_INT1_THS_XH 0x32
54#define L3G4200D_REG_INT1_THS_XL 0x33
55#define L3G4200D_REG_INT1_THS_YH 0x34
56#define L3G4200D_REG_INT1_THS_YL 0x35
57#define L3G4200D_REG_INT1_THS_ZL 0x36
58#define L3G4200D_REG_INT1_THS_ZH 0x37
59#define L3G4200D_REG_INT1_DURATION 0x38
61
66#define L3G4200D_CTRL1_PD 0x08
67#define L3G4200D_CTRL1_ZEN 0x04
68#define L3G4200D_CTRL1_YEN 0x02
69#define L3G4200D_CTRL1_XEN 0x01
70#define L3G4200D_CTRL1_ALLON 0x0f
71#define L3G4200D_CTRL1_MODE_POS (4)
73
78#define L3G4200D_CTRL4_BDU 0x80
79#define L3G4200D_CTRL4_BLE 0x40
80#define L3G4200D_CTRL4_FS1 0x20
81#define L3G4200D_CTRL4_FS2 0x10
82#define L3G4200D_CTRL4_ST1 0x04
83#define L3G4200D_CTRL4_ST2 0x02
84#define L3G4200D_CTRL4_SIM 0x01
85#define L3G4200D_CTRL4_FS_POS (4)
87
88#ifdef __cplusplus
89}
90#endif
91