canfestival/config_utils.py
changeset 1831 56b48961cc68
parent 1826 91796f408540
child 1834 cd42b426028b
equal deleted inserted replaced
1830:e598d1acf354 1831:56b48961cc68
   154     # Re-Enable PDO
   154     # Re-Enable PDO
   155     dcfdata += [LE_to_BE(idx, 2) + LE_to_BE(0x01, 1) + LE_to_BE(0x04, 4) + LE_to_BE(cobid, 4)]
   155     dcfdata += [LE_to_BE(idx, 2) + LE_to_BE(0x01, 1) + LE_to_BE(0x04, 4) + LE_to_BE(cobid, 4)]
   156     return "".join(dcfdata), len(dcfdata)
   156     return "".join(dcfdata), len(dcfdata)
   157 
   157 
   158 
   158 
   159 class ConciseDCFGenerator:
   159 class ConciseDCFGenerator(object):
   160 
   160 
   161     def __init__(self, nodelist, nodename):
   161     def __init__(self, nodelist, nodename):
   162         # Dictionary of location informations classed by name
   162         # Dictionary of location informations classed by name
   163         self.IECLocations = {}
   163         self.IECLocations = {}
   164         # Dictionary of location that have not been mapped yet
   164         # Dictionary of location that have not been mapped yet