TMCStepper
Library supporting Trinamic Stepper Drivers for Arduino platforms
Loading...
Searching...
No Matches
TMC5160_bitfields.h
Go to the documentation of this file.
1
15
#pragma once
16
#pragma pack(push, 1)
17
18
struct
SHORT_CONF_t
{
19
constexpr
static
uint8_t
address
= 0x09;
20
union
{
21
uint32_t
sr
: 19;
22
struct
{
23
uint8_t
s2vs_level
: 4,
24
: 4,
25
s2g_level
: 4,
26
: 4,
27
shortfilter
: 2;
28
bool
shortdelay
: 1;
29
};
30
};
31
};
32
33
struct
DRV_CONF_t
{
34
constexpr
static
uint8_t
address
= 0x0A;
35
union
{
36
uint32_t
sr
: 22;
37
struct
{
38
uint8_t
bbmtime
: 5,
39
: 3,
40
bbmclks
: 4,
41
: 4,
42
otselect
: 2,
43
drvstrength
: 2,
44
filt_isense
: 2;
45
};
46
};
47
};
48
49
struct
GLOBAL_SCALER_t
{
50
constexpr
static
uint8_t
address
= 0x0B;
51
uint8_t
sr
;
52
};
53
54
struct
OFFSET_READ_t
{
55
constexpr
static
uint8_t
address
= 0x0C;
56
};
57
58
struct
ENC_DEVIATION_t
{
59
constexpr
static
uint8_t
address
= 0x3D;
60
uint32_t
sr
: 20;
61
};
62
63
struct
PWM_AUTO_t
{
64
constexpr
static
uint8_t
address
= 0x72;
65
union
{
66
uint32_t
sr
: 24;
67
struct
{
68
uint8_t
pwm_ofs_auto
: 8,
69
: 8,
70
pwm_grad_auto
: 8;
71
};
72
};
73
};
74
75
#pragma pack(pop)
DRV_CONF_t
Definition
TMC5160_bitfields.h:33
DRV_CONF_t::filt_isense
uint8_t filt_isense
Definition
TMC5160_bitfields.h:44
DRV_CONF_t::bbmtime
uint8_t bbmtime
Definition
TMC5160_bitfields.h:38
DRV_CONF_t::sr
uint32_t sr
Definition
TMC5160_bitfields.h:36
DRV_CONF_t::bbmclks
uint8_t bbmclks
Definition
TMC5160_bitfields.h:39
DRV_CONF_t::drvstrength
uint8_t drvstrength
Definition
TMC5160_bitfields.h:43
DRV_CONF_t::address
static constexpr uint8_t address
Definition
TMC5160_bitfields.h:34
DRV_CONF_t::otselect
uint8_t otselect
Definition
TMC5160_bitfields.h:41
ENC_DEVIATION_t
Definition
TMC5160_bitfields.h:58
ENC_DEVIATION_t::address
static constexpr uint8_t address
Definition
TMC5160_bitfields.h:59
ENC_DEVIATION_t::sr
uint32_t sr
Definition
TMC5160_bitfields.h:60
GLOBAL_SCALER_t
Definition
TMC5160_bitfields.h:49
GLOBAL_SCALER_t::sr
uint8_t sr
Definition
TMC5160_bitfields.h:51
GLOBAL_SCALER_t::address
static constexpr uint8_t address
Definition
TMC5160_bitfields.h:50
OFFSET_READ_t
Definition
TMC5160_bitfields.h:54
OFFSET_READ_t::address
static constexpr uint8_t address
Definition
TMC5160_bitfields.h:55
PWM_AUTO_t
Definition
TMC5160_bitfields.h:63
PWM_AUTO_t::pwm_grad_auto
uint8_t pwm_grad_auto
Definition
TMC5160_bitfields.h:69
PWM_AUTO_t::address
static constexpr uint8_t address
Definition
TMC5160_bitfields.h:64
PWM_AUTO_t::pwm_ofs_auto
uint8_t pwm_ofs_auto
Definition
TMC5160_bitfields.h:68
PWM_AUTO_t::sr
uint32_t sr
Definition
TMC5160_bitfields.h:66
SHORT_CONF_t
Definition
TMC5160_bitfields.h:18
SHORT_CONF_t::address
static constexpr uint8_t address
Definition
TMC5160_bitfields.h:19
SHORT_CONF_t::s2vs_level
uint8_t s2vs_level
Definition
TMC5160_bitfields.h:23
SHORT_CONF_t::s2g_level
uint8_t s2g_level
Definition
TMC5160_bitfields.h:24
SHORT_CONF_t::sr
uint32_t sr
Definition
TMC5160_bitfields.h:21
SHORT_CONF_t::shortdelay
bool shortdelay
Definition
TMC5160_bitfields.h:28
SHORT_CONF_t::shortfilter
uint8_t shortfilter
Definition
TMC5160_bitfields.h:26
src
source
TMC5160_bitfields.h
Generated by
1.16.1