3.2.24.5 DIAG_SERCOM_USART_SFRReset

Returns the status of the SFR_RESET diagnostic

This function verifies correct reset values of each SERCOM_USART peripheral register, by comparing the value of each register after reset, with the expected value stored in a table.

DIAG_TEST_STATUS 
DIAG_SERCOM_USART_SFRReset
(
    uint32_t* reg_results,    
    uint32_t results_size, 
    bool dump_regs
);

Diagnostic verifies the following faults do not exist

  • Control Register Failure

Operating Mode

  • Interface can be used only at POST
Precondition
  • none

Parameters

  • reg_results - optional array of results
  • results_size - size of results array
  • dump_regs

Returns

  • DIAG_TEST_PASSED if no faults were found, otherwise, DIAG_TEST_FAILED.