|
HF-TMC9660 Driver 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC9660
|
Subsystem for entering low-power hibernation mode and configuring wake. More...
#include <tmc9660.hpp>
Classes | |
| struct | PowerConfig |
| Configuration structure for power management auto-configuration. More... | |
Public Member Functions | |
| bool | enableWakePin (bool enable) noexcept |
| Enable or disable the external wake-up pin. | |
| bool | enterPowerDown (tmc9660::tmcl::PowerDownTimeout period) noexcept |
| Put the chip into power-down mode for a set duration. | |
| bool | configureAuto (const PowerConfig &config) noexcept |
| Auto-configure power management parameters. | |
Private Member Functions | |
| Power (TMC9660 &parent) noexcept | |
Private Attributes | |
| TMC9660 & | driver |
Friends | |
| class | TMC9660 |
Subsystem for entering low-power hibernation mode and configuring wake.
The TMC9660 supports timed power-down and wake-on-pin. These features reduce power when idle.
|
inlineexplicitprivatenoexcept |
|
noexcept |
Auto-configure power management parameters.
Configures wake-up pin and power-down timeout based on high-level requirements.
| config | Power configuration (see PowerConfig) |
|
noexcept |
Enable or disable the external wake-up pin.
| enable | true = enable pin |
ENABLE_WAKE_PIN
|
noexcept |
Put the chip into power-down mode for a set duration.
| period | Enum selecting one of 6 durations (e.g. PERIOD_1 = 250 ms) |
GO_TO_TIMEOUT_POWER_DOWN_STATE
|
private |