TMCStepper
Library supporting Trinamic Stepper Drivers for Arduino platforms
Loading...
Searching...
No Matches
DRV_STATUS.cpp
Go to the documentation of this file.
1
6
#include "
../TMCStepper.h
"
7
#include "
TMC_MACROS.h
"
8
9
#define GET_REG(NS, SETTING) NS::DRV_STATUS_t r{}; r.sr = DRV_STATUS(); return r.SETTING
10
11
//
12
// TMC2130 (TMC2160, TMC5130, TMC5160, TMC5161)
13
//
14
15
uint32_t
TMC2130Stepper::DRV_STATUS
() {
16
return
read
(
TMC2130_n::DRV_STATUS_t::address
);
17
}
18
19
uint16_t
TMC2130Stepper::sg_result
(){
GET_REG
(
TMC2130_n
,
sg_result
); }
20
bool
TMC2130Stepper::fsactive
() {
GET_REG
(
TMC2130_n
,
fsactive
); }
21
uint8_t
TMC2130Stepper::cs_actual
() {
GET_REG
(
TMC2130_n
,
cs_actual
); }
22
bool
TMC2130Stepper::stallguard
() {
GET_REG
(
TMC2130_n
, stallGuard); }
23
bool
TMC2130Stepper::ot
() {
GET_REG
(
TMC2130_n
,
ot
); }
24
bool
TMC2130Stepper::otpw
() {
GET_REG
(
TMC2130_n
,
otpw
); }
25
bool
TMC2130Stepper::s2ga
() {
GET_REG
(
TMC2130_n
,
s2ga
); }
26
bool
TMC2130Stepper::s2gb
() {
GET_REG
(
TMC2130_n
,
s2gb
); }
27
bool
TMC2130Stepper::ola
() {
GET_REG
(
TMC2130_n
,
ola
); }
28
bool
TMC2130Stepper::olb
() {
GET_REG
(
TMC2130_n
,
olb
); }
29
bool
TMC2130Stepper::stst
() {
GET_REG
(
TMC2130_n
,
stst
); }
30
31
//
32
// TMC2208 (TMC2209, TMC2224)
33
//
34
35
uint32_t
TMC2208Stepper::DRV_STATUS
() {
36
return
read
(
TMC2208_n::DRV_STATUS_t::address
);
37
}
38
39
bool
TMC2208Stepper::otpw
() {
GET_REG
(
TMC2208_n
,
otpw
); }
40
bool
TMC2208Stepper::ot
() {
GET_REG
(
TMC2208_n
,
ot
); }
41
bool
TMC2208Stepper::s2ga
() {
GET_REG
(
TMC2208_n
,
s2ga
); }
42
bool
TMC2208Stepper::s2gb
() {
GET_REG
(
TMC2208_n
,
s2gb
); }
43
bool
TMC2208Stepper::s2vsa
() {
GET_REG
(
TMC2208_n
,
s2vsa
); }
44
bool
TMC2208Stepper::s2vsb
() {
GET_REG
(
TMC2208_n
,
s2vsb
); }
45
bool
TMC2208Stepper::ola
() {
GET_REG
(
TMC2208_n
,
ola
); }
46
bool
TMC2208Stepper::olb
() {
GET_REG
(
TMC2208_n
,
olb
); }
47
bool
TMC2208Stepper::t120
() {
GET_REG
(
TMC2208_n
,
t120
); }
48
bool
TMC2208Stepper::t143
() {
GET_REG
(
TMC2208_n
,
t143
); }
49
bool
TMC2208Stepper::t150
() {
GET_REG
(
TMC2208_n
,
t150
); }
50
bool
TMC2208Stepper::t157
() {
GET_REG
(
TMC2208_n
,
t157
); }
51
uint16_t
TMC2208Stepper::cs_actual
() {
GET_REG
(
TMC2208_n
,
cs_actual
); }
52
bool
TMC2208Stepper::stealth
() {
GET_REG
(
TMC2208_n
,
stealth
); }
53
bool
TMC2208Stepper::stst
() {
GET_REG
(
TMC2208_n
,
stst
); }
54
55
uint32_t
TMC2240Stepper::DRV_STATUS
() {
56
return
read
(
TMC2240_n::DRV_STATUS_t::address
);
57
}
58
59
bool
TMC2240Stepper::s2vsa
() {
GET_REG
(
TMC2240_n
,
s2vsa
); }
60
bool
TMC2240Stepper::s2vsb
() {
GET_REG
(
TMC2240_n
,
s2vsb
); }
61
bool
TMC2240Stepper::stealth
() {
GET_REG
(
TMC2240_n
,
stealth
); }
62
bool
TMC2240Stepper::fsactive
() {
GET_REG
(
TMC2240_n
,
fsactive
); }
63
uint16_t
TMC2240Stepper::CS_ACTUAL
() {
GET_REG
(
TMC2240_n
,
CS_ACTUAL
); }
64
bool
TMC2240Stepper::stallguard
() {
GET_REG
(
TMC2240_n
,
stallguard
); }
65
bool
TMC2240Stepper::ot
() {
GET_REG
(
TMC2240_n
,
ot
); }
66
bool
TMC2240Stepper::otpw
() {
GET_REG
(
TMC2240_n
,
otpw
); }
67
bool
TMC2240Stepper::s2ga
() {
GET_REG
(
TMC2240_n
,
s2ga
); }
68
bool
TMC2240Stepper::s2gb
() {
GET_REG
(
TMC2240_n
,
s2gb
); }
69
bool
TMC2240Stepper::ola
() {
GET_REG
(
TMC2240_n
,
ola
); }
70
bool
TMC2240Stepper::olb
() {
GET_REG
(
TMC2240_n
,
olb
); }
71
uint32_t
TMC2240Stepper::SG_RESULT
() {
GET_REG
(
TMC2240_n
,
SG_RESULT
); }
72
bool
TMC2240Stepper::stst
() {
GET_REG
(
TMC2240_n
,
stst
); }
GET_REG
#define GET_REG(SETTING)
Definition
CHOPCONF.cpp:9
TMC_MACROS.h
TMCStepper.h
TMC2130Stepper::otpw
bool otpw()
Definition
DRV_STATUS.cpp:24
TMC2130Stepper::sg_result
uint16_t sg_result()
Definition
DRV_STATUS.cpp:19
TMC2130Stepper::stallguard
bool stallguard()
Definition
DRV_STATUS.cpp:22
TMC2130Stepper::olb
bool olb()
Definition
DRV_STATUS.cpp:28
TMC2130Stepper::ola
bool ola()
Definition
DRV_STATUS.cpp:27
TMC2130Stepper::s2gb
bool s2gb()
Definition
DRV_STATUS.cpp:26
TMC2130Stepper::cs_actual
uint8_t cs_actual()
Definition
DRV_STATUS.cpp:21
TMC2130Stepper::DRV_STATUS
uint32_t DRV_STATUS()
Definition
DRV_STATUS.cpp:15
TMC2130Stepper::fsactive
bool fsactive()
Definition
DRV_STATUS.cpp:20
TMC2130Stepper::stst
bool stst()
Definition
DRV_STATUS.cpp:29
TMC2130Stepper::ot
bool ot()
Definition
DRV_STATUS.cpp:23
TMC2130Stepper::read
uint32_t read(uint8_t addressByte)
TMC2130Stepper::s2ga
bool s2ga()
Definition
DRV_STATUS.cpp:25
TMC2208Stepper::s2vsa
bool s2vsa()
Definition
DRV_STATUS.cpp:43
TMC2208Stepper::t157
bool t157()
Definition
DRV_STATUS.cpp:50
TMC2208Stepper::stst
bool stst()
Definition
DRV_STATUS.cpp:53
TMC2208Stepper::DRV_STATUS
uint32_t DRV_STATUS()
Definition
DRV_STATUS.cpp:35
TMC2208Stepper::read
uint32_t read(uint8_t)
Definition
TMC2208Stepper.cpp:350
TMC2208Stepper::stealth
bool stealth()
Definition
DRV_STATUS.cpp:52
TMC2208Stepper::otpw
bool otpw()
Definition
DRV_STATUS.cpp:39
TMC2208Stepper::t150
bool t150()
Definition
DRV_STATUS.cpp:49
TMC2208Stepper::t120
bool t120()
Definition
DRV_STATUS.cpp:47
TMC2208Stepper::s2vsb
bool s2vsb()
Definition
DRV_STATUS.cpp:44
TMC2208Stepper::s2ga
bool s2ga()
Definition
DRV_STATUS.cpp:41
TMC2208Stepper::ot
bool ot()
Definition
DRV_STATUS.cpp:40
TMC2208Stepper::cs_actual
uint16_t cs_actual()
Definition
DRV_STATUS.cpp:51
TMC2208Stepper::olb
bool olb()
Definition
DRV_STATUS.cpp:46
TMC2208Stepper::ola
bool ola()
Definition
DRV_STATUS.cpp:45
TMC2208Stepper::t143
bool t143()
Definition
DRV_STATUS.cpp:48
TMC2208Stepper::s2gb
bool s2gb()
Definition
DRV_STATUS.cpp:42
TMC2240Stepper::otpw
bool otpw()
Definition
DRV_STATUS.cpp:66
TMC2240Stepper::fsactive
bool fsactive()
Definition
DRV_STATUS.cpp:62
TMC2240Stepper::CS_ACTUAL
uint16_t CS_ACTUAL()
Definition
DRV_STATUS.cpp:63
TMC2240Stepper::SG_RESULT
uint32_t SG_RESULT()
Definition
DRV_STATUS.cpp:71
TMC2240Stepper::stst
bool stst()
Definition
DRV_STATUS.cpp:72
TMC2240Stepper::stallguard
bool stallguard()
Definition
DRV_STATUS.cpp:64
TMC2240Stepper::s2vsa
bool s2vsa()
Definition
DRV_STATUS.cpp:59
TMC2240Stepper::s2gb
bool s2gb()
Definition
DRV_STATUS.cpp:68
TMC2240Stepper::ot
bool ot()
Definition
DRV_STATUS.cpp:65
TMC2240Stepper::read
uint32_t read(uint8_t addressByte)
TMC2240Stepper::olb
bool olb()
Definition
DRV_STATUS.cpp:70
TMC2240Stepper::s2ga
bool s2ga()
Definition
DRV_STATUS.cpp:67
TMC2240Stepper::stealth
bool stealth()
Definition
DRV_STATUS.cpp:61
TMC2240Stepper::DRV_STATUS
uint32_t DRV_STATUS()
Definition
DRV_STATUS.cpp:55
TMC2240Stepper::ola
bool ola()
Definition
DRV_STATUS.cpp:69
TMC2240Stepper::s2vsb
bool s2vsb()
Definition
DRV_STATUS.cpp:60
TMC2130_n
Definition
TMC2130_bitfields.h:207
TMC2208_n
Definition
TMC2208_bitfields.h:18
TMC2240_n
Definition
TMC2240_bitfields.h:18
TMC2130_n::DRV_STATUS_t::address
static constexpr uint8_t address
Definition
TMC2130_bitfields.h:209
TMC2208_n::DRV_STATUS_t::address
static constexpr uint8_t address
Definition
TMC2208_bitfields.h:157
TMC2240_n::DRV_STATUS_t::address
static constexpr uint8_t address
Definition
TMC2240_bitfields.h:396
src
source
DRV_STATUS.cpp
Generated by
1.16.1