TMCStepper
DRV_STATUS.cpp
Go to the documentation of this file.
1
#include "
TMCStepper.h
"
2
#include "
TMC_MACROS.h
"
3
4
#define GET_REG(NS, SETTING) NS::DRV_STATUS_t r{0}; r.sr = DRV_STATUS(); return r.SETTING
5
6
uint32_t
TMC2130Stepper::DRV_STATUS
() {
return
read
(
DRV_STATUS_t::address
); }
7
8
uint16_t
TMC2130Stepper::sg_result
(){
GET_REG
(
TMC2130_n
,
sg_result
); }
9
bool
TMC2130Stepper::fsactive
() {
GET_REG
(
TMC2130_n
,
fsactive
); }
10
uint8_t
TMC2130Stepper::cs_actual
() {
GET_REG
(
TMC2130_n
,
cs_actual
); }
11
bool
TMC2130Stepper::stallguard
() {
GET_REG
(
TMC2130_n
, stallGuard); }
12
bool
TMC2130Stepper::ot
() {
GET_REG
(
TMC2130_n
,
ot
); }
13
bool
TMC2130Stepper::otpw
() {
GET_REG
(
TMC2130_n
,
otpw
); }
14
bool
TMC2130Stepper::s2ga
() {
GET_REG
(
TMC2130_n
,
s2ga
); }
15
bool
TMC2130Stepper::s2gb
() {
GET_REG
(
TMC2130_n
,
s2gb
); }
16
bool
TMC2130Stepper::ola
() {
GET_REG
(
TMC2130_n
,
ola
); }
17
bool
TMC2130Stepper::olb
() {
GET_REG
(
TMC2130_n
,
olb
); }
18
bool
TMC2130Stepper::stst
() {
GET_REG
(
TMC2130_n
,
stst
); }
19
20
uint32_t
TMC2208Stepper::DRV_STATUS
() {
21
return
read
(
TMC2208_n::DRV_STATUS_t::address
);
22
}
23
24
bool
TMC2208Stepper::otpw
() {
GET_REG
(
TMC2208_n
,
otpw
); }
25
bool
TMC2208Stepper::ot
() {
GET_REG
(
TMC2208_n
,
ot
); }
26
bool
TMC2208Stepper::s2ga
() {
GET_REG
(
TMC2208_n
,
s2ga
); }
27
bool
TMC2208Stepper::s2gb
() {
GET_REG
(
TMC2208_n
,
s2gb
); }
28
bool
TMC2208Stepper::s2vsa
() {
GET_REG
(
TMC2208_n
,
s2vsa
); }
29
bool
TMC2208Stepper::s2vsb
() {
GET_REG
(
TMC2208_n
,
s2vsb
); }
30
bool
TMC2208Stepper::ola
() {
GET_REG
(
TMC2208_n
,
ola
); }
31
bool
TMC2208Stepper::olb
() {
GET_REG
(
TMC2208_n
,
olb
); }
32
bool
TMC2208Stepper::t120
() {
GET_REG
(
TMC2208_n
,
t120
); }
33
bool
TMC2208Stepper::t143
() {
GET_REG
(
TMC2208_n
,
t143
); }
34
bool
TMC2208Stepper::t150
() {
GET_REG
(
TMC2208_n
,
t150
); }
35
bool
TMC2208Stepper::t157
() {
GET_REG
(
TMC2208_n
,
t157
); }
36
uint16_t
TMC2208Stepper::cs_actual
() {
GET_REG
(
TMC2208_n
,
cs_actual
); }
37
bool
TMC2208Stepper::stealth
() {
GET_REG
(
TMC2208_n
,
stealth
); }
38
bool
TMC2208Stepper::stst
() {
GET_REG
(
TMC2208_n
,
stst
); }
TMC2208Stepper::s2gb
bool s2gb()
Definition:
DRV_STATUS.cpp:27
TMC2208Stepper::s2ga
bool s2ga()
Definition:
DRV_STATUS.cpp:26
TMC2208Stepper::cs_actual
uint16_t cs_actual()
Definition:
DRV_STATUS.cpp:36
TMC2130Stepper::ot
bool ot()
Definition:
DRV_STATUS.cpp:12
GET_REG
#define GET_REG(NS, SETTING)
Definition:
DRV_STATUS.cpp:4
TMC2130Stepper::DRV_STATUS_t::address
constexpr static uint8_t address
Definition:
TMCStepper.h:349
TMC2208Stepper::read
uint32_t read(uint8_t)
Definition:
TMC2208Stepper.cpp:221
TMC2130Stepper::stallguard
bool stallguard()
Definition:
DRV_STATUS.cpp:11
TMC2208Stepper::t150
bool t150()
Definition:
DRV_STATUS.cpp:34
TMC2130Stepper::DRV_STATUS
uint32_t DRV_STATUS()
Definition:
DRV_STATUS.cpp:6
TMC2130Stepper::ola
bool ola()
Definition:
DRV_STATUS.cpp:16
TMCStepper.h
TMC2208Stepper::otpw
bool otpw()
Definition:
DRV_STATUS.cpp:24
TMC2208Stepper::DRV_STATUS
uint32_t DRV_STATUS()
Definition:
DRV_STATUS.cpp:20
TMC2130Stepper::cs_actual
uint8_t cs_actual()
Definition:
DRV_STATUS.cpp:10
TMC2208Stepper::stealth
bool stealth()
Definition:
DRV_STATUS.cpp:37
TMC2130Stepper::read
uint32_t read(uint8_t addressByte)
Definition:
TMC2130Stepper.cpp:65
TMC2208Stepper::ot
bool ot()
Definition:
DRV_STATUS.cpp:25
TMC_MACROS.h
TMC2130Stepper::fsactive
bool fsactive()
Definition:
DRV_STATUS.cpp:9
TMC2208Stepper::s2vsb
bool s2vsb()
Definition:
DRV_STATUS.cpp:29
TMC2208Stepper::ola
bool ola()
Definition:
DRV_STATUS.cpp:30
TMC2208Stepper::t157
bool t157()
Definition:
DRV_STATUS.cpp:35
TMC2208Stepper::olb
bool olb()
Definition:
DRV_STATUS.cpp:31
TMC2130_n
Definition:
TMC2130_bitfields.h:185
TMC2208_n
Definition:
TMC2208_bitfields.h:4
TMC2208Stepper::s2vsa
bool s2vsa()
Definition:
DRV_STATUS.cpp:28
TMC2130Stepper::olb
bool olb()
Definition:
DRV_STATUS.cpp:17
TMC2130Stepper::sg_result
uint16_t sg_result()
Definition:
DRV_STATUS.cpp:8
TMC2130Stepper::otpw
bool otpw()
Definition:
DRV_STATUS.cpp:13
TMC2130Stepper::s2ga
bool s2ga()
Definition:
DRV_STATUS.cpp:14
TMC2208Stepper::stst
bool stst()
Definition:
DRV_STATUS.cpp:38
TMC2130Stepper::stst
bool stst()
Definition:
DRV_STATUS.cpp:18
TMC2208_n::DRV_STATUS_t::address
constexpr static uint8_t address
Definition:
TMC2208_bitfields.h:142
TMC2130Stepper::s2gb
bool s2gb()
Definition:
DRV_STATUS.cpp:15
TMC2208Stepper::t143
bool t143()
Definition:
DRV_STATUS.cpp:33
TMC2208Stepper::t120
bool t120()
Definition:
DRV_STATUS.cpp:32
src
source
DRV_STATUS.cpp
Generated by
1.8.17