OpcUaCanOpen
CANopen OPC-UA server
CCanAccess.h
Go to the documentation of this file.
1 /*
2  * CCanAccess.h
3  *
4  * Created on: Apr 4, 2011
5  * Author: vfilimon
6  */
7 
8 #ifndef CCANACCESS_H_
9 #define CCANACCESS_H_
10 
11 class CCanCallback;
12 
13 class CCanAccess {
14 public:
15  CCanAccess() {};
16  virtual bool createBUS(const char * ,const char *, CCanCallback * ccc = 0) = 0 ;
17  virtual void setCallBack(CCanCallback *callback) { cb = callback; }
18  virtual bool sendRemoteRequest(short ) = 0;
19  virtual bool sendMessage(short , unsigned char, unsigned char *) = 0;
20  virtual bool getErrorMessage(long , char **) { return false; }
21  int getCanBusHandler() { return handler; }
22  void setCanBusHandler(int h) { h = handler; }
23  char *getBusName() { return busName; }
24  virtual ~CCanAccess() {};
25 protected:
26  char *busName;
27  int handler;
29 };
30 
31 #endif /* CCANACCESS_H_ */