parameters: (self)
return_statement: return voltage
docstring: Read USB voltage
  
          :returns: Measured USB voltage
  
          :raises: PymcuprogToolConnectionError if not connected to any tool (connect_to_tool not run)
          :raises: PymcuprogNotSupportedError if the tool can't measure USB voltage
docstring_summary: Read USB voltage
docstring_tokens: Read USB voltage
function: def read_usb_voltage(self):
          """
          Read USB voltage
  
          :returns: Measured USB voltage
  
          :raises: PymcuprogToolConnectionError if not connected to any tool (connect_to_tool not run)
          :raises: PymcuprogNotSupportedError if the tool can't measure USB voltage
          """
          self._is_hid_tool_not_connected_raise()
  
          try:
              voltage = read_usb_voltage(self.housekeeper)
          except Jtagice3ResponseError:
              raise PymcuprogNotSupportedError("Connected debugger/board does not have USB voltage read capability.")
  
          return voltage
function_tokens: def read_usb_voltage ( self ) : self . _is_hid_tool_not_connected_raise ( ) try : voltage = read_usb_voltage ( self . housekeeper ) except Jtagice3ResponseError : raise PymcuprogNotSupportedError ( "Connected debugger/board does not have USB voltage read capability." ) return voltage