parameters: (self, timeout_ms)
return_statement: return False
docstring: Waits for the device to be unlocked.
          All devices boot up as locked until proven otherwise
          :param timeout_ms: number of milliseconts to wait
docstring_summary: Waits for the device to be unlocked.
          All devices boot up as locked until proven otherwise
          :param timeout_ms: number of milliseconts to wait
docstring_tokens: Waits for the device to be unlocked . All devices boot up as locked until proven otherwise : param timeout_ms : number of milliseconts to wait
function: def wait_unlocked(self, timeout_ms):
          """
          Waits for the device to be unlocked.
          All devices boot up as locked until proven otherwise
          :param timeout_ms: number of milliseconts to wait
          """
          timeout = Timeout(timeout_ms)
  
          while not timeout.expired():
              if not self.readwrite.read_cs(constants.UPDI_ASI_SYS_STATUS) & (
                      1 << constants.UPDI_ASI_SYS_STATUS_LOCKSTATUS):
                  return True
  
          self.logger.error("Timeout waiting for device to unlock")
          return False
function_tokens: def wait_unlocked ( self , timeout_ms ) : timeout = Timeout ( timeout_ms ) while not timeout . expired ( ) : if not self . readwrite . read_cs ( constants . UPDI_ASI_SYS_STATUS ) & ( 1 << constants . UPDI_ASI_SYS_STATUS_LOCKSTATUS ) : return True self . logger . error ( "Timeout waiting for device to unlock" ) return False