author | lbessard |
Thu, 28 Aug 2008 15:08:19 +0200 | |
changeset 515 | 62b6520332e9 |
parent 480 | d0d76932ad74 |
child 528 | 0a30e161d63c |
permissions | -rw-r--r-- |
145
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
1 |
#ifndef UNIX_H_ |
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
2 |
#define UNIX_H_ |
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
3 |
|
251 | 4 |
#ifdef __cplusplus |
5 |
extern "C" { |
|
6 |
#endif |
|
7 |
||
145
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
8 |
#include "timerscfg.h" |
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
9 |
#include "can_driver.h" |
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
10 |
#include "data.h" |
167 | 11 |
#include "timers_driver.h" |
329 | 12 |
|
391
7802a7d5584f
Accepted Vladimir Chren linux kernelspace port patch.
etisserant
parents:
384
diff
changeset
|
13 |
#ifndef __KERNEL__ |
145
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
14 |
#include <dlfcn.h> |
391
7802a7d5584f
Accepted Vladimir Chren linux kernelspace port patch.
etisserant
parents:
384
diff
changeset
|
15 |
#endif |
7802a7d5584f
Accepted Vladimir Chren linux kernelspace port patch.
etisserant
parents:
384
diff
changeset
|
16 |
|
145
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
17 |
typedef void* LIB_HANDLE; |
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
18 |
|
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
19 |
UNS8 UnLoadCanDriver(LIB_HANDLE handle); |
480 | 20 |
LIB_HANDLE LoadCanDriver(const char* driver_name); |
145
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
21 |
UNS8 canSend(CAN_PORT port, Message *m); |
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
22 |
CAN_PORT canOpen(s_BOARD *board, CO_Data * d); |
149 | 23 |
int canClose(CO_Data * d); |
384 | 24 |
UNS8 canChangeBaudRate(CAN_PORT port, char* baud); |
145
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
25 |
|
251 | 26 |
#ifdef __cplusplus |
27 |
}; |
|
28 |
#endif |
|
29 |
||
145
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
30 |
#endif /*UNIX_H_*/ |