|
HF-TMC9660 Driver 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC9660
|
Subsystem for configuring the communication watchdog (heartbeat). More...
#include <tmc9660.hpp>
Classes | |
| struct | HeartbeatConfig |
| Configuration structure for heartbeat auto-configuration. More... | |
Public Member Functions | |
| bool | configure (tmc9660::tmcl::HeartbeatMonitoringConfig mode, uint32_t timeout_ms) noexcept |
| Enable the heartbeat monitor and set timeout. | |
| bool | configureAuto (const HeartbeatConfig &config) noexcept |
| Auto-configure heartbeat parameters. | |
Private Member Functions | |
| Heartbeat (TMC9660 &parent) noexcept | |
Private Attributes | |
| TMC9660 & | driver |
Friends | |
| class | TMC9660 |
Subsystem for configuring the communication watchdog (heartbeat).
If enabled, the TMC9660 monitors the time since the last command. If no communication occurs before timeout expires, the chip faults or disables motor outputs.
Refer to Parameters #10 & #11 in Global Bank 0 (Table 43). See datasheet page 89 for details.
|
inlineexplicitprivatenoexcept |
|
noexcept |
Enable the heartbeat monitor and set timeout.
| mode | ENABLE or DISABLE the watchdog |
| timeout_ms | Timeout in milliseconds |
HEARTBEAT_MONITORING_CONFIGHEARTBEAT_MONITORING_TIMEOUT
|
noexcept |
Auto-configure heartbeat parameters.
Configures heartbeat monitoring based on high-level requirements.
| config | Heartbeat configuration (see HeartbeatConfig) |
|
private |