3.2.2.4 DIAG_ADC_Enable

Returns the status of the ADC_ENABLE diagnostic

This function enables the peripheral, then verifies that it has been enabled.

DIAG_TEST_STATUS 
DIAG_ADC_Enable
(
    DIAG_ADC_PERIPHS adc_periph
);

Diagnostic verifies the following faults do not exist

  • ADC will not turn on

Operating Mode

  • Interface can be used at POST and ‘On Demand’
Precondition
  • none

Parameters

  • adc_periph - enum value for which ADC peripheral to be tested

Returns

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