00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #include"..\interfaces\interfaces.h"
00030 #include"..\includes\defines.h"
00031 #include"..\includes\canapi.h"
00032 #include"..\includes\irig.h"
00033
00034 unsigned char*_errors[]=
00035 { "No Error",
00036 "Request is Pending",
00037 "Queue is Empty",
00038 "Queue is Full",
00039 "Transmission not Possible",
00040 "Twice Register",
00041 "Invalid Channel Index",
00042 "Invalid Access",
00043 "Port is Offline",
00044 "Channel is Already Online",
00045 "Invalid Port",
00046 "Hardware not Ready",
00047 "Command Timeout",
00048 "Hardware not Present",
00049 "Notify Already Active",
00050 "No Resources Available",
00051 "Unable to open Driver",
00052 "Feature Not Implemented",
00053 "Invalid Handle",
00054 "First Argument Void or Invalid",
00055 "Second Argument Void or Invalid",
00056 "Third Argument Void or Invalid",
00057 "Invalid Arguments passed",
00058 "Out of Bounds",
00059 "Unknown Error",
00060 0
00061 };
00062
00063 unsigned char*_errframe[]=
00064 { "Error Frame",
00065 "Queue is full",
00066 "Remote Frame",
00067 "Wake up",
00068 "Buffer Overrun",
00069 "Line Error",
00070 "Voltage Error",
00071 "Complete",
00072 "Queued",
00073 0
00074 };
00075
00076 int _bit_width[]=
00077 { 1,
00078 11,
00079 1,
00080 1,
00081 18,
00082 1,
00083 2,
00084 4,
00085 64,
00086 16,
00087 2,
00088 7
00089 };
00090
00091 int _offsets[B__MAX];
00092
00093 struct _if_channel channel[CAN_MAXCHANNELS];
00094 struct _if_board cancard[MAX_CARDS];
00095 int if_channel_count=0,
00096 if_board_count=0;
00097
00098 struct _reftsLink*refts;
00099
00100