Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
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