parameters: (self)
return_statement: return versions
docstring: Reads version info from the debugger
docstring_summary: Reads version info from the debugger
docstring_tokens: Reads version info from the debugger
function: def read_version_info(self):
          """Reads version info from the debugger"""
          self.logger.debug("Housekeeping::reading version info")
  
          # Results in dict form
          versions = {
              # HW version
              'hardware': self.get_byte(self.HOUSEKEEPING_CONTEXT_CONFIG, self.HOUSEKEEPING_CONFIG_HWREV),
              # FW version
              'firmware_major': self.get_byte(self.HOUSEKEEPING_CONTEXT_CONFIG, self.HOUSEKEEPING_CONFIG_FWREV_MAJ),
              'firmware_minor': self.get_byte(self.HOUSEKEEPING_CONTEXT_CONFIG, self.HOUSEKEEPING_CONFIG_FWREV_MIN),
              'build': self.get_le16(self.HOUSEKEEPING_CONTEXT_CONFIG, self.HOUSEKEEPING_CONFIG_BUILD),
              # BLDR
              'bootloader': self.get_le16(self.HOUSEKEEPING_CONTEXT_CONFIG, self.HOUSEKEEPING_CONFIG_BLDR_MAJ),
              # Host info
              'chip': self.get_byte(self.HOUSEKEEPING_CONTEXT_CONFIG, self.HOUSEKEEPING_CONFIG_CHIP),
              'host_id': self.get_le32(self.HOUSEKEEPING_CONTEXT_DIAGNOSTICS, self.HOUSEKEEPING_HOST_ID),
              'host_rev': self.get_byte(self.HOUSEKEEPING_CONTEXT_DIAGNOSTICS, self.HOUSEKEEPING_HOST_REV),
              # Misc
              'debug': self.get_byte(self.HOUSEKEEPING_CONTEXT_CONFIG, self.HOUSEKEEPING_CONFIG_DEBUG_BUILD)
          }
  
          # Firmware Image Requirement Enumerator is only supported on some tools
          try:
              versions['fire'] = self.get_byte(self.HOUSEKEEPING_CONTEXT_CONFIG, self.HOUSEKEEPING_CONFIG_FIRMWARE_IMAGE)
          except Jtagice3ResponseError:
              versions['fire'] = None
  
          return versions
function_tokens: def read_version_info ( self ) : self . logger . debug ( "Housekeeping::reading version info" ) # Results in dict form versions = { # HW version 'hardware' : self . get_byte ( self . HOUSEKEEPING_CONTEXT_CONFIG , self . HOUSEKEEPING_CONFIG_HWREV ) , # FW version 'firmware_major' : self . get_byte ( self . HOUSEKEEPING_CONTEXT_CONFIG , self . HOUSEKEEPING_CONFIG_FWREV_MAJ ) , 'firmware_minor' : self . get_byte ( self . HOUSEKEEPING_CONTEXT_CONFIG , self . HOUSEKEEPING_CONFIG_FWREV_MIN ) , 'build' : self . get_le16 ( self . HOUSEKEEPING_CONTEXT_CONFIG , self . HOUSEKEEPING_CONFIG_BUILD ) , # BLDR 'bootloader' : self . get_le16 ( self . HOUSEKEEPING_CONTEXT_CONFIG , self . HOUSEKEEPING_CONFIG_BLDR_MAJ ) , # Host info 'chip' : self . get_byte ( self . HOUSEKEEPING_CONTEXT_CONFIG , self . HOUSEKEEPING_CONFIG_CHIP ) , 'host_id' : self . get_le32 ( self . HOUSEKEEPING_CONTEXT_DIAGNOSTICS , self . HOUSEKEEPING_HOST_ID ) , 'host_rev' : self . get_byte ( self . HOUSEKEEPING_CONTEXT_DIAGNOSTICS , self . HOUSEKEEPING_HOST_REV ) , # Misc 'debug' : self . get_byte ( self . HOUSEKEEPING_CONTEXT_CONFIG , self . HOUSEKEEPING_CONFIG_DEBUG_BUILD ) } # Firmware Image Requirement Enumerator is only supported on some tools try : versions [ 'fire' ] = self . get_byte ( self . HOUSEKEEPING_CONTEXT_CONFIG , self . HOUSEKEEPING_CONFIG_FIRMWARE_IMAGE ) except Jtagice3ResponseError : versions [ 'fire' ] = None return versions