Alora Library
Library for using Alora shield
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Macros
Pages
src
LSM9DS1_Registers.h
1
/******************************************************************************
2
LSM9DS1_Registers.h
3
SFE_LSM9DS1 Library - LSM9DS1 Register Map
4
Jim Lindblom @ SparkFun Electronics
5
Original Creation Date: April 21, 2015
6
https://github.com/sparkfun/LSM9DS1_Breakout
7
8
This file defines all registers internal to the gyro/accel and magnetometer
9
devices in the LSM9DS1.
10
11
Development environment specifics:
12
IDE: Arduino 1.6.0
13
Hardware Platform: Arduino Uno
14
LSM9DS1 Breakout Version: 1.0
15
16
This code is beerware; if you see me (or any other SparkFun employee) at the
17
local, and you've found our code helpful, please buy us a round!
18
19
Distributed as-is; no warranty is given.
20
******************************************************************************/
21
22
#ifndef __LSM9DS1_Registers_H__
23
#define __LSM9DS1_Registers_H__
24
26
// LSM9DS1 Accel/Gyro (XL/G) Registers //
28
#define ACT_THS 0x04
29
#define ACT_DUR 0x05
30
#define INT_GEN_CFG_XL 0x06
31
#define INT_GEN_THS_X_XL 0x07
32
#define INT_GEN_THS_Y_XL 0x08
33
#define INT_GEN_THS_Z_XL 0x09
34
#define INT_GEN_DUR_XL 0x0A
35
#define REFERENCE_G 0x0B
36
#define INT1_CTRL 0x0C
37
#define INT2_CTRL 0x0D
38
#define WHO_AM_I_XG 0x0F
39
#define CTRL_REG1_G 0x10
40
#define CTRL_REG2_G 0x11
41
#define CTRL_REG3_G 0x12
42
#define ORIENT_CFG_G 0x13
43
#define INT_GEN_SRC_G 0x14
44
#define OUT_TEMP_L 0x15
45
#define OUT_TEMP_H 0x16
46
#define STATUS_REG_0 0x17
47
#define OUT_X_L_G 0x18
48
#define OUT_X_H_G 0x19
49
#define OUT_Y_L_G 0x1A
50
#define OUT_Y_H_G 0x1B
51
#define OUT_Z_L_G 0x1C
52
#define OUT_Z_H_G 0x1D
53
#define CTRL_REG4 0x1E
54
#define CTRL_REG5_XL 0x1F
55
#define CTRL_REG6_XL 0x20
56
#define CTRL_REG7_XL 0x21
57
#define CTRL_REG8 0x22
58
#define CTRL_REG9 0x23
59
#define CTRL_REG10 0x24
60
#define INT_GEN_SRC_XL 0x26
61
#define STATUS_REG_1 0x27
62
#define OUT_X_L_XL 0x28
63
#define OUT_X_H_XL 0x29
64
#define OUT_Y_L_XL 0x2A
65
#define OUT_Y_H_XL 0x2B
66
#define OUT_Z_L_XL 0x2C
67
#define OUT_Z_H_XL 0x2D
68
#define FIFO_CTRL 0x2E
69
#define FIFO_SRC 0x2F
70
#define INT_GEN_CFG_G 0x30
71
#define INT_GEN_THS_XH_G 0x31
72
#define INT_GEN_THS_XL_G 0x32
73
#define INT_GEN_THS_YH_G 0x33
74
#define INT_GEN_THS_YL_G 0x34
75
#define INT_GEN_THS_ZH_G 0x35
76
#define INT_GEN_THS_ZL_G 0x36
77
#define INT_GEN_DUR_G 0x37
78
80
// LSM9DS1 Magneto Registers //
82
#define OFFSET_X_REG_L_M 0x05
83
#define OFFSET_X_REG_H_M 0x06
84
#define OFFSET_Y_REG_L_M 0x07
85
#define OFFSET_Y_REG_H_M 0x08
86
#define OFFSET_Z_REG_L_M 0x09
87
#define OFFSET_Z_REG_H_M 0x0A
88
#define WHO_AM_I_M 0x0F
89
#define CTRL_REG1_M 0x20
90
#define CTRL_REG2_M 0x21
91
#define CTRL_REG3_M 0x22
92
#define CTRL_REG4_M 0x23
93
#define CTRL_REG5_M 0x24
94
#define STATUS_REG_M 0x27
95
#define OUT_X_L_M 0x28
96
#define OUT_X_H_M 0x29
97
#define OUT_Y_L_M 0x2A
98
#define OUT_Y_H_M 0x2B
99
#define OUT_Z_L_M 0x2C
100
#define OUT_Z_H_M 0x2D
101
#define INT_CFG_M 0x30
102
#define INT_SRC_M 0x31
103
#define INT_THS_L_M 0x32
104
#define INT_THS_H_M 0x33
105
107
// LSM9DS1 WHO_AM_I Responses //
109
#define WHO_AM_I_AG_RSP 0x68
110
#define WHO_AM_I_M_RSP 0x3D
111
112
#endif
Generated on Fri Dec 29 2017 10:55:23 for Alora Library by
1.8.6