|
HF-Core Platform 0.1.0-dev
Hardware-Agnostic Handler Layer & RTOS Utilities for HardFOC
|
Shared helper holding the four TMC9660 host-side control pin references. More...
#include <Tmc9660Handler.h>
Public Member Functions | |
| BaseGpio & | get (tmc9660::TMC9660CtrlPin pin) noexcept |
| Resolve a TMC9660CtrlPin enum to the corresponding BaseGpio reference. | |
| const BaseGpio & | get (tmc9660::TMC9660CtrlPin pin) const noexcept |
| Resolve a TMC9660CtrlPin enum (const). | |
Public Attributes | |
| BaseGpio & | rst |
| RST control pin GPIO (not owned). | |
| BaseGpio & | drv_en |
| DRV_EN control pin GPIO (not owned). | |
| BaseGpio & | faultn |
| FAULTN status pin GPIO (not owned). | |
| BaseGpio & | wake |
| WAKE control pin GPIO (not owned). | |
Shared helper holding the four TMC9660 host-side control pin references.
Both HalSpiTmc9660Comm and HalUartTmc9660Comm require the same four GPIO control pins (RST, DRV_EN, FAULTN, WAKE) and share identical pin-resolution logic. This struct consolidates the four GPIO references and pin lookup into a single definition, eliminating code duplication across communication adapters.
|
inlinenoexcept |
Resolve a TMC9660CtrlPin enum (const).
|
inlinenoexcept |
Resolve a TMC9660CtrlPin enum to the corresponding BaseGpio reference.
| BaseGpio& Tmc9660CtrlPins::drv_en |
DRV_EN control pin GPIO (not owned).
| BaseGpio& Tmc9660CtrlPins::faultn |
FAULTN status pin GPIO (not owned).
| BaseGpio& Tmc9660CtrlPins::rst |
RST control pin GPIO (not owned).
| BaseGpio& Tmc9660CtrlPins::wake |
WAKE control pin GPIO (not owned).