#include <interface.h>
|
virtual bool | doesLoopBack () const =0 |
|
virtual State | getState ()=0 |
|
virtual bool | init (const std::string &device, bool loopback)=0 |
|
virtual bool | init (const std::string &device, bool loopback, SettingsConstSharedPtr settings) |
|
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 () |
|
virtual FrameListenerConstSharedPtr | createMsgListener (const Frame::Header &, const FrameFunc &delegate)=0 |
|
virtual FrameListenerConstSharedPtr | createMsgListener (const FrameFunc &delegate)=0 |
|
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 bool | send (const Frame &msg)=0 |
|
virtual | ~CommInterface () |
|
virtual StateListenerConstSharedPtr | createStateListener (const StateFunc &delegate)=0 |
|
template<typename Instance , typename Callable > |
StateListenerConstSharedPtr | createStateListenerM (Instance inst, Callable callable) |
|
virtual | ~StateInterface () |
|
Definition at line 178 of file interface.h.
◆ ~DriverInterface()
virtual can::DriverInterface::~DriverInterface |
( |
| ) |
|
|
inlinevirtual |
◆ doesLoopBack()
virtual bool can::DriverInterface::doesLoopBack |
( |
| ) |
const |
|
pure virtual |
◆ getState()
virtual State can::DriverInterface::getState |
( |
| ) |
|
|
pure virtual |
◆ init() [1/2]
virtual bool can::DriverInterface::init |
( |
const std::string & |
device, |
|
|
bool |
loopback |
|
) |
| |
|
pure virtual |
◆ init() [2/2]
virtual bool can::DriverInterface::init |
( |
const std::string & |
device, |
|
|
bool |
loopback, |
|
|
SettingsConstSharedPtr |
settings |
|
) |
| |
|
inlinevirtual |
initialize interface
- Parameters
-
[in] | device | driver-specific device name/path |
[in] | loopback | loop-back own messages |
[in] | settings | driver-specific settings |
- Returns
- true if device was initialized succesfully, false otherwise
Reimplemented in can::SocketCANInterface.
Definition at line 190 of file interface.h.
◆ recover()
virtual bool can::DriverInterface::recover |
( |
| ) |
|
|
pure virtual |
◆ run()
virtual void can::DriverInterface::run |
( |
| ) |
|
|
pure virtual |
◆ shutdown()
virtual void can::DriverInterface::shutdown |
( |
| ) |
|
|
pure virtual |
◆ translateError()
virtual bool can::DriverInterface::translateError |
( |
unsigned int |
internal_error, |
|
|
std::string & |
str |
|
) |
| |
|
pure virtual |
The documentation for this class was generated from the following file: