|
HardFOC Core
API reference
|
ICanPort over the ESP32 TWAI controller (EspCan, BaseCan v2). More...
Go to the source code of this file.
Classes | |
| class | hf::can::EspTwaiPort |
Namespaces | |
| namespace | hf |
| namespace | hf::can |
ICanPort over the ESP32 TWAI controller (EspCan, BaseCan v2).
Send is EspCan::TrySendMessage: the frame takes a free TX slot or the call returns QueueFull at once (no wait, no delay).EspCan::SetReceiveCallbackEx: the TWAI RX ISR converts the message to a CanFrame and calls the sink (hf_co_driver_rx_push(): a lock-free ring copy). Nothing else may register a receive callback on the same EspCan.Status is EspCan::GetBusStatus (state, TEC/REC, overruns, bus-off count); Recover is EspCan::RequestBusRecovery.SPDX-License-Identifier: GPL-3.0-or-later