|
HF-TMC9660 Driver 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC9660
|
Subsystem controlling the brake chopper and mechanical brake features. More...
#include <tmc9660.hpp>
Classes | |
| struct | BrakeConfig |
| Configuration structure for brake auto-configuration. More... | |
Public Member Functions | |
| bool | enableChopper (bool enable) noexcept |
| Enable or disable the brake chopper functionality. | |
| bool | setVoltageLimit (float voltage) noexcept |
| Set the overvoltage threshold for the brake chopper. | |
| bool | setHysteresis (float voltage) noexcept |
| Set the hysteresis for the brake chopper threshold. | |
| bool | release () noexcept |
| Trigger a release of the mechanical brake. | |
| bool | engage () noexcept |
| Engage (lock) the mechanical brake. | |
| bool | setReleasingDutyCycle (uint8_t percent) noexcept |
| Set the PWM duty cycle for releasing the brake. | |
| bool | setHoldingDutyCycle (uint8_t percent) noexcept |
| Set the PWM duty cycle for holding the brake released. | |
| bool | setReleasingDuration (uint16_t milliseconds) noexcept |
| Set the duration of the brake release initial phase. | |
| bool | invertOutput (bool invert) noexcept |
| Invert or normalize the brake output signal polarity. | |
| bool | configureAuto (const BrakeConfig &config) noexcept |
| Auto-configure brake parameters. | |
Private Member Functions | |
| Brake (TMC9660 &parent) noexcept | |
Private Attributes | |
| TMC9660 & | driver |
Friends | |
| class | TMC9660 |
Subsystem controlling the brake chopper and mechanical brake features.
|
inlineexplicitprivatenoexcept |
|
noexcept |
Auto-configure brake parameters.
Configures brake chopper and mechanical brake parameters based on high-level requirements.
| config | Brake configuration (see BrakeConfig) |
|
noexcept |
Enable or disable the brake chopper functionality.
| enable | True to enable the brake chopper, false to disable it. |
|
noexcept |
Engage (lock) the mechanical brake.
|
noexcept |
Invert or normalize the brake output signal polarity.
| invert | True to invert the brake output, false for normal. |
|
noexcept |
Trigger a release of the mechanical brake.
|
noexcept |
Set the PWM duty cycle for holding the brake released.
| percent | Duty cycle (0 to 99%). |
|
noexcept |
Set the hysteresis for the brake chopper threshold.
| voltage | Hysteresis in volts (0.0 to 5.0 V). |
|
noexcept |
Set the duration of the brake release initial phase.
| milliseconds | Duration in ms (0 to 65535). |
|
noexcept |
Set the PWM duty cycle for releasing the brake.
| percent | Duty cycle (0 to 99%). |
|
noexcept |
Set the overvoltage threshold for the brake chopper.
| voltage | Threshold voltage in volts (5.0 to 100.0 V). |
|
private |