|
HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
|
Results of stealthChop amplitude regulator register (PWM_SCALE) More...
#include <tmc51x0_registers.hpp>
Public Attributes | ||
| uint32_t | value | |
| struct { | ||
| uint32_t pwm_scale_sum: 8 | ||
| Bits 7..0: Actual PWM duty cycle (0-255) More... | ||
| uint32_t reserved1: 8 | ||
| Reserved bits (8..15) More... | ||
| int32_t pwm_scale_auto: 9 | ||
| uint32_t reserved2: 7 | ||
| Reserved bits (25..31) More... | ||
| } | bits | |
Results of stealthChop amplitude regulator register (PWM_SCALE)
Read-only register showing actual PWM duty cycle and automatic regulation results.
Bit assignments per datasheet:
| struct { ... } tmc51x0::PWM_SCALE_Register::bits |
| int32_t tmc51x0::PWM_SCALE_Register::pwm_scale_auto |
Bits 24..16: Result of automatic amplitude regulation (signed -255...+255)
| uint32_t tmc51x0::PWM_SCALE_Register::pwm_scale_sum |
Bits 7..0: Actual PWM duty cycle (0-255)
| uint32_t tmc51x0::PWM_SCALE_Register::reserved1 |
Reserved bits (8..15)
| uint32_t tmc51x0::PWM_SCALE_Register::reserved2 |
Reserved bits (25..31)
| uint32_t tmc51x0::PWM_SCALE_Register::value |