Hello, I'm working with the ADC sampling function of the s32k312 and I'm trying to understand how the values are stored in the adc1_result[] array when I call the function Adc_Sar_Ip_GetConvDataToArray(ADCHWUNIT_1_INSTANCE, ADC_SAR_IP_CONV_CHAIN_NORMAL, ADC1_CHANNEL_NUM, adc1_result); to retrieve the ADC sampling results.
Specifically, I want to know if the values in the adc1_result[] array are stored based on the configured channel numbers of ADC1, for example:
adc1_result[0] stores the conversion result of p0_chanNum0
adc1_result[1] stores the conversion result of p1_chanNum1
And so on, in a sequential manner.
Or, are they stored based on the actual ADC channel numbers and their corresponding positions in the ADC configuration, like:
adc1_result[0] stores the conversion result of adcchannel0 which might correspond to S19_ChanNum43
adc1_result[1] stores the conversion result of adcchannel1 which might correspond to S20_ChanNum44
And so forth.
I'm looking for clarification on how the results are mapped to the adc1_result[] array