TMCStepper
RAMP_STAT.cpp
Go to the documentation of this file.
1
#include "
TMCStepper.h
"
2
#include "
TMC_MACROS.h
"
3
4
#define GET_REG(SETTING) RAMP_STAT_t r{0}; r.sr = RAMP_STAT(); return r.SETTING
5
6
uint32_t
TMC5130Stepper::RAMP_STAT
() {
7
return
read
(
RAMP_STAT_t::address
);
8
}
9
10
bool
TMC5130Stepper::status_stop_l
() {
GET_REG
(
status_stop_l
); }
11
bool
TMC5130Stepper::status_stop_r
() {
GET_REG
(
status_stop_r
); }
12
bool
TMC5130Stepper::status_latch_l
() {
GET_REG
(
status_latch_l
); }
13
bool
TMC5130Stepper::status_latch_r
() {
GET_REG
(
status_latch_r
); }
14
bool
TMC5130Stepper::event_stop_l
() {
GET_REG
(
event_stop_l
); }
15
bool
TMC5130Stepper::event_stop_r
() {
GET_REG
(
event_stop_r
); }
16
bool
TMC5130Stepper::event_stop_sg
() {
GET_REG
(
event_stop_sg
); }
17
bool
TMC5130Stepper::event_pos_reached
() {
GET_REG
(
event_pos_reached
); }
18
bool
TMC5130Stepper::velocity_reached
() {
GET_REG
(
velocity_reached
); }
19
bool
TMC5130Stepper::position_reached
() {
GET_REG
(
position_reached
); }
20
bool
TMC5130Stepper::vzero
() {
GET_REG
(
vzero
); }
21
bool
TMC5130Stepper::t_zerowait_active
() {
GET_REG
(
t_zerowait_active
); }
22
bool
TMC5130Stepper::second_move
() {
GET_REG
(
second_move
); }
23
bool
TMC5130Stepper::status_sg
() {
GET_REG
(
status_sg
); }
TMC5130Stepper::velocity_reached
bool velocity_reached()
Definition:
RAMP_STAT.cpp:18
TMC5130Stepper::event_stop_l
bool event_stop_l()
Definition:
RAMP_STAT.cpp:14
TMC5130Stepper::status_sg
bool status_sg()
Definition:
RAMP_STAT.cpp:23
TMC5130Stepper::event_stop_r
bool event_stop_r()
Definition:
RAMP_STAT.cpp:15
TMC5130Stepper::event_pos_reached
bool event_pos_reached()
Definition:
RAMP_STAT.cpp:17
TMCStepper.h
TMC5130Stepper::status_latch_r
bool status_latch_r()
Definition:
RAMP_STAT.cpp:13
TMC5130Stepper::status_latch_l
bool status_latch_l()
Definition:
RAMP_STAT.cpp:12
TMC5130Stepper::second_move
bool second_move()
Definition:
RAMP_STAT.cpp:22
TMC5130Stepper::status_stop_l
bool status_stop_l()
Definition:
RAMP_STAT.cpp:10
TMC2130Stepper::read
uint32_t read(uint8_t addressByte)
Definition:
TMC2130Stepper.cpp:65
TMC_MACROS.h
TMC5130Stepper::position_reached
bool position_reached()
Definition:
RAMP_STAT.cpp:19
TMC5130Stepper::event_stop_sg
bool event_stop_sg()
Definition:
RAMP_STAT.cpp:16
RAMP_STAT_t::address
constexpr static uint8_t address
Definition:
TMC5130_bitfields.h:123
TMC5130Stepper::t_zerowait_active
bool t_zerowait_active()
Definition:
RAMP_STAT.cpp:21
TMC5130Stepper::status_stop_r
bool status_stop_r()
Definition:
RAMP_STAT.cpp:11
TMC5130Stepper::RAMP_STAT
uint32_t RAMP_STAT()
Definition:
RAMP_STAT.cpp:6
GET_REG
#define GET_REG(SETTING)
Definition:
RAMP_STAT.cpp:4
TMC5130Stepper::vzero
bool vzero()
Definition:
RAMP_STAT.cpp:20
src
source
RAMP_STAT.cpp
Generated by
1.8.17