#include <interface.h>
Public Member Functions | |
virtual bool | doesLoopBack () const =0 |
virtual State | getState ()=0 |
virtual bool | init (const std::string &device, bool loopback)=0 |
virtual bool | recover ()=0 |
virtual void | run ()=0 |
virtual void | shutdown ()=0 |
virtual bool | translateError (unsigned int internal_error, std::string &str)=0 |
virtual | ~DriverInterface () |
Public Member Functions inherited from can::CommInterface | |
virtual FrameListenerConstSharedPtr | createMsgListener (const FrameDelegate &delegate)=0 |
virtual FrameListenerConstSharedPtr | createMsgListener (const Frame::Header &, const FrameDelegate &delegate)=0 |
virtual bool | send (const Frame &msg)=0 |
virtual | ~CommInterface () |
Public Member Functions inherited from can::StateInterface | |
virtual StateListenerConstSharedPtr | createStateListener (const StateDelegate &delegate)=0 |
virtual | ~StateInterface () |
Additional Inherited Members | |
Public Types inherited from can::CommInterface | |
typedef fastdelegate::FastDelegate1< const Frame & > | FrameDelegate |
typedef Listener< const FrameDelegate, const Frame & > | FrameListener |
typedef FrameListener::ListenerConstSharedPtr | FrameListenerConstSharedPtr |
Public Types inherited from can::StateInterface | |
typedef fastdelegate::FastDelegate1< const State & > | StateDelegate |
typedef Listener< const StateDelegate, const State & > | StateListener |
typedef StateListener::ListenerConstSharedPtr | StateListenerConstSharedPtr |
Definition at line 163 of file interface.h.
|
inlinevirtual |
Definition at line 199 of file interface.h.
|
pure virtual |
Implemented in can::DummyInterface, and can::SocketCANInterface.
|
pure virtual |
Implemented in can::AsioDriver< Socket >, can::AsioDriver< boost::asio::posix::stream_descriptor >, and can::DummyInterface.
|
pure virtual |
initialize interface
[in] | device | driver-specific device name/path |
[in] | loopback | loop-back own messages |
Implemented in can::DummyInterface, and can::SocketCANInterface.
|
pure virtual |
Recover interface after errors and emergency stops
Implemented in can::SocketCANInterface, and can::DummyInterface.
|
pure virtual |
|
pure virtual |
shutdown interface
Implemented in can::AsioDriver< Socket >, can::AsioDriver< boost::asio::posix::stream_descriptor >, and can::DummyInterface.
|
pure virtual |
Implemented in can::SocketCANInterface, and can::DummyInterface.