3.2.2.9 DIAG_ADC_SFRWriteRead

Returns the status of the SFR_WRITE_READ diagnostic

Returns the status of the SFR_WRITE_READ diagnostic The function checks that values written to each ADC peripheral register can be read back, unless the bits are marked as read-only.

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

Diagnostic verifies the following faults do not exist

  • Control Register Failure

Operating Mode

  • Function can run at POST and On Demand.
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.