Lely core libraries 2.3.4
lely::io::CanChannelWrite Class Reference

A write operation suitable for use with a CAN channel. More...

#include <can.hpp>

Inheritance diagram for lely::io::CanChannelWrite:
Collaboration diagram for lely::io::CanChannelWrite:

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

- Data Fields inherited from io_can_chan_write
const struct can_msgmsg
 A pointer to the CAN frame to be written.
 
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.
 

Detailed Description

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.

Definition at line 242 of file can.hpp.


The documentation for this class was generated from the following file: