author | frdupin |
Wed, 13 Dec 2006 14:14:18 +0100 | |
changeset 53 | 73bc47a0db55 |
parent 42 | 17f0ea205942 |
permissions | -rw-r--r-- |
41
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
1 |
/* |
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
2 |
|
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
3 |
This file is not part of CanFestival. |
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
4 |
This is third party contributed file. |
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
5 |
|
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
6 |
It is provided as-this and without any warranty |
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
7 |
|
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
8 |
*/ |
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
9 |
|
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
10 |
//**************************************************************************** |
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
11 |
// Copyright (C) 2006 PEAK System-Technik GmbH |
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
12 |
// |
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
13 |
// linux@peak-system.com |
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
14 |
// www.peak-system.com |
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
15 |
// |
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
16 |
// This part of software is proprietary. It is allowed to |
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
17 |
// distribute it with CanFestival. |
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
18 |
// |
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
19 |
// No warranty at all is given. |
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
20 |
// |
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
21 |
// Maintainer(s): Edouard TISSERANT (edouard.tisserant@lolitech.fr) |
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
22 |
//**************************************************************************** |
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
23 |
|
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
24 |
/* |
42
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
25 |
Obfuscated by COBF (Version 1.06 2006-01-07 by BB) at Wed Aug 9 08:28:43 2006 |
41
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
26 |
*/ |
42
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
27 |
#define pcan_o getenv |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
28 |
#define pcan_6 strtol |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
29 |
#define pcan_v NULL |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
30 |
#define pcan_37 typedef |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
31 |
#define pcan_53 struct |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
32 |
#define pcan_11 char |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
33 |
#define pcan_41 TASK_HANDLE |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
34 |
#define pcan_5 receiveTask |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
35 |
#define pcan_26 CO_Data |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
36 |
#define pcan_s d |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
37 |
#define pcan_27 s_BOARD |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
38 |
#define pcan_l board |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
39 |
#define pcan_48 pthread_mutex_t |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
40 |
#define pcan_40 PTHREAD_MUTEX_INITIALIZER |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
41 |
#define pcan_14 void |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
42 |
#define pcan_m CAN_HANDLE |
41
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
43 |
#define pcan_d if |
42
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
44 |
#define pcan_55 CAN2_Init |
41
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
45 |
#define pcan_20 baudrate |
42
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
46 |
#define pcan_y CAN_INIT_TYPE_ST |
41
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
47 |
#define pcan_j else |
42
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
48 |
#define pcan_57 CAN_Init |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
49 |
#define pcan_u UNS8 |
41
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
50 |
#define pcan_17 canReceive |
42
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
51 |
#define pcan_8 Message |
41
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
52 |
#define pcan_f data |
42
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
53 |
#define pcan_24 TPCANMsg |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
54 |
#define pcan_13 DWORD |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
55 |
#define pcan_19 pthread_mutex_lock |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
56 |
#define pcan_31 CAN2_Read |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
57 |
#define pcan_51 CAN_Read |
41
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
58 |
#define pcan_w CAN_ERR_OK |
42
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
59 |
#define pcan_n MSGTYPE |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
60 |
#define pcan_28 MSGTYPE_STANDARD |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
61 |
#define pcan_15 MSGTYPE_RTR |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
62 |
#define pcan_23 CAN_ERR_BUSOFF |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
63 |
#define pcan_2 printf |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
64 |
#define pcan_x usleep |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
65 |
#define pcan_z pthread_mutex_unlock |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
66 |
#define pcan_q return |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
67 |
#define pcan_32 MSGTYPE_STATUS |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
68 |
#define pcan_12 DATA |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
69 |
#define pcan_50 CAN_ERR_OVERRUN |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
70 |
#define pcan_16 cob_id |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
71 |
#define pcan_25 w |
41
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
72 |
#define pcan_18 ID |
42
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
73 |
#define pcan_9 rtr |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
74 |
#define pcan_1 len |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
75 |
#define pcan_7 LEN |
41
e70439f50539
First working cygwin/pcan_light commit. can_peak_win32.c is obfuscated.
etisserant
parents:
diff
changeset
|
76 |
#define pcan_3 for |
42
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
77 |
#define pcan_47 canReceiveLoop |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
78 |
#define pcan_21 while |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
79 |
#define pcan_30 EnterMutex |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
80 |
#define pcan_54 canDispatch |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
81 |
#define pcan_35 LeaveMutex |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
82 |
#define pcan_33 CAN_ERR_QRCVEMPTY |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
83 |
#define pcan_42 CAN_ERR_BUSLIGHT |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
84 |
#define pcan_49 CAN_ERR_BUSHEAVY |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
85 |
#define pcan_43 canSend |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
86 |
#define pcan_p errno |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
87 |
#define pcan_36 do |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
88 |
#define pcan_56 CAN2_Write |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
89 |
#define pcan_46 CAN_Write |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
90 |
#define pcan_44 canOpen |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
91 |
#define pcan_22 int |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
92 |
#define pcan_45 break |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
93 |
#define pcan_4 fprintf |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
94 |
#define pcan_10 stderr |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
95 |
#define pcan_34 CreateReceiveTask |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
96 |
#define pcan_59 canClose |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
97 |
#define pcan_52 CAN2_Close |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
98 |
#define pcan_38 CAN_Close |
17f0ea205942
cygwin/pcan_light commit. Changes in configure for dual port handling.
etisserant
parents:
41
diff
changeset
|
99 |
#define pcan_29 WaitReceiveTaskEnd |