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
15
namespace
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,
27
pdn_uart
: 1,
28
step
: 1,
29
spread_en
: 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)
TMC2209_n
Definition
TMC2209_bitfields.h:15
TMC2209_n::COOLCONF_t
Definition
TMC2209_bitfields.h:47
TMC2209_n::COOLCONF_t::sedn
uint8_t sedn
Definition
TMC2209_bitfields.h:57
TMC2209_n::COOLCONF_t::semin
uint8_t semin
Definition
TMC2209_bitfields.h:52
TMC2209_n::COOLCONF_t::semax
uint8_t semax
Definition
TMC2209_bitfields.h:55
TMC2209_n::COOLCONF_t::seimin
bool seimin
Definition
TMC2209_bitfields.h:59
TMC2209_n::COOLCONF_t::address
static constexpr uint8_t address
Definition
TMC2209_bitfields.h:48
TMC2209_n::COOLCONF_t::seup
uint8_t seup
Definition
TMC2209_bitfields.h:53
TMC2209_n::COOLCONF_t::sr
uint16_t sr
Definition
TMC2209_bitfields.h:50
TMC2209_n::IOIN_t
Definition
TMC2209_bitfields.h:16
TMC2209_n::IOIN_t::pdn_uart
bool pdn_uart
Definition
TMC2209_bitfields.h:26
TMC2209_n::IOIN_t::step
bool step
Definition
TMC2209_bitfields.h:28
TMC2209_n::IOIN_t::ms2
bool ms2
Definition
TMC2209_bitfields.h:24
TMC2209_n::IOIN_t::spread_en
bool spread_en
Definition
TMC2209_bitfields.h:29
TMC2209_n::IOIN_t::dir
bool dir
Definition
TMC2209_bitfields.h:30
TMC2209_n::IOIN_t::version
uint8_t version
Definition
TMC2209_bitfields.h:32
TMC2209_n::IOIN_t::enn
bool enn
Definition
TMC2209_bitfields.h:21
TMC2209_n::IOIN_t::address
static constexpr uint8_t address
Definition
TMC2209_bitfields.h:17
TMC2209_n::IOIN_t::sr
uint32_t sr
Definition
TMC2209_bitfields.h:19
TMC2209_n::IOIN_t::diag
bool diag
Definition
TMC2209_bitfields.h:25
TMC2209_n::IOIN_t::ms1
bool ms1
Definition
TMC2209_bitfields.h:22
TMC2209_n::SG_RESULT_t
Definition
TMC2209_bitfields.h:42
TMC2209_n::SG_RESULT_t::address
static constexpr uint8_t address
Definition
TMC2209_bitfields.h:43
TMC2209_n::SG_RESULT_t::sr
uint16_t sr
Definition
TMC2209_bitfields.h:44
TMC2209_n::SGTHRS_t
Definition
TMC2209_bitfields.h:37
TMC2209_n::SGTHRS_t::sr
uint8_t sr
Definition
TMC2209_bitfields.h:39
TMC2209_n::SGTHRS_t::address
static constexpr uint8_t address
Definition
TMC2209_bitfields.h:38
src
source
TMC2209_bitfields.h
Generated by
1.16.1