TMCStepper
TMC2160_bitfields.h
Go to the documentation of this file.
1
#pragma once
2
#pragma pack(push, 1)
3
4
namespace
TMC2160_n
{
5
struct
IOIN_t
{
6
constexpr
static
uint8_t
address
= 0x04;
7
union
{
8
uint32_t
sr
;
9
struct
{
10
bool
refl_step
: 1,
11
refr_dir
: 1,
12
encb_dcen_cfg4
: 1,
13
enca_dcin_cfg5
: 1,
14
drv_enn
: 1,
15
dco_cfg6
: 1,
16
: 2;
17
uint16_t
: 16;
18
uint8_t
version
: 8;
19
};
20
};
21
};
22
23
struct
PWMCONF_t
{
24
constexpr
static
uint8_t
address
= 0x70;
25
union
{
26
uint32_t
sr
;
27
struct
{
28
uint8_t
pwm_ofs
: 8,
29
pwm_grad
: 8,
30
pwm_freq
: 2;
31
bool
pwm_autoscale
: 1,
32
pwm_autograd
: 1;
33
uint8_t
freewheel
: 2,
34
: 2,
35
pwm_reg
: 4,
36
pwm_lim
: 4;
37
};
38
};
39
};
40
41
struct
PWM_SCALE_t
{
42
constexpr
static
uint8_t
address
= 0x71;
43
union
{
44
uint32_t
sr
: 25;
45
struct
{
46
uint8_t
pwm_scale_sum
: 8,
47
: 8;
48
uint16_t
pwm_scale_auto
: 9;
49
};
50
};
51
};
52
}
53
54
#pragma pack(pop)
TMC2160_n::PWMCONF_t::pwm_ofs
uint8_t pwm_ofs
Definition:
TMC2160_bitfields.h:28
TMC2160_n::IOIN_t::enca_dcin_cfg5
bool enca_dcin_cfg5
Definition:
TMC2160_bitfields.h:13
TMC2160_n::PWMCONF_t::pwm_freq
uint8_t pwm_freq
Definition:
TMC2160_bitfields.h:30
TMC2160_n::PWM_SCALE_t::sr
uint32_t sr
Definition:
TMC2160_bitfields.h:44
TMC2160_n::PWM_SCALE_t::pwm_scale_auto
uint8_t uint16_t pwm_scale_auto
Definition:
TMC2160_bitfields.h:47
TMC2160_n::IOIN_t::sr
uint32_t sr
Definition:
TMC2160_bitfields.h:8
TMC2160_n::IOIN_t::refr_dir
bool refr_dir
Definition:
TMC2160_bitfields.h:11
TMC2160_n::IOIN_t::refl_step
bool refl_step
Definition:
TMC2160_bitfields.h:10
TMC2160_n::PWM_SCALE_t
Definition:
TMC2160_bitfields.h:41
TMC2160_n::PWMCONF_t::pwm_grad
uint8_t pwm_grad
Definition:
TMC2160_bitfields.h:29
TMC2160_n::PWMCONF_t
Definition:
TMC2160_bitfields.h:23
TMC2160_n::PWMCONF_t::freewheel
uint8_t freewheel
Definition:
TMC2160_bitfields.h:33
TMC2160_n::PWMCONF_t::pwm_autograd
bool pwm_autograd
Definition:
TMC2160_bitfields.h:32
TMC2160_n::IOIN_t::uint16_t
bool uint16_t
Definition:
TMC2160_bitfields.h:16
TMC2160_n::PWMCONF_t::sr
uint32_t sr
Definition:
TMC2160_bitfields.h:26
TMC2160_n
Definition:
TMC2160_bitfields.h:4
TMC2160_n::PWM_SCALE_t::address
constexpr static uint8_t address
Definition:
TMC2160_bitfields.h:42
TMC2160_n::IOIN_t::dco_cfg6
bool dco_cfg6
Definition:
TMC2160_bitfields.h:15
TMC2160_n::PWMCONF_t::address
constexpr static uint8_t address
Definition:
TMC2160_bitfields.h:24
TMC2160_n::IOIN_t::address
constexpr static uint8_t address
Definition:
TMC2160_bitfields.h:6
TMC2160_n::PWM_SCALE_t::pwm_scale_sum
uint8_t pwm_scale_sum
Definition:
TMC2160_bitfields.h:46
TMC2160_n::PWMCONF_t::pwm_lim
uint8_t pwm_lim
Definition:
TMC2160_bitfields.h:36
TMC2160_n::IOIN_t::drv_enn
bool drv_enn
Definition:
TMC2160_bitfields.h:14
TMC2160_n::IOIN_t::version
uint8_t version
Definition:
TMC2160_bitfields.h:18
TMC2160_n::IOIN_t::encb_dcen_cfg4
bool encb_dcen_cfg4
Definition:
TMC2160_bitfields.h:12
TMC2160_n::PWMCONF_t::pwm_autoscale
bool pwm_autoscale
Definition:
TMC2160_bitfields.h:31
TMC2160_n::PWMCONF_t::pwm_reg
uint8_t pwm_reg
Definition:
TMC2160_bitfields.h:34
TMC2160_n::IOIN_t
Definition:
TMC2160_bitfields.h:5
src
source
TMC2160_bitfields.h
Generated by
1.8.17