objdictgen/gen_cfile.py
changeset 750 bfb63ff7106e
parent 639 27c0a025acf3
child 765 90b738e4ede5
equal deleted inserted replaced
749:5cbb8e9ad67c 750:bfb63ff7106e
   414         entry_infos = Node.GetEntryInfos(0x1017)
   414         entry_infos = Node.GetEntryInfos(0x1017)
   415         texts["EntryName"] = entry_infos["name"]
   415         texts["EntryName"] = entry_infos["name"]
   416         indexContents[0x1017] = """\n/* index 0x1017 :   %(EntryName)s */ 
   416         indexContents[0x1017] = """\n/* index 0x1017 :   %(EntryName)s */ 
   417                     UNS16 %(NodeName)s_obj1017 = 0x0;   /* 0 */
   417                     UNS16 %(NodeName)s_obj1017 = 0x0;   /* 0 */
   418 """%texts
   418 """%texts
       
   419     
       
   420     if 0x100C not in communicationlist:
       
   421         entry_infos = Node.GetEntryInfos(0x100C)
       
   422         texts["EntryName"] = entry_infos["name"]
       
   423         indexContents[0x100C] = """\n/* index 0x100C :   %(EntryName)s */ 
       
   424                     UNS8 %(NodeName)s_obj100C = 0x0;   /* 0 */
       
   425 """%texts
       
   426     
       
   427     if 0x100D not in communicationlist:
       
   428         entry_infos = Node.GetEntryInfos(0x100D)
       
   429         texts["EntryName"] = entry_infos["name"]
       
   430         indexContents[0x100D] = """\n/* index 0x100D :   %(EntryName)s */ 
       
   431                     UNS16 %(NodeName)s_obj100D = 0x0;   /* 0 */
       
   432 """%texts
   419 
   433 
   420 #-------------------------------------------------------------------------------
   434 #-------------------------------------------------------------------------------
   421 #               Declaration of navigation in the Object Dictionary
   435 #               Declaration of navigation in the Object Dictionary
   422 #-------------------------------------------------------------------------------
   436 #-------------------------------------------------------------------------------
   423 
   437