TMCStepper
Library supporting Trinamic Stepper Drivers for Arduino platforms
Loading...
Searching...
No Matches
RAMP_STAT.cpp
Go to the documentation of this file.
1
6
#include "
../TMCStepper.h
"
7
#include "
TMC_MACROS.h
"
8
9
#define GET_REG(SETTING) RAMP_STAT_t r{}; r.sr = RAMP_STAT(); return r.SETTING
10
11
uint32_t
TMC5130Stepper::RAMP_STAT
() {
12
return
read
(
RAMP_STAT_t::address
);
13
}
14
15
bool
TMC5130Stepper::status_stop_l
() {
GET_REG
(
status_stop_l
); }
16
bool
TMC5130Stepper::status_stop_r
() {
GET_REG
(
status_stop_r
); }
17
bool
TMC5130Stepper::status_latch_l
() {
GET_REG
(
status_latch_l
); }
18
bool
TMC5130Stepper::status_latch_r
() {
GET_REG
(
status_latch_r
); }
19
bool
TMC5130Stepper::event_stop_l
() {
GET_REG
(
event_stop_l
); }
20
bool
TMC5130Stepper::event_stop_r
() {
GET_REG
(
event_stop_r
); }
21
bool
TMC5130Stepper::event_stop_sg
() {
GET_REG
(
event_stop_sg
); }
22
bool
TMC5130Stepper::event_pos_reached
() {
GET_REG
(
event_pos_reached
); }
23
bool
TMC5130Stepper::velocity_reached
() {
GET_REG
(
velocity_reached
); }
24
bool
TMC5130Stepper::position_reached
() {
GET_REG
(
position_reached
); }
25
bool
TMC5130Stepper::vzero
() {
GET_REG
(
vzero
); }
26
bool
TMC5130Stepper::t_zerowait_active
() {
GET_REG
(
t_zerowait_active
); }
27
bool
TMC5130Stepper::second_move
() {
GET_REG
(
second_move
); }
28
bool
TMC5130Stepper::status_sg
() {
GET_REG
(
status_sg
); }
GET_REG
#define GET_REG(SETTING)
Definition
CHOPCONF.cpp:9
TMC_MACROS.h
TMCStepper.h
TMC2130Stepper::read
uint32_t read(uint8_t addressByte)
TMC5130Stepper::velocity_reached
bool velocity_reached()
Definition
RAMP_STAT.cpp:23
TMC5130Stepper::position_reached
bool position_reached()
Definition
RAMP_STAT.cpp:24
TMC5130Stepper::RAMP_STAT
uint32_t RAMP_STAT()
Definition
RAMP_STAT.cpp:11
TMC5130Stepper::event_stop_sg
bool event_stop_sg()
Definition
RAMP_STAT.cpp:21
TMC5130Stepper::vzero
bool vzero()
Definition
RAMP_STAT.cpp:25
TMC5130Stepper::status_latch_r
bool status_latch_r()
Definition
RAMP_STAT.cpp:18
TMC5130Stepper::second_move
bool second_move()
Definition
RAMP_STAT.cpp:27
TMC5130Stepper::event_stop_r
bool event_stop_r()
Definition
RAMP_STAT.cpp:20
TMC5130Stepper::status_latch_l
bool status_latch_l()
Definition
RAMP_STAT.cpp:17
TMC5130Stepper::status_sg
bool status_sg()
Definition
RAMP_STAT.cpp:28
TMC5130Stepper::event_stop_l
bool event_stop_l()
Definition
RAMP_STAT.cpp:19
TMC5130Stepper::event_pos_reached
bool event_pos_reached()
Definition
RAMP_STAT.cpp:22
TMC5130Stepper::t_zerowait_active
bool t_zerowait_active()
Definition
RAMP_STAT.cpp:26
TMC5130Stepper::status_stop_l
bool status_stop_l()
Definition
RAMP_STAT.cpp:15
TMC5130Stepper::status_stop_r
bool status_stop_r()
Definition
RAMP_STAT.cpp:16
RAMP_STAT_t::address
static constexpr uint8_t address
Definition
TMC5130_bitfields.h:146
src
source
RAMP_STAT.cpp
Generated by
1.16.1