objdictgen/gen_cfile.py
changeset 284 24bf3d692993
parent 261 dbcd80bcab82
child 286 85d5361179f3
equal deleted inserted replaced
283:e0b3096230e5 284:24bf3d692993
   315 
   315 
   316 #-------------------------------------------------------------------------------
   316 #-------------------------------------------------------------------------------
   317 #                     Declaration of Particular Parameters
   317 #                     Declaration of Particular Parameters
   318 #-------------------------------------------------------------------------------
   318 #-------------------------------------------------------------------------------
   319 
   319 
       
   320     if 0x1003 not in communicationlist:
       
   321         entry_infos = Node.GetEntryInfos(0x1003)
       
   322         texts["EntryName"] = entry_infos["name"]
       
   323         indexContents[0x1003] = """\n/* index 0x1003 :   %(EntryName)s */
       
   324                     UNS8 %(NodeName)s_highestSubIndex_obj1003 = 0; /* number of subindex - 1*/
       
   325                     UNS32 %(NodeName)s_obj1003[] = 
       
   326                     {
       
   327                       0x0	/* 0 */
       
   328                     };
       
   329                     ODCallback_t %(NodeName)s_Index1003_callbacks[] = 
       
   330                      {
       
   331                        NULL,
       
   332                        NULL,
       
   333                      };
       
   334                     subindex %(NodeName)s_Index1003[] = 
       
   335                      {
       
   336                        { RW, uint8, sizeof (UNS8), (void*)&%(NodeName)s_highestSubIndex_obj1003 },
       
   337                        { RO, uint32, sizeof (UNS32), (void*)&%(NodeName)s_obj1003[0] }
       
   338                      };
       
   339 """%texts
       
   340 
   320     if 0x1005 not in communicationlist:
   341     if 0x1005 not in communicationlist:
   321         entry_infos = Node.GetEntryInfos(0x1005)
   342         entry_infos = Node.GetEntryInfos(0x1005)
   322         texts["EntryName"] = entry_infos["name"]
   343         texts["EntryName"] = entry_infos["name"]
   323         indexContents[0x1005] = """\n/* index 0x1005 :   %(EntryName)s */
   344         indexContents[0x1005] = """\n/* index 0x1005 :   %(EntryName)s */
   324                     UNS32 %(NodeName)s_obj1005 = 0x0;   /* 0 */
   345                     UNS32 %(NodeName)s_obj1005 = 0x0;   /* 0 */