|
HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
|
stealthChop voltage PWM mode chopper configuration register (PWMCONF) More...
#include <tmc51x0_registers.hpp>
Public Attributes | ||
| uint32_t | value | |
| struct { | ||
| uint32_t pwm_ofs: 8 | ||
| Bits 7..0: User defined PWM amplitude (offset) More... | ||
| uint32_t pwm_grad: 8 | ||
| Bits 15..8: User defined PWM amplitude (gradient) More... | ||
| uint32_t pwm_freq: 2 | ||
| Bits 17..16: PWM frequency selection. More... | ||
| uint32_t pwm_autoscale: 1 | ||
| Bit 18: Enable PWM automatic amplitude scaling. More... | ||
| uint32_t pwm_autograd: 1 | ||
| Bit 19: PWM automatic gradient adaptation. More... | ||
| uint32_t freewheel: 2 | ||
| Bits 21..20: Stand still option when I_HOLD=0. More... | ||
| uint32_t reserved1: 2 | ||
| Bits 23..22: Reserved, set to 0. More... | ||
| uint32_t pwm_reg: 4 | ||
| Bits 27..24: Regulation loop gradient. More... | ||
| uint32_t pwm_lim: 4 | ||
| } | bits | |
stealthChop voltage PWM mode chopper configuration register (PWMCONF)
Configuration for stealthChop PWM mode operation.
Bit assignments per datasheet:
| struct { ... } tmc51x0::PWMCONF_Register::bits |
| uint32_t tmc51x0::PWMCONF_Register::freewheel |
Bits 21..20: Stand still option when I_HOLD=0.
| uint32_t tmc51x0::PWMCONF_Register::pwm_autograd |
Bit 19: PWM automatic gradient adaptation.
| uint32_t tmc51x0::PWMCONF_Register::pwm_autoscale |
Bit 18: Enable PWM automatic amplitude scaling.
| uint32_t tmc51x0::PWMCONF_Register::pwm_freq |
Bits 17..16: PWM frequency selection.
| uint32_t tmc51x0::PWMCONF_Register::pwm_grad |
Bits 15..8: User defined PWM amplitude (gradient)
| uint32_t tmc51x0::PWMCONF_Register::pwm_lim |
Bits 31..28: PWM automatic scale amplitude limit when switching on
| uint32_t tmc51x0::PWMCONF_Register::pwm_ofs |
Bits 7..0: User defined PWM amplitude (offset)
| uint32_t tmc51x0::PWMCONF_Register::pwm_reg |
Bits 27..24: Regulation loop gradient.
| uint32_t tmc51x0::PWMCONF_Register::reserved1 |
Bits 23..22: Reserved, set to 0.
| uint32_t tmc51x0::PWMCONF_Register::value |