Public Member Functions | Protected Attributes | List of all members
icl_hardware::can::tCanDeviceDummy Class Reference

#include <tCanDeviceDummy.h>

Inheritance diagram for icl_hardware::can::tCanDeviceDummy:
Inheritance graph
[legend]

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. 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 ()
 

Protected Attributes

bool m_receive_enabled
 
std::vector< tCanMessagem_received_messages
 
std::vector< tCanMessagem_sent_messages
 

Additional Inherited Members

- Static Public Member Functions inherited from icl_hardware::can::tCanDevice
static void CheckLXRTInterface ()
 
static tCanDeviceCreate (const char *device_name, int flags, unsigned char acceptance_code, unsigned char acceptance_mask, unsigned int baud_rate, unsigned send_fifo_size, unsigned receive_fifo_size)
 
- Static Protected Attributes inherited from icl_hardware::can::tCanDevice
static bool m_canlxrt_available = false
 

Detailed Description

Definition at line 29 of file tCanDeviceDummy.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

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
msgResponse message
wait_for_sendIf 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.

Member Data Documentation

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.


The documentation for this class was generated from the following files:


fzi_icl_can
Author(s):
autogenerated on Mon Jun 10 2019 13:17:02