objdictgen/eds_utils.py
changeset 546 13701680330c
parent 542 4328444b039b
child 549 2b6286f69022
equal deleted inserted replaced
545:ff692766e5e9 546:13701680330c
   511     mandatories = []
   511     mandatories = []
   512     optionals = []
   512     optionals = []
   513     manufacturers = []
   513     manufacturers = []
   514     
   514     
   515     # Remove all unused PDO
   515     # Remove all unused PDO
   516     for entry in entries[:]:
   516 ##    for entry in entries[:]:
   517         if 0x1600 <= entry < 0x1800 or 0x1A00 <= entry < 0x1C00:
   517 ##        if 0x1600 <= entry < 0x1800 or 0x1A00 <= entry < 0x1C00:
   518             subentry_value = Node.GetEntry(entry, 1)
   518 ##            subentry_value = Node.GetEntry(entry, 1)
   519             if subentry_value is None or subentry_value == 0:
   519 ##            if subentry_value is None or subentry_value == 0:
   520                 entries.remove(entry)
   520 ##                entries.remove(entry)
   521                 entries.remove(entry - 0x200)
   521 ##                entries.remove(entry - 0x200)
   522                 
   522                 
   523     # For each entry, we generate the entry section or sections if there is subindexes
   523     # For each entry, we generate the entry section or sections if there is subindexes
   524     for entry in entries:
   524     for entry in entries:
   525         # Extract infos and values for the entry
   525         # Extract infos and values for the entry
   526         entry_infos = Node.GetEntryInfos(entry)
   526         entry_infos = Node.GetEntryInfos(entry)