TMCStepper
Library supporting Trinamic Stepper Drivers for Arduino platforms
Loading...
Searching...
No Matches
TMC5130_bitfields.h
Go to the documentation of this file.
1
24#pragma once
25#pragma pack(push, 1)
26
28 constexpr static uint8_t address = 0x03;
29 union {
30 uint16_t sr : 12;
31 struct {
32 uint8_t slaveaddr : 8;
33 uint8_t senddelay : 4;
34 };
35 };
36};
37
38namespace TMC5130_n {
39 struct IOIN_t {
40 constexpr static uint8_t address = 0x04;
41 union {
42 uint32_t sr;
43 struct {
44 bool refl_step : 1,
52 uint16_t : 16;
53 uint8_t version : 8;
54 };
55 };
56 };
57}
58
59struct OUTPUT_t {
60 constexpr static uint8_t address = 0x04;
61 bool sr : 1;
62};
63
65 constexpr static uint8_t address = 0x05;
66 uint32_t sr;
67};
68
69struct RAMPMODE_t {
70 constexpr static uint8_t address = 0x20;
71 uint8_t sr : 2;
72};
73
74struct XACTUAL_t {
75 constexpr static uint8_t address = 0x21;
76 uint32_t sr;
77};
78
79struct VSTART_t {
80 constexpr static uint8_t address = 0x23;
81 uint32_t sr : 18;
82};
83
84struct A1_t {
85 constexpr static uint8_t address = 0x24;
86 uint16_t sr;
87};
88
89struct V1_t {
90 constexpr static uint8_t address = 0x25;
91 uint32_t sr : 20;
92};
93
94struct AMAX_t {
95 constexpr static uint8_t address = 0x26;
96 uint16_t sr;
97};
98
99struct VMAX_t {
100 constexpr static uint8_t address = 0x27;
101 uint32_t sr : 23;
102};
103
104struct DMAX_t {
105 constexpr static uint8_t address = 0x28;
106 uint16_t sr;
107};
108
109struct D1_t {
110 constexpr static uint8_t address = 0x2A;
111 uint16_t sr;
112};
113
114struct VSTOP_t {
115 constexpr static uint8_t address = 0x2B;
116 uint32_t sr : 18;
117};
118
120 constexpr static uint8_t address = 0x2C;
121 uint16_t sr;
122};
123
124struct SW_MODE_t {
125 constexpr static uint8_t address = 0x34;
126 union {
127 uint16_t sr : 12;
128 struct {
141 };
142 };
143};
144
146 constexpr static uint8_t address = 0x35;
147 union {
148 uint16_t sr : 14;
149 struct {
160 vzero : 1,
164 };
165 };
166};
167
168struct ENCMODE_t {
169 constexpr static uint8_t address = 0x38;
170 union {
171 uint16_t sr : 11;
172 struct {
173 bool pol_a : 1,
174 pol_b : 1,
175 pol_n : 1,
184 };
185 };
186};
187
189 constexpr static uint8_t address = 0x3A;
190 uint32_t sr;
191};
192
193struct MSLUT0_t {
194 constexpr static uint8_t address = 0x60;
195 uint32_t sr;
196};
197
198struct MSLUT1_t {
199 constexpr static uint8_t address = 0x61;
200 uint32_t sr;
201};
202
203struct MSLUT2_t {
204 constexpr static uint8_t address = 0x62;
205 uint32_t sr;
206};
207
208struct MSLUT3_t {
209 constexpr static uint8_t address = 0x63;
210 uint32_t sr;
211};
212
213struct MSLUT4_t {
214 constexpr static uint8_t address = 0x64;
215 uint32_t sr;
216};
217
218struct MSLUT5_t {
219 constexpr static uint8_t address = 0x65;
220 uint32_t sr;
221};
222
223struct MSLUT6_t {
224 constexpr static uint8_t address = 0x66;
225 uint32_t sr;
226};
227
228struct MSLUT7_t {
229 constexpr static uint8_t address = 0x67;
230 uint32_t sr;
231};
232
234 constexpr static uint8_t address = 0x68;
235 union {
236 uint32_t sr;
237 struct {
238 uint8_t w0 : 2,
239 w1 : 2,
240 w2 : 2,
241 w3 : 2,
242 x1 : 8,
243 x2 : 8,
244 x3 : 8;
245 };
246 };
247};
248
250 constexpr static uint8_t address = 0x69;
251 union {
252 uint32_t sr : 24;
253 struct {
254 uint8_t start_sin : 8,
255 : 8,
257 };
258 };
259};
260
261#pragma pack(pop)
static constexpr uint8_t address
uint16_t sr
static constexpr uint8_t address
uint16_t sr
static constexpr uint8_t address
uint16_t sr
static constexpr uint8_t address
uint16_t sr
static constexpr uint8_t address
static constexpr uint8_t address
static constexpr uint8_t address
static constexpr uint8_t address
static constexpr uint8_t address
static constexpr uint8_t address
static constexpr uint8_t address
static constexpr uint8_t address
static constexpr uint8_t address
static constexpr uint8_t address
static constexpr uint8_t address
static constexpr uint8_t address
static constexpr uint8_t address
static constexpr uint8_t address
static constexpr uint8_t address
static constexpr uint8_t address
static constexpr uint8_t address
static constexpr uint8_t address
static constexpr uint8_t address
uint32_t sr
static constexpr uint8_t address
uint32_t sr
static constexpr uint8_t address
static constexpr uint8_t address
static constexpr uint8_t address
static constexpr uint8_t address
static constexpr uint8_t address