Class CommInterface
Defined in File interface.hpp
Inheritance Relationships
Derived Type
public can::DriverInterface
(Class DriverInterface)
Class Documentation
-
class CommInterface
Subclassed by can::DriverInterface
Public Types
Public Functions
-
virtual bool send(const Frame &msg) = 0
enqueue frame for sending
- Parameters:
msg – [in] message to be enqueued
- Returns:
true if frame was enqueued succesfully, otherwise false
-
virtual FrameListenerConstSharedPtr createMsgListener(const FrameFunc &delegate) = 0
acquire a listener for the specified delegate, that will get called for all messages
- Parameters:
delegate – [in] delegate to be bound by the listener
- Returns:
managed pointer to listener
-
virtual FrameListenerConstSharedPtr createMsgListener(const Frame::Header &header, const FrameFunc &delegate) = 0
acquire a listener for the specified delegate, that will get called for messages with demanded ID
- Parameters:
header – [in] CAN header to restrict listener on
delegate – [in] delegate to be bound listener
- Returns:
managed pointer to listener
-
inline virtual ~CommInterface()
-
virtual bool send(const Frame &msg) = 0