Exemple #1
0
 def __init__(self, node, name, byte_list_str):
     PropBase.__init__(self, node, 0, name)
     if not byte_list_str.strip():
         self.type = fdt.TYPE_BOOL
         return
     self.bytes = [chr(int(byte, 16))
                   for byte in byte_list_str.strip().split(' ')]
     self.type, self.value = self.BytesToValue(''.join(self.bytes))
 def __init__(self, node, offset, name, bytes):
     PropBase.__init__(self, node, offset, name)
     self.bytes = bytes
     if not bytes:
         self.type = fdt.TYPE_BOOL
         self.value = True
         return
     self.type, self.value = self.BytesToValue(bytes)
Exemple #3
0
 def __init__(self, node, offset, name, bytes):
     PropBase.__init__(self, node, offset, name)
     self.bytes = bytes
     if not bytes:
         self.type = fdt.TYPE_BOOL
         self.value = True
         return
     self.type, self.value = self.BytesToValue(bytes)