tCanDeviceT.h
Go to the documentation of this file.
00001 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
00002 
00003 // -- BEGIN LICENSE BLOCK ----------------------------------------------
00004 // This file is part of FZIs ic_workspace.
00005 //
00006 // This program is free software licensed under the LGPL
00007 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
00008 // You can find a copy of this license in LICENSE folder in the top
00009 // directory of the source code.
00010 //
00011 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
00012 //
00013 // -- END LICENSE BLOCK ------------------------------------------------
00014 
00015 //----------------------------------------------------------------------
00028 //----------------------------------------------------------------------
00029 #ifndef ICL_HARDWARE_CAN_T_CAN_DEVICE_T_H_INCLUDED
00030 #define ICL_HARDWARE_CAN_T_CAN_DEVICE_T_H_INCLUDED
00031 
00032 #include <stdlib.h>
00033 
00034 #include "icl_hardware_can/tCanDevice.h"
00035 
00036 namespace icl_hardware {
00037 namespace can {
00038 
00039 struct tCanMessage;
00040 
00041 template <typename TCanDescriptor>
00042 class tCanDeviceT : public tCanDevice
00043 {
00044 public:
00045   tCanDeviceT(const char *device_name, int flags,
00046               unsigned char acceptance_code, unsigned char acceptance_mask, unsigned int baud_rate,
00047               unsigned send_fifo_size, unsigned receive_fifo_size);
00048 
00049   virtual ~tCanDeviceT();
00050   virtual int Send(const tCanMessage &msg);
00051   virtual int Receive(tCanMessage &msg);
00052   virtual void Reset();
00053 
00054   virtual bool IsInitialized();
00055 
00056 private:
00057   TCanDescriptor m_can_device;
00058   int m_can_user;
00059 };
00060 
00061 }
00062 }
00063 
00064 #include "icl_hardware_can/tCanDeviceT.hpp"
00065 
00066 #endif


fzi_icl_can
Author(s):
autogenerated on Tue Aug 8 2017 03:07:51