Performs ATOP DCMP self-test using ADC test-data injection.
The function sets an initial DCMP threshold, adapts it for signed mode if needed, and then checks DCMP status for three injected ADC values.
- Parameters
-
| adcBase | Pointer to ADC base used for test-data injection and conversion trigger. |
| dcmpBase | Pointer to DCMP base used for threshold setup and status read. |
- Returns
- OK_STATUS (0) - All comparator results match expected values.
ERROR_STATUS (1) - At least one comparator result mismatches.
MTB_STL_ERROR_TIMEOUT (10) if ADC conversion times out.