3.2.23.6 DIAG_SDADC_Linearity
Returns the status of the SDADC_LINEARITY diagnostic
This function verifies lineary on the selected SDADC instance and channel, by calculating a least-squares fit of DAC code output captured by SDADC.
DIAG_TEST_STATUS
DIAG_SDADC_Linearity
(
DIAG_SADC_AIN ain
);
Diagnostic verifies the following faults do not exist
- Results are not linear
Operating Mode
- Interface can be used at POST
Precondition
- none
Parameters
- ain - analog input
Returns
- DIAG_TEST_PASSED if no faults were found, otherwise, DIAG_TEST_FAILED.
