OpcUaCanOpen
CANopen OPC-UA server
CCanCallback.h
Go to the documentation of this file.
1 #ifndef _CCanCallback_h
2 #define _CCanCallback_h
3 
4 #ifdef WIN32
5 #include <time.h>
6 #include "Winsock2.h"
7 #else
8 #include <sys/time.h>
9 #endif
10 
11 typedef struct CanMsgStruct
12 {
13  long c_id;
14  unsigned char c_ff;
15  unsigned char c_dlc;
16  unsigned char c_data[8];
17  struct timeval c_time;
18 } canMessage;
19 
20 //typedef struct CanMsgStruct canMessage;
21 
23 {
24 public:
26 public:
27  virtual int FireOnChange(int bHandler, CanMsgStruct *msg)=0;
28  virtual int FireOnError(int bHandler, const char *errorMessage, time_t *timestamp)=0;
29 };
30 #endif