3.2.2.6 DIAG_ADC_Linearity
Returns the status of the ADC_LINEARITY diagnostic
This function verifies linearity on the selected ADC instance and channel.
DIAG_TEST_STATUS
DIAG_ADC_Linearity
(
DIAG_ADC_PERIPHS adc_periph
);
Diagnostic verifies the following faults do not exist
- Results are not linear
- Sample and hold error
Operating Mode
- Interface can be used at POST
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.
