00001 #ifndef UNIX_H_ 00002 #define UNIX_H_ 00003 00004 #include "timerscfg.h" 00005 #include "can_driver.h" 00006 #include "data.h" 00007 #include "timers_driver.h" 00008 #ifdef WIN32 00009 #include <windows.h> 00010 typedef HINSTANCE LIB_HANDLE; 00011 #else 00012 #include <dlfcn.h> 00013 typedef void* LIB_HANDLE; 00014 #endif 00015 00016 UNS8 UnLoadCanDriver(LIB_HANDLE handle); 00017 LIB_HANDLE LoadCanDriver(char* driver_name); 00018 UNS8 canSend(CAN_PORT port, Message *m); 00019 CAN_PORT canOpen(s_BOARD *board, CO_Data * d); 00020 int canClose(CO_Data * d); 00021 00022 #endif /*UNIX_H_*/