|
HF-Core Platform 0.1.0-dev
Hardware-Agnostic Handler Layer & RTOS Utilities for HardFOC
|
Unified handler for TMC5160/TMC5130 stepper motor driver with SPI/UART integration. More...
#include <cstdint>#include <memory>#include <type_traits>#include <cstdarg>#include <variant>#include "core/hf-core-drivers/external/hf-tmc5160-driver/inc/tmc51x0.hpp"#include "core/hf-core-drivers/external/hf-tmc5160-driver/inc/tmc51x0_comm_interface.hpp"#include "core/hf-core-drivers/external/hf-tmc5160-driver/inc/tmc51x0_types.hpp"#include "core/hf-core-drivers/external/hf-tmc5160-driver/inc/tmc51x0_result.hpp"#include "base/BaseSpi.h"#include "base/BaseUart.h"#include "base/BaseGpio.h"#include "RtosMutex.h"Go to the source code of this file.
Classes | |
| struct | Tmc5160CtrlPins |
| Shared helper holding TMC5160 host-side control pin references. More... | |
| class | HalSpiTmc5160Comm |
| Concrete SPI communication adapter for TMC5160 using BaseSpi and BaseGpio. More... | |
| class | HalUartTmc5160Comm |
| Concrete UART communication adapter for TMC5160 using BaseUart and BaseGpio. More... | |
| class | Tmc5160Handler |
| Unified handler for TMC5160/TMC5130 stepper motor driver. More... | |
Unified handler for TMC5160/TMC5130 stepper motor driver with SPI/UART integration.
This file provides the complete HAL-level integration for a single TMC5160 stepper motor driver device. It bridges the HardFOC base interfaces (BaseSpi, BaseUart, BaseGpio) with the templated tmc51x0::TMC51x0<CommType> driver from the hf-tmc5160-driver library.
The file contains three layers:
| Subsystem | Access via driver. | Description |
|---|---|---|
| rampControl | driver.rampControl | Motion profile control |
| motorControl | driver.motorControl | Current/chopper/stealthChop |
| thresholds | driver.thresholds | Velocity threshold config |
| switches | driver.switches | Reference switch control |
| encoder | driver.encoder | ABN encoder interface |
| stallGuard | driver.stallGuard | StallGuard2 detection |
| tuning | driver.tuning | Auto-tuning routines |
| homing | driver.homing | Sensorless/switch/encoder homing |
| status | driver.status | Status/diagnostics |
| powerStage | driver.powerStage | Short/overcurrent protection |
| communication | driver.communication | Register read/write |
| io | driver.io | Pin/mode helpers |
| events | driver.events | XCompare / ramp events |
| printer | driver.printer | Debug printing |
| uartConfig | driver.uartConfig | UART node addressing |