/* Get the captured data from a sample sequence of regular channel.  */
unsigned long ADCDataRegularGet(unsigned long ulBase, unsigned long ulADCMode)
/* Get the captured data from a sample sequence of regular channel.  */
unsigned long ADCDataRegularGet(unsigned long ulBase, unsigned long ulADCMode)
{
    unsigned long ulReturn = 0;
    xASSERT((ulBase == ADC1_BASE) || (ulBase == ADC2_BASE) || (ulBase == ADC3_BASE));
    xASSERT((ulADCMode == ADC_MODE_NORMAL) || (ulADCMode == ADC_MODE_DUAL));
    if(ulADCMode == ADC_MODE_NORMAL)
    {
        ulReturn = xHWREG(ulBase + ADC_DR) & ADC_DR_DATA_M;
    }
    else
    {
        ulReturn = xHWREG(ADC1_BASE + ADC_DR);
    }
    return ulReturn;
}