|
HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
|
Driver current control register (IHOLD_IRUN) More...
#include <tmc51x0_registers.hpp>
Public Attributes | ||
| uint32_t | value | |
| struct { | ||
| uint32_t ihold: 5 | ||
| Bits 4..0: Standstill current (0=1/32...31=32/32) More... | ||
| uint32_t reserved1: 3 | ||
| Reserved bits (5..7) More... | ||
| uint32_t irun: 5 | ||
| Bits 12..8: Motor run current (0=1/32...31=32/32) More... | ||
| uint32_t reserved2: 3 | ||
| Reserved bits (13..15) More... | ||
| uint32_t iholddelay: 4 | ||
| Bits 19..16: Motor power down delay (0-15) More... | ||
| uint32_t reserved3: 12 | ||
| Reserved bits (20..31) More... | ||
| } | bits | |
Driver current control register (IHOLD_IRUN)
Configuration for motor run current and standstill current.
Bit assignments per datasheet:
| struct { ... } tmc51x0::IHOLD_IRUN_Register::bits |
| uint32_t tmc51x0::IHOLD_IRUN_Register::ihold |
Bits 4..0: Standstill current (0=1/32...31=32/32)
| uint32_t tmc51x0::IHOLD_IRUN_Register::iholddelay |
Bits 19..16: Motor power down delay (0-15)
| uint32_t tmc51x0::IHOLD_IRUN_Register::irun |
Bits 12..8: Motor run current (0=1/32...31=32/32)
| uint32_t tmc51x0::IHOLD_IRUN_Register::reserved1 |
Reserved bits (5..7)
| uint32_t tmc51x0::IHOLD_IRUN_Register::reserved2 |
Reserved bits (13..15)
| uint32_t tmc51x0::IHOLD_IRUN_Register::reserved3 |
Reserved bits (20..31)
| uint32_t tmc51x0::IHOLD_IRUN_Register::value |