/* Config the ADCs peripherals according to the specified parameters in the adcCommonConfig.  */
void ADC_CommonConfig(ADC_CommonConfig_T *adcCommonConfig)
/* Config the ADCs peripherals according to the specified parameters in the adcCommonConfig.  */
void ADC_CommonConfig(ADC_CommonConfig_T *adcCommonConfig)
{
    ADC->CCTRL_B.ADCMSEL = adcCommonConfig->mode;
    ADC->CCTRL_B.ADCPRE = adcCommonConfig->prescaler;
    ADC->CCTRL_B.DMAMODE = adcCommonConfig->accessMode;
    ADC->CCTRL_B.SMPDEL2 = adcCommonConfig->twoSampling;
}