Functions | |
| uint8_t | SelfTest_ATOP_ADC_Core (const stl_atop_adc_core_config_t *config) |
| Performs a self-test of an ATOP ADC group by converting a known internal reference voltage and comparing the result against an expected code. | |
| uint8_t SelfTest_ATOP_ADC_Core | ( | const stl_atop_adc_core_config_t * | config | ) |
Performs a self-test of an ATOP ADC group by converting a known internal reference voltage and comparing the result against an expected code.
The SAR conversion datapath, the AUX channel multiplexer, the AFE input stage, the trigger / busy logic and the result-register read path are exercised. The original ADC and AFE configuration is preserved and restored on return so the test can be safely interleaved with normal use of the other ADC groups in the system.
The reference source, channel, expected code and tolerance are taken from config. Use ATOP_ADC_CORE_CONFIG_GRP0_VREF for the ready-made case.
config field not supported on the current silicon (other group, non-AUX channel, unknown reference source, out-of-range expected code, zero tolerance) is rejected with ERROR_BAD_PARAM before any HW access.| config | Pointer to the test configuration stl_atop_adc_core_config_t. |
config or an unsupported configuration (no HW access performed)