def __init__(self, types, logLevel=20): self._types = types # Configure the logger logging.basicConfig() self._log = logging.getLogger('vhal_emulator_test') self._log.setLevel(logLevel) # Start the VHAL Emulator self._vhal = vhal_emulator.Vhal(types) # Get the list of configs self._vhal.getConfigAll() self._configs = self._vhal.rxMsg().config
def __init__(self, types, argv): self._types = types # Start the VHAL Emulator self._vhal = vhal_emulator.Vhal(types) # Get the list of configs #self._vhal.getConfigAll() #self._configs = self._vhal.rxMsg().config #print self._configs prop, area, value = self.parseParameters(argv) if prop != 0: self.onAction(prop, area, value)
def main(): global vhal vhal = vhal_emulator.Vhal(vhal_consts_2_0.vhal_types_2_0) rx = Thread(target=rxThread, args=(vhal,)) rx.start()