from . import CustomInstruction class EnterMCULPM(CustomInstruction): """ EnterMCULPM() sets the MCU into LPM params for the equivalent function call: - wakeup_time """ tick_count = 1 def __init__(self, call_operation): super().__init__(call_operation) self.lpm_time = int(self.get_arg(0)) if len(self.args) > 0 else 0 def get_lpm_time(self): # us return float(self.lpm_time / 1000000.0)