|
HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
|
Actual microstep current register (MSCURACT) More...
#include <tmc51x0_registers.hpp>
Public Attributes | ||
| uint32_t | value | |
| struct { | ||
| int32_t cur_b: 9 | ||
| uint32_t reserved1: 7 | ||
| Reserved bits (9..15) More... | ||
| int32_t cur_a: 9 | ||
| uint32_t reserved2: 7 | ||
| Reserved bits (25..31) More... | ||
| } | bits | |
Actual microstep current register (MSCURACT)
Read-only register showing actual microstep current for both phases. Values are signed 9-bit (-256 to 255) as read from MSLUT (not scaled by current).
Bit assignments per datasheet:
| struct { ... } tmc51x0::MSCURACT_Register::bits |
| int32_t tmc51x0::MSCURACT_Register::cur_a |
Bits 24..16: Actual microstep current phase A (signed, -256 to 255)
| int32_t tmc51x0::MSCURACT_Register::cur_b |
Bits 8..0: Actual microstep current phase B (signed, -256 to 255)
| uint32_t tmc51x0::MSCURACT_Register::reserved1 |
Reserved bits (9..15)
| uint32_t tmc51x0::MSCURACT_Register::reserved2 |
Reserved bits (25..31)
| uint32_t tmc51x0::MSCURACT_Register::value |