00001
00002
00003
00004 #include "objdict.h"
00005
00006
00007
00008
00009 UNS16 acceptanceFilter1 = 0x0;
00010 UNS16 acceptanceFilter2 = 0x0;
00011 UNS16 acceptanceFilter3 = 0x0;
00012 UNS16 acceptanceFilter4 = 0x0;
00013 UNS16 mask1 = 0x0;
00014 UNS16 mask2 = 0x0;
00015 UNS16 mask3 = 0x0;
00016 UNS16 mask4 = 0x0;
00017 UNS8 applyDownloadedFilters = 0x0;
00018
00019
00020
00021
00022
00023 UNS32 gene_SYNC_valueRangeTest (UNS8 typeValue, void * value)
00024 {
00025 switch (typeValue) {
00026 }
00027 return 0;
00028 }
00029
00030
00031
00032
00033
00034 UNS8 gene_SYNC_bDeviceNodeId = 0x03;
00035
00036
00037
00038
00039 const UNS8 gene_SYNC_iam_a_slave = 1;
00040
00041 TIMER_HANDLE gene_SYNC_heartBeatTimers[1];
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052 UNS32 gene_SYNC_obj1000 = 0x0;
00053 subindex gene_SYNC_Index1000[] =
00054 {
00055 { RO, uint32, sizeof (UNS32), (void*)&gene_SYNC_obj1000 }
00056 };
00057
00058
00059 UNS8 gene_SYNC_obj1001 = 0x0;
00060 subindex gene_SYNC_Index1001[] =
00061 {
00062 { RO, uint8, sizeof (UNS8), (void*)&gene_SYNC_obj1001 }
00063 };
00064
00065
00066 UNS32 gene_SYNC_obj1005 = 0x40000080;
00067 ODCallback_t gene_SYNC_Index1005_callbacks[] =
00068 {
00069 NULL,
00070 };
00071 subindex gene_SYNC_Index1005[] =
00072 {
00073 { RW, uint32, sizeof (UNS32), (void*)&gene_SYNC_obj1005 }
00074 };
00075
00076
00077 UNS32 gene_SYNC_obj1006 = 0x2710;
00078 ODCallback_t gene_SYNC_Index1006_callbacks[] =
00079 {
00080 NULL,
00081 };
00082 subindex gene_SYNC_Index1006[] =
00083 {
00084 { RW, uint32, sizeof (UNS32), (void*)&gene_SYNC_obj1006 }
00085 };
00086
00087
00088 UNS8 gene_SYNC_obj1008[10] = "GENE_SYNC";
00089 subindex gene_SYNC_Index1008[] =
00090 {
00091 { RO, visible_string, sizeof (gene_SYNC_obj1008), (void*)&gene_SYNC_obj1008 }
00092 };
00093
00094
00095 UNS8 gene_SYNC_highestSubIndex_obj1016 = 0;
00096 UNS32 gene_SYNC_obj1016[];
00097 subindex gene_SYNC_Index1016[];
00098
00099
00100 UNS16 gene_SYNC_obj1017 = 0x0;
00101
00102
00103 UNS8 gene_SYNC_highestSubIndex_obj1018 = 4;
00104 UNS32 gene_SYNC_obj1018_Vendor_ID = 0x0;
00105 UNS32 gene_SYNC_obj1018_Product_Code = 0x0;
00106 UNS32 gene_SYNC_obj1018_Revision_Number = 0x0;
00107 UNS32 gene_SYNC_obj1018_Serial_Number = 0x0;
00108 subindex gene_SYNC_Index1018[] =
00109 {
00110 { RO, uint8, sizeof (UNS8), (void*)&gene_SYNC_highestSubIndex_obj1018 },
00111 { RO, uint32, sizeof (UNS32), (void*)&gene_SYNC_obj1018_Vendor_ID },
00112 { RO, uint32, sizeof (UNS32), (void*)&gene_SYNC_obj1018_Product_Code },
00113 { RO, uint32, sizeof (UNS32), (void*)&gene_SYNC_obj1018_Revision_Number },
00114 { RO, uint32, sizeof (UNS32), (void*)&gene_SYNC_obj1018_Serial_Number }
00115 };
00116
00117
00118 UNS8 gene_SYNC_highestSubIndex_obj1200 = 2;
00119 UNS32 gene_SYNC_obj1200_COB_ID_Client_to_Server_Receive_SDO = 0x0;
00120 UNS32 gene_SYNC_obj1200_COB_ID_Server_to_Client_Transmit_SDO = 0x0;
00121 subindex gene_SYNC_Index1200[] =
00122 {
00123 { RO, uint8, sizeof (UNS8), (void*)&gene_SYNC_highestSubIndex_obj1200 },
00124 { RO, uint32, sizeof (UNS32), (void*)&gene_SYNC_obj1200_COB_ID_Client_to_Server_Receive_SDO },
00125 { RO, uint32, sizeof (UNS32), (void*)&gene_SYNC_obj1200_COB_ID_Server_to_Client_Transmit_SDO }
00126 };
00127
00128
00129 subindex gene_SYNC_Index2015[] =
00130 {
00131 { RW, uint16, sizeof (UNS16), (void*)&acceptanceFilter1 }
00132 };
00133
00134
00135 subindex gene_SYNC_Index2016[] =
00136 {
00137 { RW, uint16, sizeof (UNS16), (void*)&acceptanceFilter2 }
00138 };
00139
00140
00141 subindex gene_SYNC_Index2017[] =
00142 {
00143 { RW, uint16, sizeof (UNS16), (void*)&acceptanceFilter3 }
00144 };
00145
00146
00147 subindex gene_SYNC_Index2018[] =
00148 {
00149 { RW, uint16, sizeof (UNS16), (void*)&acceptanceFilter4 }
00150 };
00151
00152
00153 subindex gene_SYNC_Index2019[] =
00154 {
00155 { RW, uint16, sizeof (UNS16), (void*)&mask1 }
00156 };
00157
00158
00159 subindex gene_SYNC_Index2020[] =
00160 {
00161 { RW, uint16, sizeof (UNS16), (void*)&mask2 }
00162 };
00163
00164
00165 subindex gene_SYNC_Index2021[] =
00166 {
00167 { RW, uint16, sizeof (UNS16), (void*)&mask3 }
00168 };
00169
00170
00171 subindex gene_SYNC_Index2022[] =
00172 {
00173 { RW, uint16, sizeof (UNS16), (void*)&mask4 }
00174 };
00175
00176
00177 subindex gene_SYNC_Index2023[] =
00178 {
00179 { RW, uint8, sizeof (UNS8), (void*)&applyDownloadedFilters }
00180 };
00181
00182 const indextable gene_SYNC_objdict[] =
00183 {
00184 { (subindex*)gene_SYNC_Index1000,sizeof(gene_SYNC_Index1000)/sizeof(gene_SYNC_Index1000[0]), 0x1000},
00185 { (subindex*)gene_SYNC_Index1001,sizeof(gene_SYNC_Index1001)/sizeof(gene_SYNC_Index1001[0]), 0x1001},
00186 { (subindex*)gene_SYNC_Index1005,sizeof(gene_SYNC_Index1005)/sizeof(gene_SYNC_Index1005[0]), 0x1005},
00187 { (subindex*)gene_SYNC_Index1006,sizeof(gene_SYNC_Index1006)/sizeof(gene_SYNC_Index1006[0]), 0x1006},
00188 { (subindex*)gene_SYNC_Index1008,sizeof(gene_SYNC_Index1008)/sizeof(gene_SYNC_Index1008[0]), 0x1008},
00189 { (subindex*)gene_SYNC_Index1018,sizeof(gene_SYNC_Index1018)/sizeof(gene_SYNC_Index1018[0]), 0x1018},
00190 { (subindex*)gene_SYNC_Index1200,sizeof(gene_SYNC_Index1200)/sizeof(gene_SYNC_Index1200[0]), 0x1200},
00191 { (subindex*)gene_SYNC_Index2015,sizeof(gene_SYNC_Index2015)/sizeof(gene_SYNC_Index2015[0]), 0x2015},
00192 { (subindex*)gene_SYNC_Index2016,sizeof(gene_SYNC_Index2016)/sizeof(gene_SYNC_Index2016[0]), 0x2016},
00193 { (subindex*)gene_SYNC_Index2017,sizeof(gene_SYNC_Index2017)/sizeof(gene_SYNC_Index2017[0]), 0x2017},
00194 { (subindex*)gene_SYNC_Index2018,sizeof(gene_SYNC_Index2018)/sizeof(gene_SYNC_Index2018[0]), 0x2018},
00195 { (subindex*)gene_SYNC_Index2019,sizeof(gene_SYNC_Index2019)/sizeof(gene_SYNC_Index2019[0]), 0x2019},
00196 { (subindex*)gene_SYNC_Index2020,sizeof(gene_SYNC_Index2020)/sizeof(gene_SYNC_Index2020[0]), 0x2020},
00197 { (subindex*)gene_SYNC_Index2021,sizeof(gene_SYNC_Index2021)/sizeof(gene_SYNC_Index2021[0]), 0x2021},
00198 { (subindex*)gene_SYNC_Index2022,sizeof(gene_SYNC_Index2022)/sizeof(gene_SYNC_Index2022[0]), 0x2022},
00199 { (subindex*)gene_SYNC_Index2023,sizeof(gene_SYNC_Index2023)/sizeof(gene_SYNC_Index2023[0]), 0x2023},
00200 };
00201
00202 const indextable * gene_SYNC_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks)
00203 {
00204 int i;
00205 *callbacks = NULL;
00206 switch(wIndex){
00207 case 0x1000: i = 0;break;
00208 case 0x1001: i = 1;break;
00209 case 0x1005: i = 2;*callbacks = gene_SYNC_Index1005_callbacks; break;
00210 case 0x1006: i = 3;*callbacks = gene_SYNC_Index1006_callbacks; break;
00211 case 0x1008: i = 4;break;
00212 case 0x1018: i = 5;break;
00213 case 0x1200: i = 6;break;
00214 case 0x2015: i = 7;break;
00215 case 0x2016: i = 8;break;
00216 case 0x2017: i = 9;break;
00217 case 0x2018: i = 10;break;
00218 case 0x2019: i = 11;break;
00219 case 0x2020: i = 12;break;
00220 case 0x2021: i = 13;break;
00221 case 0x2022: i = 14;break;
00222 case 0x2023: i = 15;break;
00223 default:
00224 *errorCode = OD_NO_SUCH_OBJECT;
00225 return NULL;
00226 }
00227 *errorCode = OD_SUCCESSFUL;
00228 return &gene_SYNC_objdict[i];
00229 }
00230
00231
00232
00233
00234
00235 UNS8 gene_SYNC_count_sync[1] = {0,};
00236
00237 quick_index gene_SYNC_firstIndex = {
00238 6,
00239 0,
00240 0,
00241 0,
00242 0,
00243 0
00244 };
00245
00246 quick_index gene_SYNC_lastIndex = {
00247 6,
00248 0,
00249 0,
00250 0,
00251 0,
00252 0
00253 };
00254
00255 UNS16 gene_SYNC_ObjdictSize = sizeof(gene_SYNC_objdict)/sizeof(gene_SYNC_objdict[0]);
00256
00257 CO_Data gene_SYNC_Data = CANOPEN_NODE_DATA_INITIALIZER(gene_SYNC);
00258