#include <tCanDeviceDummy.h>
|
| virtual void | addResponse (const tCanMessage &msg, const bool wait_for_send=true) |
| | Adds a response to a request that will be sent later. By default, the data won't bee seen by the receive function, until a message is sent to the device. This way, one can set a response, then send the request and afterwards the response can be read from the device with the receive function. This can be changed by setting the wait_for_send parameter to false. More...
|
| |
| virtual tCanMessage | getLastMessage () const |
| |
| virtual bool | IsInitialized () |
| |
| virtual int | Receive (tCanMessage &msg) |
| |
| virtual void | Reset () |
| |
| virtual int | Send (const tCanMessage &msg) |
| |
| | tCanDeviceDummy (const char *device_name, int flags, unsigned char acceptance_code, unsigned char acceptance_mask, unsigned int baud_rate, unsigned int send_fifo_size, unsigned int receive_fifo_size) |
| |
| virtual | ~tCanDeviceDummy () |
| |
Public Member Functions inherited from icl_hardware::can::tCanDevice |
| virtual | ~tCanDevice () |
| |
Definition at line 29 of file tCanDeviceDummy.h.
| icl_hardware::can::tCanDeviceDummy::tCanDeviceDummy |
( |
const char * |
device_name, |
|
|
int |
flags, |
|
|
unsigned char |
acceptance_code, |
|
|
unsigned char |
acceptance_mask, |
|
|
unsigned int |
baud_rate, |
|
|
unsigned int |
send_fifo_size, |
|
|
unsigned int |
receive_fifo_size |
|
) |
| |
| icl_hardware::can::tCanDeviceDummy::~tCanDeviceDummy |
( |
| ) |
|
|
virtual |
| void icl_hardware::can::tCanDeviceDummy::addResponse |
( |
const tCanMessage & |
msg, |
|
|
const bool |
wait_for_send = true |
|
) |
| |
|
virtual |
Adds a response to a request that will be sent later. By default, the data won't bee seen by the receive function, until a message is sent to the device. This way, one can set a response, then send the request and afterwards the response can be read from the device with the receive function. This can be changed by setting the wait_for_send parameter to false.
- Parameters
-
| msg | Response message |
| wait_for_send | If set to true (default), the response won't be received until a send call is made. |
Definition at line 94 of file tCanDeviceDummy.cpp.
| tCanMessage icl_hardware::can::tCanDeviceDummy::getLastMessage |
( |
| ) |
const |
|
virtual |
| bool icl_hardware::can::tCanDeviceDummy::IsInitialized |
( |
| ) |
|
|
virtual |
| int icl_hardware::can::tCanDeviceDummy::Receive |
( |
tCanMessage & |
msg | ) |
|
|
virtual |
| void icl_hardware::can::tCanDeviceDummy::Reset |
( |
| ) |
|
|
virtual |
| int icl_hardware::can::tCanDeviceDummy::Send |
( |
const tCanMessage & |
msg | ) |
|
|
virtual |
| bool icl_hardware::can::tCanDeviceDummy::m_receive_enabled |
|
protected |
| std::vector<tCanMessage> icl_hardware::can::tCanDeviceDummy::m_received_messages |
|
protected |
| std::vector<tCanMessage> icl_hardware::can::tCanDeviceDummy::m_sent_messages |
|
protected |
The documentation for this class was generated from the following files: