|
HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
|
Functions | |
| bool | AreBoundsValid () noexcept |
| Check if bounds are still valid (within time window and motor energized). | |
| uint32_t | GetRemainingValiditySec () noexcept |
| Get remaining time until bounds expire (seconds). | |
| void | MarkBoundsFound () noexcept |
| Mark bounds as freshly found and start de-energize timer. | |
| void | CancelDeenergizeTimer () noexcept |
| Cancel de-energize timer (e.g., when test starts). | |
| void | InvalidateBounds () noexcept |
| Invalidate bounds (e.g., on config change or explicit request). | |
| void | SetValidityMinutes (uint32_t minutes) noexcept |
| Set the validity window in minutes. | |
| void | Init () noexcept |
| Initialize the bounds cache system (create timer). | |
Variables | |
| static constexpr uint32_t | DEFAULT_VALIDITY_MINUTES = 2 |
| Default time window (in minutes) during which bounds remain valid. | |
| static volatile int64_t | g_bounds_timestamp_us = 0 |
| Time (microseconds, from esp_timer_get_time) when bounds were last found. | |
| static volatile int64_t | g_bounds_validity_us = DEFAULT_VALIDITY_MINUTES * 60 * 1000000LL |
| Bounds validity window in microseconds. | |
| static volatile bool | g_motor_energized_for_bounds = false |
| True if motor is currently energized from bounds finding. | |
| static esp_timer_handle_t | g_deenergize_timer = nullptr |
| Timer handle for de-energize timeout. | |
|
inlinenoexcept |
Check if bounds are still valid (within time window and motor energized).
|
noexcept |
Cancel de-energize timer (e.g., when test starts).
|
inlinenoexcept |
Get remaining time until bounds expire (seconds).
|
noexcept |
Initialize the bounds cache system (create timer).
|
noexcept |
Invalidate bounds (e.g., on config change or explicit request).
|
noexcept |
Mark bounds as freshly found and start de-energize timer.
|
noexcept |
Set the validity window in minutes.
|
staticconstexpr |
Default time window (in minutes) during which bounds remain valid.
|
static |
Time (microseconds, from esp_timer_get_time) when bounds were last found.
|
static |
Bounds validity window in microseconds.
|
static |
Timer handle for de-energize timeout.
|
static |
True if motor is currently energized from bounds finding.