canio_kvaser.h
00001 #ifndef _KVASER_CANLIB_ 00002 #define _KVASER_CANLIB_ 00003 00004 #include <canlib.h> 00005 #include "canio.h" 00006 00007 class CANIOKvaser : public DualCANIO 00008 { 00009 private: 00010 canHandle channels[2]; 00011 00012 public: 00013 CANIOKvaser(); 00014 virtual ~CANIOKvaser(); 00015 virtual int Init(long channel_freq); 00016 virtual int ReadPacket(CanPacket *pkt, int channel); 00017 virtual int WritePacket(CanPacket &pkt); 00018 virtual int Shutdown(); 00019 }; 00020 00021 #endif