|
HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
|
Power stage + protection subsystem (DRV_CONF, SHORT_CONF) More...
#include <tmc51x0.hpp>
Public Member Functions | |
| PowerStage (TMC51x0 &driver) noexcept | |
| Result< void > | ConfigurePowerStage (const PowerStageParameters &config) noexcept |
| Configure power stage parameters (DRV_CONF register) | |
| Result< void > | ConfigureShortProtection (const PowerStageParameters &config) noexcept |
| Configure short protection levels from PowerStageParameters. | |
| Result< void > | SetShortProtectionLevels (uint8_t s2vs_level, uint8_t s2g_level, uint8_t shortfilter, uint8_t shortdelay) noexcept |
| Set short protection levels. | |
Private Attributes | |
| TMC51x0 & | driver_ |
Power stage + protection subsystem (DRV_CONF, SHORT_CONF)
Groups board/power-electronics configuration and short protection, keeping motorControl focused on motor drive behavior.
|
inlineexplicitnoexcept |
|
noexcept |
Configure power stage parameters (DRV_CONF register)
| config | Power stage parameters structure |
|
noexcept |
Configure short protection levels from PowerStageParameters.
| config | Power stage parameters structure (contains short protection fields) |
|
noexcept |
Set short protection levels.
| s2vs_level | Short to VS detector sensitivity (4-15) |
| s2g_level | Short to GND detector sensitivity (2-15) |
| shortfilter | Spike filtering bandwidth (0-3) |
| shortdelay | Short detection delay (0-1) |
|
private |