00001
00002
00003
00004 #include "win32test.h"
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 UNS32 win32test_valueRangeTest (UNS8 typeValue, void * value)
00015 {
00016 switch (typeValue) {
00017 }
00018 return 0;
00019 }
00020
00021
00022
00023
00024
00025 UNS8 win32test_bDeviceNodeId = 0x01;
00026
00027
00028
00029
00030 const UNS8 win32test_iam_a_slave = 0;
00031
00032 TIMER_HANDLE win32test_heartBeatTimers[1];
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 UNS32 win32test_obj1000 = 0x12D;
00044 subindex win32test_Index1000[] =
00045 {
00046 { RO, uint32, sizeof (UNS32), (void*)&win32test_obj1000 }
00047 };
00048
00049
00050 UNS8 win32test_obj1001 = 0x0;
00051 subindex win32test_Index1001[] =
00052 {
00053 { RO, uint8, sizeof (UNS8), (void*)&win32test_obj1001 }
00054 };
00055
00056
00057 UNS32 win32test_obj1005 = 0x0;
00058 ODCallback_t win32test_Index1005_callbacks[] =
00059 {
00060 NULL,
00061 };
00062 subindex win32test_Index1005[] =
00063 {
00064 { RW, uint32, sizeof (UNS32), (void*)&win32test_obj1005 }
00065 };
00066
00067
00068 UNS32 win32test_obj1006 = 0x0;
00069
00070
00071 UNS8 win32test_highestSubIndex_obj1016 = 0;
00072 UNS32 win32test_obj1016[]={0};
00073
00074
00075 UNS16 win32test_obj1017 = 0x0;
00076
00077
00078 UNS8 win32test_highestSubIndex_obj1018 = 4;
00079 UNS32 win32test_obj1018_Vendor_ID = 0x0;
00080 UNS32 win32test_obj1018_Product_Code = 0x0;
00081 UNS32 win32test_obj1018_Revision_Number = 0x0;
00082 UNS32 win32test_obj1018_Serial_Number = 0x0;
00083 subindex win32test_Index1018[] =
00084 {
00085 { RO, uint8, sizeof (UNS8), (void*)&win32test_highestSubIndex_obj1018 },
00086 { RO, uint32, sizeof (UNS32), (void*)&win32test_obj1018_Vendor_ID },
00087 { RO, uint32, sizeof (UNS32), (void*)&win32test_obj1018_Product_Code },
00088 { RO, uint32, sizeof (UNS32), (void*)&win32test_obj1018_Revision_Number },
00089 { RO, uint32, sizeof (UNS32), (void*)&win32test_obj1018_Serial_Number }
00090 };
00091
00092
00093 UNS8 win32test_highestSubIndex_obj1280 = 3;
00094 UNS32 win32test_obj1280_COB_ID_Client_to_Server_Transmit_SDO = 0x0;
00095 UNS32 win32test_obj1280_COB_ID_Server_to_Client_Receive_SDO = 0x0;
00096 UNS32 win32test_obj1280_Node_ID_of_the_SDO_Server = 0x0;
00097 subindex win32test_Index1280[] =
00098 {
00099 { RO, uint8, sizeof (UNS8), (void*)&win32test_highestSubIndex_obj1280 },
00100 { RW, uint32, sizeof (UNS32), (void*)&win32test_obj1280_COB_ID_Client_to_Server_Transmit_SDO },
00101 { RW, uint32, sizeof (UNS32), (void*)&win32test_obj1280_COB_ID_Server_to_Client_Receive_SDO },
00102 { RW, uint32, sizeof (UNS32), (void*)&win32test_obj1280_Node_ID_of_the_SDO_Server }
00103 };
00104
00105 const indextable win32test_objdict[] =
00106 {
00107 { (subindex*)win32test_Index1000,sizeof(win32test_Index1000)/sizeof(win32test_Index1000[0]), 0x1000},
00108 { (subindex*)win32test_Index1001,sizeof(win32test_Index1001)/sizeof(win32test_Index1001[0]), 0x1001},
00109 { (subindex*)win32test_Index1005,sizeof(win32test_Index1005)/sizeof(win32test_Index1005[0]), 0x1005},
00110 { (subindex*)win32test_Index1018,sizeof(win32test_Index1018)/sizeof(win32test_Index1018[0]), 0x1018},
00111 { (subindex*)win32test_Index1280,sizeof(win32test_Index1280)/sizeof(win32test_Index1280[0]), 0x1280},
00112 };
00113
00114 const indextable * win32test_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks)
00115 {
00116 int i;
00117 *callbacks = NULL;
00118 switch(wIndex){
00119 case 0x1000: i = 0;break;
00120 case 0x1001: i = 1;break;
00121 case 0x1005: i = 2;*callbacks = win32test_Index1005_callbacks; break;
00122 case 0x1018: i = 3;break;
00123 case 0x1280: i = 4;break;
00124 default:
00125 *errorCode = OD_NO_SUCH_OBJECT;
00126 return NULL;
00127 }
00128 *errorCode = OD_SUCCESSFUL;
00129 return &win32test_objdict[i];
00130 }
00131
00132
00133
00134
00135
00136 UNS8 win32test_count_sync[1] = {0,};
00137
00138 quick_index win32test_firstIndex = {
00139 0,
00140 4,
00141 0,
00142 0,
00143 0,
00144 0
00145 };
00146
00147 quick_index win32test_lastIndex = {
00148 0,
00149 4,
00150 0,
00151 0,
00152 0,
00153 0
00154 };
00155
00156 UNS16 win32test_ObjdictSize = sizeof(win32test_objdict)/sizeof(win32test_objdict[0]);
00157
00158 CO_Data win32test_Data = CANOPEN_NODE_DATA_INITIALIZER(win32test);
00159