|
HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
|
stallGuard2 value and driver error flags register (DRV_STATUS) More...
#include <tmc51x0_registers.hpp>
Public Attributes | ||
| uint32_t | value | |
| struct { | ||
| uint32_t sg_result: 10 | ||
| uint32_t reserved1: 2 | ||
| Bits 11..10: Reserved, ignore these bits. More... | ||
| uint32_t s2vsa: 1 | ||
| Bit 12: Short to supply indicator phase A. More... | ||
| uint32_t s2vsb: 1 | ||
| Bit 13: Short to supply indicator phase B. More... | ||
| uint32_t stealth: 1 | ||
| Bit 14: StealthChop indicator. More... | ||
| uint32_t fsactive: 1 | ||
| Bit 15: Full step active indicator. More... | ||
| uint32_t cs_actual: 5 | ||
| uint32_t reserved2: 3 | ||
| 21 is also reserved per datasheet) More... | ||
| uint32_t stallguard: 1 | ||
| Bit 24: StallGuard2 status. More... | ||
| uint32_t ot: 1 | ||
| Bit 25: Overtemperature flag. More... | ||
| uint32_t otpw: 1 | ||
| Bit 26: Overtemperature pre-warning flag. More... | ||
| uint32_t s2ga: 1 | ||
| Bit 27: Short to ground indicator phase A. More... | ||
| uint32_t s2gb: 1 | ||
| Bit 28: Short to ground indicator phase B. More... | ||
| uint32_t ola: 1 | ||
| Bit 29: Open load indicator phase A. More... | ||
| uint32_t olb: 1 | ||
| Bit 30: Open load indicator phase B. More... | ||
| uint32_t stst: 1 | ||
| Bit 31: Standstill indicator. More... | ||
| } | bits | |
stallGuard2 value and driver error flags register (DRV_STATUS)
Status information including stallGuard2 result, driver errors, and motor current.
Bit assignments per datasheet:
| struct { ... } tmc51x0::DRV_STATUS_Register::bits |
| uint32_t tmc51x0::DRV_STATUS_Register::cs_actual |
Bits 20..16: Actual motor current / smart energy current
| uint32_t tmc51x0::DRV_STATUS_Register::fsactive |
Bit 15: Full step active indicator.
| uint32_t tmc51x0::DRV_STATUS_Register::ola |
Bit 29: Open load indicator phase A.
| uint32_t tmc51x0::DRV_STATUS_Register::olb |
Bit 30: Open load indicator phase B.
| uint32_t tmc51x0::DRV_STATUS_Register::ot |
Bit 25: Overtemperature flag.
| uint32_t tmc51x0::DRV_STATUS_Register::otpw |
Bit 26: Overtemperature pre-warning flag.
| uint32_t tmc51x0::DRV_STATUS_Register::reserved1 |
Bits 11..10: Reserved, ignore these bits.
| uint32_t tmc51x0::DRV_STATUS_Register::reserved2 |
21 is also reserved per datasheet)
Bits 23..21: Reserved, ignore these bits (bit
| uint32_t tmc51x0::DRV_STATUS_Register::s2ga |
Bit 27: Short to ground indicator phase A.
| uint32_t tmc51x0::DRV_STATUS_Register::s2gb |
Bit 28: Short to ground indicator phase B.
| uint32_t tmc51x0::DRV_STATUS_Register::s2vsa |
Bit 12: Short to supply indicator phase A.
| uint32_t tmc51x0::DRV_STATUS_Register::s2vsb |
Bit 13: Short to supply indicator phase B.
| uint32_t tmc51x0::DRV_STATUS_Register::sg_result |
Bits 9..0: StallGuard2 result or motor temperature estimation
| uint32_t tmc51x0::DRV_STATUS_Register::stallguard |
Bit 24: StallGuard2 status.
| uint32_t tmc51x0::DRV_STATUS_Register::stealth |
Bit 14: StealthChop indicator.
| uint32_t tmc51x0::DRV_STATUS_Register::stst |
Bit 31: Standstill indicator.
| uint32_t tmc51x0::DRV_STATUS_Register::value |