forked from nanoframework/nanoFramework.IoT.Device
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Register.cs
146 lines (119 loc) · 2.79 KB
/
Register.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
// Copyright (c) 2017 The nanoFramework project contributors
// See LICENSE file in the project root for full license information.
namespace Iot.Device.Adxl343Lib
{
/// <summary>
/// Register.
/// </summary>
internal enum Register : byte
{
/// <summary>
/// Device Id.
/// </summary>
DevId = 0x00,
/// <summary>
/// Tap Threshold.
/// </summary>
ThreshTap = 0x1D,
/// <summary>
/// X Offset.
/// </summary>
OfsX = 0x1E,
/// <summary>
/// Y Offset.
/// </summary>
OfsY = 0x1F,
/// <summary>
/// Z Offset.
/// </summary>
OfsZ = 0x20,
/// <summary>
/// Durration.
/// </summary>
Dur = 0x21,
/// <summary>
/// Latency.
/// </summary>
Latent = 0x22,
/// <summary>
/// Window.
/// </summary>
Window = 0x23,
/// <summary>
/// Threshold Active.
/// </summary>
ThreshAct = 0x24,
/// <summary>
/// Threshold Inactive.
/// </summary>
ThreshInact = 0x25,
/// <summary>
/// Time Inactive.
/// </summary>
TimeInact = 0x26,
/// <summary>
/// Active/Inactive Control.
/// </summary>
ActInactCtl = 0x27,
/// <summary>
/// Threshold FF.
/// </summary>
ThreshFF = 0x28,
/// <summary>
/// Time FF.
/// </summary>
TimeFF = 0x29,
/// <summary>
/// Tap Axes.
/// </summary>
TapAxes = 0x2A,
/// <summary>
/// Active Tap Status.
/// </summary>
ActTapStatus = 0x2B,
/// <summary>
/// BW Rate.
/// </summary>
BwRate = 0x2C,
/// <summary>
/// Power Control.
/// </summary>
PowerCtl = 0x2D,
/// <summary>
/// Interrupt Enable.
/// </summary>
IntEnable = 0x2E,
/// <summary>
/// Interrupt Map.
/// </summary>
IntMap = 0x2F,
/// <summary>
/// Interrupt Source.
/// </summary>
IntSource = 0x30,
/// <summary>
/// Data Format.
/// </summary>
DataFormat = 0x31,
/// <summary>
/// X0.
/// </summary>
X0 = 0x32, // 2 bytes
/// <summary>
/// Y0.
/// </summary>
Y0 = 0x34, // 2 bytes
/// <summary>
/// Z0.
/// </summary>
Z0 = 0x36, // 2 bytes
/// <summary>
/// FIFO Control.
/// </summary>
FifoCtl = 0x38,
/// <summary>
/// FIFO Status.
/// </summary>
FifoStatus = 0x39
}
}