]> rtime.felk.cvut.cz Git - CanFestival-3.git/blob - include/unix/canfestival.h
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
[CanFestival-3.git] / include / unix / canfestival.h
1 #ifndef UNIX_H_
2 #define UNIX_H_
3
4 #include "timerscfg.h"
5 #include "can_driver.h"
6 #include "data.h"
7 #ifdef WIN32
8 #include <windows.h>
9 typedef HINSTANCE LIB_HANDLE;
10 #else
11 #include <dlfcn.h>
12 typedef void* LIB_HANDLE;
13 #endif
14
15 UNS8 UnLoadCanDriver(LIB_HANDLE handle);
16 LIB_HANDLE LoadCanDriver(char* driver_name);
17 UNS8 canSend(CAN_PORT port, Message *m);
18 CAN_PORT canOpen(s_BOARD *board, CO_Data * d);
19 int canClose(CAN_PORT port);
20
21 #endif /*UNIX_H_*/