parameters: (self)
return_statement: return False
docstring: Reads the kit info flash page, containing board specific data
  
          :return: A data array containing the kit info
docstring_summary: Reads the kit info flash page, containing board specific data
docstring_tokens: Reads the kit info flash page containing board specific data
function: def read_edbg_extra_info(self):
          """
          Reads the kit info flash page, containing board specific data
  
          :return: A data array containing the kit info
          """
          self.logger.info("Reading kit info...")
  
          # The second parameter tells the debugger it is the only command
          # The last parameter tells what to read. If zero a whole page is read, and
          # if non-zero 32-bytes is fetched from offset 32 * parameter. The parameter
          # cannot be greater than 8
          response = self.dap_command_response(bytearray([self.AVR_GET_CONFIG, 0x01,
                                                          self.EDBG_CONFIG_KIT_DATA, 0x0]))
  
          # Remove unused data
          if len(response) >= 256 + 6:
              self.logger.info("Response size is truncated")
              response = response[:256 + 6]
  
          # Byte 0 will echo the current command
          # Byte 1 show the command status
          if response[0] == self.AVR_GET_CONFIG:
  
              # Check the status code
              if response[1] == 0:
                  # Bytes [3..2] contain the received size
                  size = unpack_be16(response[2:4])
                  return response[6:size]
  
              self.logger.warning("Command failed with error: %i", response[1])
  
          self.logger.warning("Command was not echoed back")
          return False
function_tokens: def read_edbg_extra_info ( self ) : self . logger . info ( "Reading kit info..." ) # The second parameter tells the debugger it is the only command # The last parameter tells what to read. If zero a whole page is read, and # if non-zero 32-bytes is fetched from offset 32 * parameter. The parameter # cannot be greater than 8 response = self . dap_command_response ( bytearray ( [ self . AVR_GET_CONFIG , 0x01 , self . EDBG_CONFIG_KIT_DATA , 0x0 ] ) ) # Remove unused data if len ( response ) >= 256 + 6 : self . logger . info ( "Response size is truncated" ) response = response [ : 256 + 6 ] # Byte 0 will echo the current command # Byte 1 show the command status if response [ 0 ] == self . AVR_GET_CONFIG : # Check the status code if response [ 1 ] == 0 : # Bytes [3..2] contain the received size size = unpack_be16 ( response [ 2 : 4 ] ) return response [ 6 : size ] self . logger . warning ( "Command failed with error: %i" , response [ 1 ] ) self . logger . warning ( "Command was not echoed back" ) return False