tCanDeviceT.h
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 // This file is part of FZIs ic_workspace.
5 //
6 // This program is free software licensed under the LGPL
7 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
8 // You can find a copy of this license in LICENSE folder in the top
9 // directory of the source code.
10 //
11 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
12 //
13 // -- END LICENSE BLOCK ------------------------------------------------
14 
15 //----------------------------------------------------------------------
28 //----------------------------------------------------------------------
29 #ifndef ICL_HARDWARE_CAN_T_CAN_DEVICE_T_H_INCLUDED
30 #define ICL_HARDWARE_CAN_T_CAN_DEVICE_T_H_INCLUDED
31 
32 #include <stdlib.h>
33 
35 
36 namespace icl_hardware {
37 namespace can {
38 
39 struct tCanMessage;
40 
41 template <typename TCanDescriptor>
42 class tCanDeviceT : public tCanDevice
43 {
44 public:
45  tCanDeviceT(const char *device_name, int flags,
46  unsigned char acceptance_code, unsigned char acceptance_mask, unsigned int baud_rate,
47  unsigned send_fifo_size, unsigned receive_fifo_size);
48 
49  virtual ~tCanDeviceT();
50  virtual int Send(const tCanMessage &msg);
51  virtual int Receive(tCanMessage &msg);
52  virtual void Reset();
53 
54  virtual bool IsInitialized();
55 
56 private:
57  TCanDescriptor m_can_device;
59 };
60 
61 }
62 }
63 
65 
66 #endif
Implements a struct representing a can message.
Definition: tCanMessage.h:43
tCanDeviceT(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)
Definition: tCanDeviceT.hpp:46
virtual int Send(const tCanMessage &msg)
virtual int Receive(tCanMessage &msg)


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