Lely core libraries
2.2.5
|
A write operation suitable for use with a CAN channel. More...
#include <can.hpp>
Public Member Functions | |
template<class F > | |
CanChannelWrite (const can_msg &msg, ev_exec_t *exec, F &&f) | |
Constructs a write operation with a completion task. | |
template<class F > | |
CanChannelWrite (const can_msg &msg, F &&f) | |
Constructs a write operation with a completion task. | |
ev::Executor | get_executor () const noexcept |
Returns the executor to which the completion task is (to be) submitted. | |
Additional Inherited Members | |
![]() | |
const struct can_msg * | msg |
A pointer to the CAN frame to be written. More... | |
struct ev_task | task |
The task (to be) submitted upon completion (or cancellation) of the write operation. | |
int | errc |
The error number, obtained as if by get_errc(), if an error occurred or the operation was canceled. | |
A write operation suitable for use with a CAN channel.
This class stores a callable object with signature void(std::error_code ec)
, which is invoked upon completion (or cancellation) of the write operation.