include/unix/canfestival.h
changeset 329 7717252e3ed9
parent 251 cab66ef3e68e
child 384 83793fc7ce48
equal deleted inserted replaced
328:474aa35daa95 329:7717252e3ed9
     7 
     7 
     8 #include "timerscfg.h"
     8 #include "timerscfg.h"
     9 #include "can_driver.h"
     9 #include "can_driver.h"
    10 #include "data.h"
    10 #include "data.h"
    11 #include "timers_driver.h"
    11 #include "timers_driver.h"
    12 #ifdef WIN32
    12 
    13 #include <windows.h>
       
    14 typedef HINSTANCE LIB_HANDLE;
       
    15 #else
       
    16 #include <dlfcn.h>
    13 #include <dlfcn.h>
    17 typedef void* LIB_HANDLE;
    14 typedef void* LIB_HANDLE;
    18 #endif
       
    19 
    15 
    20 UNS8 UnLoadCanDriver(LIB_HANDLE handle);
    16 UNS8 UnLoadCanDriver(LIB_HANDLE handle);
    21 LIB_HANDLE LoadCanDriver(char* driver_name);
    17 LIB_HANDLE LoadCanDriver(char* driver_name);
    22 UNS8 canSend(CAN_PORT port, Message *m);
    18 UNS8 canSend(CAN_PORT port, Message *m);
    23 CAN_PORT canOpen(s_BOARD *board, CO_Data * d);
    19 CAN_PORT canOpen(s_BOARD *board, CO_Data * d);