3.2.2.1 DIAG_ADC_Boundary
Returns the status of the ADC_BOUNDARY diagnostic
DIAG_TEST_STATUS
DIAG_ADC_Boundary
(
DIAG_ADC_PERIPHS adc_periph
);
Diagnostic verifies the following faults do not exist
- Error out of spec/conversion error
- 10/12 Bit Configuration incorrect
Operating Mode
- Interface can be used at POST and ‘On Demand’
-
If calling DIAG_ADC_Boundary on Demand for ADC0, then ADC1 must be disabled and then reenabled before and after the call. See example below:
ADC1_Disable();ret = DIAG_ADC_Boundary( DIAG_ADC0 );ADC1_Enable();ADC0_Initialize();ADC0_Enable();
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.
