objdictgen/gen_cfile.py
changeset 314 68e83c3ffbb5
parent 313 fed411af774a
child 325 65b1b2d9e20b
equal deleted inserted replaced
313:fed411af774a 314:68e83c3ffbb5
   361         texts["EntryName"] = entry_infos["name"]
   361         texts["EntryName"] = entry_infos["name"]
   362         indexContents[0x1006] = """\n/* index 0x1006 :   %(EntryName)s */
   362         indexContents[0x1006] = """\n/* index 0x1006 :   %(EntryName)s */
   363                     UNS32 %(NodeName)s_obj1006 = 0x0;   /* 0 */
   363                     UNS32 %(NodeName)s_obj1006 = 0x0;   /* 0 */
   364 """%texts
   364 """%texts
   365 
   365 
       
   366     if 0x1014 not in communicationlist:
       
   367         entry_infos = Node.GetEntryInfos(0x1014)
       
   368         texts["EntryName"] = entry_infos["name"]
       
   369         indexContents[0x1014] = """\n/* index 0x1014 :   %(EntryName)s */
       
   370                     UNS32 %(NodeName)s_obj1014 = 0x0;   /* 0 */
       
   371 """%texts
       
   372 
   366     if 0x1016 in communicationlist:
   373     if 0x1016 in communicationlist:
   367         texts["nombre"] = Node.GetEntry(0x1016, 0)
   374         texts["nombre"] = Node.GetEntry(0x1016, 0)
   368     else:
   375     else:
   369         texts["nombre"] = 0
   376         texts["nombre"] = 0
   370         entry_infos = Node.GetEntryInfos(0x1016)
   377         entry_infos = Node.GetEntryInfos(0x1016)