#include <dummy.h>

Public Member Functions | |
| bool | add (const Frame &k, const Frame &v, bool multi) |
| bool | add (const Frame &k, const std::string &v, bool multi) |
| bool | add (const std::string &k, const Frame &v, bool multi) |
| bool | add (const std::string &k, const std::string &v, bool multi) |
| virtual FrameListenerConstSharedPtr | createMsgListener (const Frame::Header &h, const FrameFunc &delegate) |
| virtual FrameListenerConstSharedPtr | createMsgListener (const FrameFunc &delegate) |
| virtual StateListenerConstSharedPtr | createStateListener (const StateFunc &delegate) |
| virtual bool | doesLoopBack () const |
| DummyInterface (bool loopback) | |
| virtual State | getState () |
| bool | init (const std::string &device, bool loopback) |
| virtual bool | recover () |
| virtual void | run () |
| virtual bool | send (const Frame &msg) |
| virtual void | shutdown () |
| virtual bool | translateError (unsigned int internal_error, std::string &str) |
Public Member Functions inherited from can::DriverInterface | |
| virtual bool | init (const std::string &device, bool loopback, SettingsConstSharedPtr settings) |
| virtual | ~DriverInterface () |
Public Member Functions inherited from can::CommInterface | |
| template<typename Instance , typename Callable > | |
| FrameListenerConstSharedPtr | createMsgListenerM (const Frame::Header &header, Instance inst, Callable callable) |
| template<typename Instance , typename Callable > | |
| FrameListenerConstSharedPtr | createMsgListenerM (Instance inst, Callable callable) |
| virtual | ~CommInterface () |
Public Member Functions inherited from can::StateInterface | |
| template<typename Instance , typename Callable > | |
| StateListenerConstSharedPtr | createStateListenerM (Instance inst, Callable callable) |
| virtual | ~StateInterface () |
Private Types | |
| using | FrameDispatcher = FilteredDispatcher< unsigned int, CommInterface::FrameListener > |
| using | Map = std::unordered_map< std::string, Frame > |
| using | StateDispatcher = SimpleDispatcher< StateInterface::StateListener > |
Private Member Functions | |
| bool | add_noconv (const std::string &k, const Frame &v, bool multi) |
Private Attributes | |
| FrameDispatcher | frame_dispatcher_ |
| bool | loopback_ |
| Map | map_ |
| State | state_ |
| StateDispatcher | state_dispatcher_ |
Additional Inherited Members | |
Public Types inherited from can::CommInterface | |
| using | FrameDelegate = DelegateHelper< FrameFunc > |
| using | FrameFunc = std::function< void(const Frame &)> |
| using | FrameListener = Listener< const FrameFunc, const Frame & > |
| using | FrameListenerConstSharedPtr = FrameListener::ListenerConstSharedPtr |
Public Types inherited from can::StateInterface | |
| using | StateDelegate = DelegateHelper< StateFunc > |
| using | StateFunc = std::function< void(const State &)> |
| using | StateListener = Listener< const StateFunc, const State & > |
| using | StateListenerConstSharedPtr = StateListener::ListenerConstSharedPtr |
|
private |
|
private |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inlinevirtual |
acquire a listener for the specified delegate, that will get called for messages with demanded ID
| [in] | header | CAN header to restrict listener on |
| [in] | delegate | delegate to be bound listener |
Implements can::CommInterface.
|
inlinevirtual |
acquire a listener for the specified delegate, that will get called for all messages
| [in] | delegate | delegate to be bound by the listener |
Implements can::CommInterface.
|
inlinevirtual |
acquire a listener for the specified delegate, that will get called for all state changes
| [in] | delegate | delegate to be bound by the listener |
Implements can::StateInterface.
|
inlinevirtual |
Implements can::DriverInterface.
|
inlinevirtual |
Implements can::DriverInterface.
|
inlinevirtual |
Implements can::DriverInterface.
|
inlinevirtual |
Recover interface after errors and emergency stops
Implements can::DriverInterface.
|
inlinevirtual |
Implements can::DriverInterface.
|
inlinevirtual |
enqueue frame for sending
| [in] | msg | message to be enqueued |
Implements can::CommInterface.
|
inlinevirtual |
shutdown interface
Implements can::DriverInterface.
|
inlinevirtual |
Implements can::DriverInterface.
|
private |
|
private |