|
HardFOC Vortex V1 HAL
Unified HAL API for the HardFOC Vortex motor-control platform (ESP32-C6, TMC9660)
|
ESP32-C6-only accessors of the Vortex board binding, for platform code above the HAL. More...
Go to the source code of this file.
Namespaces | |
| namespace | vortex |
| namespace | vortex::bsp |
| namespace | vortex::bsp::esp32c6 |
Functions | |
| EspCan * | vortex::bsp::esp32c6::CanController () noexcept |
| The TWAI controller CommChannelsManager opened, as its concrete EspCan. | |
ESP32-C6-only accessors of the Vortex board binding, for platform code above the HAL.
The managers are MCU-free and hand out only Base* objects. Some platform code needs the concrete ESP32 object behind one of them: the CANopen device builds hf-core's hf::can::EspTwaiPort on the TWAI controller, and that port takes an EspCan&. This header is where such code gets it. Include it only from ESP32-C6 platform code (the product's CANopen bring-up), never from a manager or from MCU-neutral application logic.
Ownership: the binding owns the object (static storage); it stays valid until CommChannelsManager is de-initialised (vortex::bsp::CanClose()). Thread safety: the call itself reads one pointer; the EspCan has its own locking.