|
HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
|
Ramp status and switch event status register (RAMP_STAT) More...
#include <tmc51x0_registers.hpp>
Public Attributes | ||
| uint32_t | value | |
| struct { | ||
| uint32_t status_stop_l: 1 | ||
| Reference switch left status (1=active) More... | ||
| uint32_t status_stop_r: 1 | ||
| Reference switch right status (1=active) More... | ||
| uint32_t status_latch_l: 1 | ||
| Latch left ready. More... | ||
| uint32_t status_latch_r: 1 | ||
| Latch right ready. More... | ||
| uint32_t event_stop_l: 1 | ||
| uint32_t event_stop_r: 1 | ||
| uint32_t event_stop_sg: 1 | ||
| Signals an active StallGuard2 stop event. More... | ||
| uint32_t event_pos_reached: 1 | ||
| uint32_t velocity_reached: 1 | ||
| Signals that the target velocity is reached. More... | ||
| uint32_t position_reached: 1 | ||
| Signals that the target position is reached. More... | ||
| uint32_t vzero: 1 | ||
| Signals that the actual velocity is 0. More... | ||
| uint32_t t_zerowait_active: 1 | ||
| uint32_t second_move: 1 | ||
| uint32_t status_sg: 1 | ||
| Signals an active stallGuard2 input. More... | ||
| uint32_t reserved: 18 | ||
| Reserved bits. More... | ||
| } | bits | |
Ramp status and switch event status register (RAMP_STAT)
Status information about ramp generator and switch events.
Bit assignments per datasheet:
| struct { ... } tmc51x0::RAMP_STAT_Register::bits |
| uint32_t tmc51x0::RAMP_STAT_Register::event_pos_reached |
Signals that the target position has been reached
| uint32_t tmc51x0::RAMP_STAT_Register::event_stop_l |
Signals an active stop left condition due to stop switch
| uint32_t tmc51x0::RAMP_STAT_Register::event_stop_r |
Signals an active stop right condition due to stop switch
| uint32_t tmc51x0::RAMP_STAT_Register::event_stop_sg |
Signals an active StallGuard2 stop event.
| uint32_t tmc51x0::RAMP_STAT_Register::position_reached |
Signals that the target position is reached.
| uint32_t tmc51x0::RAMP_STAT_Register::reserved |
Reserved bits.
| uint32_t tmc51x0::RAMP_STAT_Register::second_move |
Signals that the automatic ramp required moving back in the opposite direction
| uint32_t tmc51x0::RAMP_STAT_Register::status_latch_l |
Latch left ready.
| uint32_t tmc51x0::RAMP_STAT_Register::status_latch_r |
Latch right ready.
| uint32_t tmc51x0::RAMP_STAT_Register::status_sg |
Signals an active stallGuard2 input.
| uint32_t tmc51x0::RAMP_STAT_Register::status_stop_l |
Reference switch left status (1=active)
| uint32_t tmc51x0::RAMP_STAT_Register::status_stop_r |
Reference switch right status (1=active)
| uint32_t tmc51x0::RAMP_STAT_Register::t_zerowait_active |
Signals that TZEROWAIT is active after a motor stop
| uint32_t tmc51x0::RAMP_STAT_Register::value |
| uint32_t tmc51x0::RAMP_STAT_Register::velocity_reached |
Signals that the target velocity is reached.
| uint32_t tmc51x0::RAMP_STAT_Register::vzero |
Signals that the actual velocity is 0.