Public Member Functions | Protected Attributes
icl_hardware::can::tCanDeviceDummy Class Reference

#include <tCanDeviceDummy.h>

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

List of all members.

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< tCanMessagem_received_messages
std::vector< tCanMessagem_sent_messages

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.

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.

Definition at line 81 of file tCanDeviceDummy.cpp.

Implements icl_hardware::can::tCanDevice.

Definition at line 76 of file tCanDeviceDummy.cpp.

Implements icl_hardware::can::tCanDevice.

Definition at line 58 of file tCanDeviceDummy.cpp.

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

Definition at line 58 of file tCanDeviceDummy.h.

Definition at line 56 of file tCanDeviceDummy.h.

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 Tue Aug 8 2017 03:07:52