objdictgen/gen_cfile.py
changeset 493 a204a86a71f1
parent 484 f59d1cdde42b
child 512 e84806c0ada4
equal deleted inserted replaced
492:b919a24a45cb 493:a204a86a71f1
   370 
   370 
   371     if 0x1014 not in communicationlist:
   371     if 0x1014 not in communicationlist:
   372         entry_infos = Node.GetEntryInfos(0x1014)
   372         entry_infos = Node.GetEntryInfos(0x1014)
   373         texts["EntryName"] = entry_infos["name"]
   373         texts["EntryName"] = entry_infos["name"]
   374         indexContents[0x1014] = """\n/* index 0x1014 :   %(EntryName)s */
   374         indexContents[0x1014] = """\n/* index 0x1014 :   %(EntryName)s */
   375                     UNS32 %(NodeName)s_obj1014 = 0x0;   /* 0 */
   375                     UNS32 %(NodeName)s_obj1014 = 0x80 + 0x%(NodeID)02X;   /* 128 + NodeID */
   376 """%texts
   376 """%texts
   377 
   377 
   378     if 0x1016 in communicationlist:
   378     if 0x1016 in communicationlist:
   379         texts["heartBeatTimers_number"] = Node.GetEntry(0x1016, 0)
   379         texts["heartBeatTimers_number"] = Node.GetEntry(0x1016, 0)
   380     else:
   380     else: