TMCStepper
TMC2209_bitfields.h
Go to the documentation of this file.
1 #pragma once
2 #pragma pack(push, 1)
3 
4 namespace TMC2209_n {
5  struct IOIN_t {
6  constexpr static uint8_t address = 0x06;
7  union {
8  uint32_t sr;
9  struct {
10  bool enn : 1,
11  : 1,
12  ms1 : 1,
13  ms2 : 1,
14  diag : 1,
15  : 1,
16  pdn_uart : 1,
17  step : 1,
18  spread_en : 1,
19  dir : 1;
20  uint16_t : 14;
21  uint8_t version : 8;
22  };
23  };
24  };
25 
26  struct SGTHRS_t {
27  constexpr static uint8_t address = 0x40;
28  uint8_t sr : 8;
29  };
30 
31  struct SG_RESULT_t {
32  constexpr static uint8_t address = 0x41;
33  uint16_t sr : 10;
34  };
35 
36  struct COOLCONF_t {
37  constexpr static uint8_t address = 0x42;
38  union {
39  uint16_t sr;
40  struct {
41  uint8_t semin : 4,
42  : 1,
43  seup : 2,
44  : 1,
45  semax : 4,
46  : 1,
47  sedn : 2;
48  bool seimin : 1;
49  };
50  };
51  };
52 }
53 
54 #pragma pack(pop)
TMC2209_n::IOIN_t::address
constexpr static uint8_t address
Definition: TMC2209_bitfields.h:6
TMC2209_n::COOLCONF_t
Definition: TMC2209_bitfields.h:36
TMC2209_n::IOIN_t::enn
bool enn
Definition: TMC2209_bitfields.h:10
TMC2209_n::COOLCONF_t::seup
uint8_t seup
Definition: TMC2209_bitfields.h:42
TMC2209_n
Definition: TMC2209_bitfields.h:4
TMC2209_n::IOIN_t
Definition: TMC2209_bitfields.h:5
TMC2209_n::IOIN_t::sr
uint32_t sr
Definition: TMC2209_bitfields.h:8
TMC2209_n::SG_RESULT_t::sr
uint16_t sr
Definition: TMC2209_bitfields.h:33
TMC2209_n::SGTHRS_t::address
constexpr static uint8_t address
Definition: TMC2209_bitfields.h:27
TMC2209_n::SG_RESULT_t
Definition: TMC2209_bitfields.h:31
TMC2209_n::COOLCONF_t::sedn
uint8_t sedn
Definition: TMC2209_bitfields.h:46
TMC2209_n::SGTHRS_t
Definition: TMC2209_bitfields.h:26
TMC2209_n::COOLCONF_t::sr
uint16_t sr
Definition: TMC2209_bitfields.h:39
TMC2209_n::IOIN_t::step
bool step
Definition: TMC2209_bitfields.h:17
TMC2209_n::IOIN_t::ms1
bool ms1
Definition: TMC2209_bitfields.h:11
TMC2209_n::COOLCONF_t::seimin
bool seimin
Definition: TMC2209_bitfields.h:48
TMC2209_n::COOLCONF_t::semax
uint8_t semax
Definition: TMC2209_bitfields.h:44
TMC2209_n::IOIN_t::diag
bool diag
Definition: TMC2209_bitfields.h:14
TMC2209_n::COOLCONF_t::semin
uint8_t semin
Definition: TMC2209_bitfields.h:41
TMC2209_n::IOIN_t::dir
bool dir
Definition: TMC2209_bitfields.h:19
TMC2209_n::SG_RESULT_t::address
constexpr static uint8_t address
Definition: TMC2209_bitfields.h:32
TMC2209_n::IOIN_t::spread_en
bool spread_en
Definition: TMC2209_bitfields.h:18
TMC2209_n::SGTHRS_t::sr
uint8_t sr
Definition: TMC2209_bitfields.h:28
TMC2209_n::COOLCONF_t::address
constexpr static uint8_t address
Definition: TMC2209_bitfields.h:37
TMC2209_n::IOIN_t::version
uint8_t version
Definition: TMC2209_bitfields.h:21
TMC2209_n::IOIN_t::ms2
bool ms2
Definition: TMC2209_bitfields.h:13
TMC2209_n::IOIN_t::pdn_uart
bool pdn_uart
Definition: TMC2209_bitfields.h:15