Tool/software:
Hello,
If we call DL_ADC12_getMemResult(ADC0, 0), pReg is &ADC0->ULLMEM.MEMRES[0], and the result address is (&ADC0->ULLMEM.MEMRES[0]) + DL_ADC12_SVT_OFFSET, which will be read and return the 16-bit result.
If we use ADC0->ULLMEM.MEMRES[0], the result address is &ADC0->ULLMEM.MEMRES[0], note there is no offset DL_ADC12_SVT_OFFSET.
From the simulation result both are correct, but they are different implementations.
Is there a difference from a efficiency, size or other aspect?
Thank you and best regards,
Ambroise