virtual void OnCanState(CanState new_state, CanState old_state) noexcept
The function invoked when a CAN bus state change is detected.
IoContext(aio::TimerBase &timer, aio::CanBusBase &bus, BasicLockable *mutex=nullptr)
Creates a new I/O context.
virtual void OnCanError(CanError error) noexcept
The function invoked when an error is detected on the CAN bus.
void SetTime()
Update the CAN network time.
CANNet * net() const noexcept
Returns a pointer to the internal CAN network interface from <lely/can/net.hpp>.
void Post(F &&f)
Schedules the specified Callable object for execution.
aio::ExecutorBase GetExecutor() const noexcept
Returns the executor used to process I/O events on the CAN bus.