TMCStepper
Library supporting Trinamic Stepper Drivers for Arduino platforms
Loading...
Searching...
No Matches
TMC2209_bitfields.h
Go to the documentation of this file.
1
12#pragma once
13#pragma pack(push, 1)
14
15namespace TMC2209_n {
16 struct IOIN_t {
17 constexpr static uint8_t address = 0x06;
18 union {
19 uint32_t sr;
20 struct {
21 bool enn : 1,
22 : 1,
23 ms1 : 1,
24 ms2 : 1,
25 diag : 1,
26 : 1,
28 step : 1,
30 dir : 1;
31 uint16_t : 14;
32 uint8_t version : 8;
33 };
34 };
35 };
36
37 struct SGTHRS_t {
38 constexpr static uint8_t address = 0x40;
39 uint8_t sr : 8;
40 };
41
42 struct SG_RESULT_t {
43 constexpr static uint8_t address = 0x41;
44 uint16_t sr : 10;
45 };
46
47 struct COOLCONF_t {
48 constexpr static uint8_t address = 0x42;
49 union {
50 uint16_t sr;
51 struct {
52 uint8_t semin : 4,
53 : 1,
54 seup : 2,
55 : 1,
56 semax : 4,
57 : 1,
58 sedn : 2;
59 bool seimin : 1;
60 };
61 };
62 };
63}
64
65#pragma pack(pop)
static constexpr uint8_t address
static constexpr uint8_t address
static constexpr uint8_t address
static constexpr uint8_t address