#include <tCanDeviceDummy.h>

Public Member Functions | |
| 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. | |
| 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 () |
Protected Attributes | |
| bool | m_receive_enabled |
| std::vector< tCanMessage > | m_received_messages |
| std::vector< tCanMessage > | m_sent_messages |
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 | ||
| ) |
Definition at line 32 of file tCanDeviceDummy.cpp.
| icl_hardware::can::tCanDeviceDummy::~tCanDeviceDummy | ( | ) | [virtual] |
Definition at line 45 of file tCanDeviceDummy.cpp.
| 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.
| 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] |
Definition at line 81 of file tCanDeviceDummy.cpp.
| bool icl_hardware::can::tCanDeviceDummy::IsInitialized | ( | ) | [virtual] |
Implements icl_hardware::can::tCanDevice.
Definition at line 76 of file tCanDeviceDummy.cpp.
| int icl_hardware::can::tCanDeviceDummy::Receive | ( | tCanMessage & | msg | ) | [virtual] |
Implements icl_hardware::can::tCanDevice.
Definition at line 58 of file tCanDeviceDummy.cpp.
| void icl_hardware::can::tCanDeviceDummy::Reset | ( | ) | [virtual] |
Implements icl_hardware::can::tCanDevice.
Definition at line 70 of file tCanDeviceDummy.cpp.
| int icl_hardware::can::tCanDeviceDummy::Send | ( | const tCanMessage & | msg | ) | [virtual] |
Implements icl_hardware::can::tCanDevice.
Definition at line 50 of file tCanDeviceDummy.cpp.
bool icl_hardware::can::tCanDeviceDummy::m_receive_enabled [protected] |
Definition at line 58 of file tCanDeviceDummy.h.
std::vector<tCanMessage> icl_hardware::can::tCanDeviceDummy::m_received_messages [protected] |
Definition at line 56 of file tCanDeviceDummy.h.
std::vector<tCanMessage> icl_hardware::can::tCanDeviceDummy::m_sent_messages [protected] |
Definition at line 55 of file tCanDeviceDummy.h.