1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254
| #include "user_slave_objdict.h"
UNS8 ObjDict_highestSubIndex_obj1200 = 3;
UNS32 ObjDict_obj1200_COB_ID_Client_to_Server_Transmit_SDO = 0x600 + 1;
UNS32 ObjDict_obj1200_COB_ID_Server_to_Client_Receive_SDO = 0x580 + 1;
UNS8 ObjDict_obj1200_Node_ID_of_the_SDO_Server = 0x1; subindex ObjDict_Index1200[] = { {RO, uint8, sizeof(UNS8), (void *)&ObjDict_highestSubIndex_obj1200}, {RW, uint32, sizeof(UNS32), (void *)&ObjDict_obj1200_COB_ID_Client_to_Server_Transmit_SDO}, {RW, uint32, sizeof(UNS32), (void *)&ObjDict_obj1200_COB_ID_Server_to_Client_Receive_SDO}, {RW, uint8, sizeof(UNS8), (void *)&ObjDict_obj1200_Node_ID_of_the_SDO_Server} };
UNS8 ObjDict_highestSubIndex_obj1800 = 5;
UNS32 ObjDict_obj1800_COB_ID_used_by_PDO = 0x181;
UNS8 ObjDict_obj1800_Transmission_Type = 0xFE;
UNS16 ObjDict_obj1800_Inhibit_Time = 0x100;
UNS8 ObjDict_obj1800_Compatibility_Entry = 0x0;
UNS16 ObjDict_obj1800_Event_Timer = 0x0; subindex ObjDict_Index1800[] = { {RO, uint8, sizeof(UNS8), (void *)&ObjDict_highestSubIndex_obj1800}, {RW, uint32, sizeof(UNS32), (void *)&ObjDict_obj1800_COB_ID_used_by_PDO}, {RW, uint8, sizeof(UNS8), (void *)&ObjDict_obj1800_Transmission_Type}, {RW, uint16, sizeof(UNS16), (void *)&ObjDict_obj1800_Inhibit_Time}, {RW, uint8, sizeof(UNS8), (void *)&ObjDict_obj1800_Compatibility_Entry}, {RW, uint16, sizeof(UNS16), (void *)&ObjDict_obj1800_Event_Timer} }; ODCallback_t ObjDict_Index1800_callbacks[] = { NULL, NULL, NULL, NULL, NULL, NULL, };
UNS8 ObjDict_highestSubIndex_obj1801 = 5;
UNS32 ObjDict_obj1801_COB_ID_used_by_PDO = 0x281;
UNS8 ObjDict_obj1801_Transmission_Type = 0xFE;
UNS16 ObjDict_obj1801_Inhibit_Time = 0x100;
UNS8 ObjDict_obj1801_Compatibility_Entry = 0x0;
UNS16 ObjDict_obj1801_Event_Timer = 0x0; subindex ObjDict_Index1801[] = { {RO, uint8, sizeof(UNS8), (void *)&ObjDict_highestSubIndex_obj1801}, {RW, uint32, sizeof(UNS32), (void *)&ObjDict_obj1801_COB_ID_used_by_PDO}, {RW, uint8, sizeof(UNS8), (void *)&ObjDict_obj1801_Transmission_Type}, {RW, uint16, sizeof(UNS16), (void *)&ObjDict_obj1801_Inhibit_Time}, {RW, uint8, sizeof(UNS8), (void *)&ObjDict_obj1801_Compatibility_Entry}, {RW, uint16, sizeof(UNS16), (void *)&ObjDict_obj1801_Event_Timer} }; ODCallback_t ObjDict_Index1801_callbacks[] = { NULL, NULL, NULL, NULL, NULL, NULL, };
UNS8 ObjDict_highestSubIndex_obj1A00 = 2;
UNS32 ObjDict_obj1A00[] = { 0x20000108, 0x20000210, }; subindex ObjDict_Index1A00[] = { {RW, uint8, sizeof(UNS8), (void *)&ObjDict_highestSubIndex_obj1A00}, {RW, uint32, sizeof(UNS32), (void *)&ObjDict_obj1A00[0]}, {RW, uint32, sizeof(UNS32), (void *)&ObjDict_obj1A00[1]}, };
UNS8 ObjDict_highestSubIndex_obj1A01 = 2; UNS32 ObjDict_obj1A01[] = { 0x20100110, 0x20100210 }; subindex ObjDict_Index1A01[] = { {RW, uint8, sizeof(UNS8), (void *)&ObjDict_highestSubIndex_obj1A01}, {RW, uint32, sizeof(UNS32), (void *)&ObjDict_obj1A01[0]}, {RW, uint32, sizeof(UNS32), (void *)&ObjDict_obj1A01[1]}, };
UNS8 ObjDict_highestSubIndex_obj2000 = 2;
UNS8 ControlWordAxis1 = 100;
UNS16 ControlWordAxis2 = 1000; subindex ObjDict_Index2000[] = { {RW, int8, sizeof(UNS8), (void *)&ObjDict_highestSubIndex_obj2000}, {RW, uint8, sizeof(UNS8), (void *)&ControlWordAxis1}, {RW, uint16, sizeof(UNS16), (void *)&ControlWordAxis2}, };
UNS8 ObjDict_highestSubIndex_obj2010 = 2; UNS16 test_half_word1 = 1250; UNS16 test_half_word2 = 1600; subindex ObjDict_Index2010[] = { {RW, uint8, sizeof(UNS8), (void *)&ObjDict_highestSubIndex_obj2010}, {RW, uint16, sizeof(UNS16), (void *)&test_half_word1}, {RW, uint16, sizeof(UNS16), (void *)&test_half_word2}, };
const indextable ObjDict_objdict[] = { {NULL, 0, 0x0}, {(subindex *)ObjDict_Index1200, sizeof(ObjDict_Index1200) / sizeof(ObjDict_Index1200[0]), 0x1200}, {(subindex *)ObjDict_Index1800, sizeof(ObjDict_Index1800) / sizeof(ObjDict_Index1800[0]), 0x1800}, {(subindex *)ObjDict_Index1801, sizeof(ObjDict_Index1801) / sizeof(ObjDict_Index1801[0]), 0x1801}, {(subindex *)ObjDict_Index1A00, sizeof(ObjDict_Index1A00) / sizeof(ObjDict_Index1A00[0]), 0x1A00}, {(subindex *)ObjDict_Index1A01, sizeof(ObjDict_Index1A01) / sizeof(ObjDict_Index1A01[0]), 0x1A01}, {(subindex *)ObjDict_Index2000, sizeof(ObjDict_Index2000) / sizeof(ObjDict_Index2000[0]), 0x2000}, {(subindex *)ObjDict_Index2010, sizeof(ObjDict_Index2010) / sizeof(ObjDict_Index2010[0]), 0x2010}, };
const indextable *ObjDict_scanIndexOD(UNS16 wIndex, UNS32 *errorCode, ODCallback_t **callbacks) { int i; *callbacks = NULL; switch(wIndex) { case 0x1200: i = 1; break; case 0x1800: i = 2; *callbacks = ObjDict_Index1800_callbacks; break; case 0x1A00: i = 4; break; case 0x1801: i = 3; *callbacks = ObjDict_Index1801_callbacks; break; case 0x1A01: i = 5; break; case 0x2000: i = 6; break; case 0x2010: i = 7; break; default: *errorCode = OD_NO_SUCH_OBJECT; return NULL; } *errorCode = OD_SUCCESSFUL; return &ObjDict_objdict[i]; }
const quick_index ObjDict_firstIndex = { 1, 0, 0, 0, 2, 4 };
const quick_index ObjDict_lastIndex = { 1, 0, 0, 0, 3, 5 };
const UNS16 ObjDict_ObjdictSize = sizeof(ObjDict_objdict)/sizeof(ObjDict_objdict[0]);
UNS32 ObjDict_valueRangeTest(UNS8 typeValue, void *value) { switch(typeValue) {
default: break; } return 0; }
const UNS8 ObjDict_iam_a_slave = 1;
UNS8 ObjDict_bDeviceNodeId = 0x01;
UNS8 ObjDict_highestSubIndex_obj1016 = 0;
UNS32 ObjDict_obj1016[1];
TIMER_HANDLE ObjDict_heartBeatTimers[1];
UNS16 ObjDict_obj1017 = 0;
UNS16 ObjDict_obj100C = 60; UNS8 ObjDict_obj100D = 3;
UNS32 ObjDict_obj1005 = 0;
UNS32 ObjDict_obj1006 = 0;
UNS32 ObjDict_obj1003[EMCY_MAX_ERRORS];
UNS8 ObjDict_highestSubIndex_obj1003 = 0;
UNS8 ObjDict_obj1001 = 0x0;
UNS32 ObjDict_obj1014 = 0x80;
s_PDO_status ObjDict_PDO_status[2] = {s_PDO_status_Initializer, s_PDO_status_Initializer};
CO_Data ObjDict_Data = CANOPEN_NODE_DATA_INITIALIZER(ObjDict);
|