|
| | Gpio (Tmc9660Handler &parent, uint8_t gpioNumber) |
| | Construct a GPIO wrapper for a specific TMC9660 internal pin.
|
| |
| | ~Gpio () noexcept override=default |
| | Default destructor.
|
| |
|
| bool | Initialize () noexcept override |
| | Initialize the GPIO pin (configures as output by default on the TMC9660).
|
| |
| bool | Deinitialize () noexcept override |
| | Deinitialize (no-op; TMC9660 GPIO persists until device reset).
|
| |
| bool | IsPinAvailable () const noexcept override |
| | Check if this GPIO number is a valid TMC9660 pin (17 or 18).
|
| |
| hf_u8_t | GetMaxPins () const noexcept override |
| | Returns 2 (GPIO17 and GPIO18 are exposed).
|
| |
| const char * | GetDescription () const noexcept override |
| | Returns a description string like "TMC9660 GPIO17".
|
| |
|
|
| hf_gpio_err_t | SetDirectionImpl (hf_gpio_direction_t direction) noexcept override |
| | Set pin direction (INPUT or OUTPUT supported).
|
| |
| hf_gpio_err_t | SetOutputModeImpl (hf_gpio_output_mode_t mode) noexcept override |
| | Set output mode. Only PUSH_PULL is supported.
|
| |
| hf_gpio_err_t | SetPullModeImpl (hf_gpio_pull_mode_t mode) noexcept override |
| | Set pull mode. Only FLOATING is supported.
|
| |
| hf_gpio_err_t | SetPinLevelImpl (hf_gpio_level_t level) noexcept override |
| | Write HIGH or LOW to the TMC9660 GPIO pin via the driver.
|
| |
| hf_gpio_err_t | GetPinLevelImpl (hf_gpio_level_t &level) noexcept override |
| | Read the current level of the TMC9660 GPIO pin via the driver.
|
| |
| hf_gpio_pull_mode_t | GetPullModeImpl () const noexcept override |
| | Returns FLOATING (TMC9660 pull is set via bootloader config).
|
| |
| hf_gpio_err_t | GetDirectionImpl (hf_gpio_direction_t &direction) const noexcept override |
| | Returns the current configured direction (INPUT or OUTPUT).
|
| |
| hf_gpio_err_t | GetOutputModeImpl (hf_gpio_output_mode_t &mode) const noexcept override |
| | Returns PUSH_PULL.
|
| |
BaseGpio adapter for a single TMC9660 internal GPIO channel.
Wraps one of the TMC9660's internal GPIO pins (e.g., GPIO17, GPIO18) as a HardFOC BaseGpio instance. Supports digital read/write via the TMC9660 driver's gpio subsystem.
The TMC9660 GPIO pins are configured as push-pull outputs by default. Pull mode is limited to floating (the TMC9660 configures pull via bootloader config, not at runtime through TMCL).
- Note
- Only GPIO17 and GPIO18 are currently exposed. Additional pins can be added by expanding the gpioWrappers_ array.