tCanDeviceDummy.h
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 // -- BEGIN LICENSE BLOCK ----------------------------------------------
3 // This file is part of FZIs ic_workspace.
4 //
5 // This program is free software licensed under the LGPL
6 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
7 // You can find a copy of this license in LICENSE folder in the top
8 // directory of the source code.
9 //
10 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
11 //
12 // -- END LICENSE BLOCK ------------------------------------------------
13 //----------------------------------------------------------------------
20 //----------------------------------------------------------------------
21 
22 #ifndef TCANDEVICEDUMMY_H
23 #define TCANDEVICEDUMMY_H
24 
26 namespace icl_hardware {
27 namespace can {
28 
30 {
31 public:
32  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);
33 
34  virtual ~tCanDeviceDummy();
35  virtual int Send(const tCanMessage &msg);
36  virtual int Receive(tCanMessage &msg);
37  virtual void Reset();
38  virtual bool IsInitialized();
39 
40  virtual tCanMessage getLastMessage() const;
41 
52  virtual void addResponse(const tCanMessage& msg, const bool wait_for_send = true);
53 
54 protected:
55  std::vector<tCanMessage> m_sent_messages;
56  std::vector<tCanMessage> m_received_messages;
57 
59 };
60 
61 }} // End of NS
62 
63 #endif // TCANDEVICEDUMMY_H
Implements a struct representing a can message.
Definition: tCanMessage.h:43
std::vector< tCanMessage > m_sent_messages
ICL_HARDWARE_CAN_IMPORT_EXPORT ICL_HARDWARE_CAN_IMPORT_EXPORT
Definition: Logging.h:36
std::vector< tCanMessage > m_received_messages


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