#include <dummy.h>
|
bool | add (const std::string &k, const Frame &v, bool multi) |
|
bool | add (const Frame &k, const Frame &v, bool multi) |
|
bool | add (const std::string &k, const std::string &v, bool multi) |
|
bool | add (const Frame &k, const std::string &v, bool multi) |
|
virtual FrameListenerConstSharedPtr | createMsgListener (const FrameDelegate &delegate) |
|
virtual FrameListenerConstSharedPtr | createMsgListener (const Frame::Header &h, const FrameDelegate &delegate) |
|
virtual StateListenerConstSharedPtr | createStateListener (const StateDelegate &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) |
|
virtual | ~DriverInterface () |
|
virtual | ~CommInterface () |
|
virtual | ~StateInterface () |
|
Definition at line 11 of file dummy.h.
can::DummyInterface::DummyInterface |
( |
bool |
loopback | ) |
|
|
inline |
bool can::DummyInterface::add |
( |
const std::string & |
k, |
|
|
const Frame & |
v, |
|
|
bool |
multi |
|
) |
| |
|
inline |
bool can::DummyInterface::add |
( |
const Frame & |
k, |
|
|
const Frame & |
v, |
|
|
bool |
multi |
|
) |
| |
|
inline |
bool can::DummyInterface::add |
( |
const std::string & |
k, |
|
|
const std::string & |
v, |
|
|
bool |
multi |
|
) |
| |
|
inline |
bool can::DummyInterface::add |
( |
const Frame & |
k, |
|
|
const std::string & |
v, |
|
|
bool |
multi |
|
) |
| |
|
inline |
bool can::DummyInterface::add_noconv |
( |
const std::string & |
k, |
|
|
const Frame & |
v, |
|
|
bool |
multi |
|
) |
| |
|
inlineprivate |
acquire a listener for the specified delegate, that will get called for all messages
- Parameters
-
[in] | delegate | delegate to be bound by the listener |
- Returns
- managed pointer to listener
Implements can::CommInterface.
Definition at line 56 of file dummy.h.
acquire a listener for the specified delegate, that will get called for messages with demanded ID
- Parameters
-
[in] | header | CAN header to restrict listener on |
[in] | delegate | delegate to be bound listener |
- Returns
- managed pointer to listener
Implements can::CommInterface.
Definition at line 59 of file dummy.h.
acquire a listener for the specified delegate, that will get called for all state changes
- Parameters
-
[in] | delegate | delegate to be bound by the listener |
- Returns
- managed pointer to listener
Implements can::StateInterface.
Definition at line 90 of file dummy.h.
virtual bool can::DummyInterface::doesLoopBack |
( |
| ) |
const |
|
inlinevirtual |
virtual State can::DummyInterface::getState |
( |
| ) |
|
|
inlinevirtual |
bool can::DummyInterface::init |
( |
const std::string & |
device, |
|
|
bool |
loopback |
|
) |
| |
|
inlinevirtual |
initialize interface
- Parameters
-
[in] | device | driver-specific device name/path |
[in] | loopback | loop-back own messages |
- Returns
- true if device was initialized succesfully, false otherwise
Implements can::DriverInterface.
Definition at line 82 of file dummy.h.
virtual bool can::DummyInterface::recover |
( |
| ) |
|
|
inlinevirtual |
Recover interface after errors and emergency stops
- Returns
- true if device was recovered succesfully, false otherwise
Implements can::DriverInterface.
Definition at line 64 of file dummy.h.
virtual void can::DummyInterface::run |
( |
| ) |
|
|
inlinevirtual |
virtual bool can::DummyInterface::send |
( |
const Frame & |
msg | ) |
|
|
inlinevirtual |
enqueue frame for sending
- Parameters
-
[in] | msg | message to be enqueued |
- Returns
- true if frame was enqueued succesfully, otherwise false
Implements can::CommInterface.
Definition at line 43 of file dummy.h.
virtual void can::DummyInterface::shutdown |
( |
| ) |
|
|
inlinevirtual |
shutdown interface
- Returns
- true if shutdown was succesful, false otherwise
Implements can::DriverInterface.
Definition at line 68 of file dummy.h.
virtual bool can::DummyInterface::translateError |
( |
unsigned int |
internal_error, |
|
|
std::string & |
str |
|
) |
| |
|
inlinevirtual |
bool can::DummyInterface::loopback_ |
|
private |
Map can::DummyInterface::map_ |
|
private |
State can::DummyInterface::state_ |
|
private |
The documentation for this class was generated from the following file: