TMCStepper
TMC5160_bitfields.h
Go to the documentation of this file.
1 #pragma once
2 #pragma pack(push, 1)
3 
4 struct SHORT_CONF_t {
5  constexpr static uint8_t address = 0x09;
6  union {
7  uint32_t sr : 19;
8  struct {
9  uint8_t s2vs_level : 4,
10  : 4,
11  s2g_level : 4,
12  : 4,
13  shortfilter : 2;
14  bool shortdelay : 1;
15  };
16  };
17 };
18 
19 struct DRV_CONF_t {
20  constexpr static uint8_t address = 0x0A;
21  union {
22  uint32_t sr : 22;
23  struct {
24  uint8_t bbmtime : 5,
25  : 3,
26  bbmclks : 4,
27  : 4,
28  otselect : 2,
31  };
32  };
33 };
34 
36  constexpr static uint8_t address = 0x0B;
37  uint8_t sr;
38 };
39 
40 struct OFFSET_READ_t {
41  constexpr static uint8_t address = 0x0C;
42 };
43 
45  constexpr static uint8_t address = 0x3D;
46  uint32_t sr : 20;
47 };
48 
49 struct PWM_AUTO_t {
50  constexpr static uint8_t address = 0x72;
51  union {
52  uint32_t sr : 24;
53  struct {
54  uint8_t pwm_ofs_auto : 8,
55  : 8,
56  pwm_grad_auto : 8;
57  };
58  };
59 };
60 
61 #pragma pack(pop)
OFFSET_READ_t::address
constexpr static uint8_t address
Definition: TMC5160_bitfields.h:41
ENC_DEVIATION_t::address
constexpr static uint8_t address
Definition: TMC5160_bitfields.h:45
SHORT_CONF_t::sr
uint32_t sr
Definition: TMC5160_bitfields.h:7
SHORT_CONF_t::address
constexpr static uint8_t address
Definition: TMC5160_bitfields.h:5
PWM_AUTO_t::sr
uint32_t sr
Definition: TMC5160_bitfields.h:52
PWM_AUTO_t::pwm_grad_auto
uint8_t pwm_grad_auto
Definition: TMC5160_bitfields.h:55
DRV_CONF_t
Definition: TMC5160_bitfields.h:19
SHORT_CONF_t::shortdelay
bool shortdelay
Definition: TMC5160_bitfields.h:14
SHORT_CONF_t
Definition: TMC5160_bitfields.h:4
SHORT_CONF_t::shortfilter
uint8_t shortfilter
Definition: TMC5160_bitfields.h:12
GLOBAL_SCALER_t::address
constexpr static uint8_t address
Definition: TMC5160_bitfields.h:36
PWM_AUTO_t
Definition: TMC5160_bitfields.h:49
SHORT_CONF_t::s2vs_level
uint8_t s2vs_level
Definition: TMC5160_bitfields.h:9
DRV_CONF_t::address
constexpr static uint8_t address
Definition: TMC5160_bitfields.h:20
SHORT_CONF_t::s2g_level
uint8_t s2g_level
Definition: TMC5160_bitfields.h:10
DRV_CONF_t::drvstrength
uint8_t drvstrength
Definition: TMC5160_bitfields.h:29
PWM_AUTO_t::address
constexpr static uint8_t address
Definition: TMC5160_bitfields.h:50
OFFSET_READ_t
Definition: TMC5160_bitfields.h:40
DRV_CONF_t::bbmclks
uint8_t bbmclks
Definition: TMC5160_bitfields.h:25
GLOBAL_SCALER_t
Definition: TMC5160_bitfields.h:35
DRV_CONF_t::sr
uint32_t sr
Definition: TMC5160_bitfields.h:22
ENC_DEVIATION_t::sr
uint32_t sr
Definition: TMC5160_bitfields.h:46
GLOBAL_SCALER_t::sr
uint8_t sr
Definition: TMC5160_bitfields.h:37
DRV_CONF_t::filt_isense
uint8_t filt_isense
Definition: TMC5160_bitfields.h:30
ENC_DEVIATION_t
Definition: TMC5160_bitfields.h:44
DRV_CONF_t::otselect
uint8_t otselect
Definition: TMC5160_bitfields.h:27
PWM_AUTO_t::pwm_ofs_auto
uint8_t pwm_ofs_auto
Definition: TMC5160_bitfields.h:54
DRV_CONF_t::bbmtime
uint8_t bbmtime
Definition: TMC5160_bitfields.h:24