/* Get the captured data for the ADC sample channel.  */
unsigned long ADCDataGet(unsigned long ulBase, unsigned long ulChannel)
/* Get the captured data for the ADC sample channel.  */
unsigned long ADCDataGet(unsigned long ulBase, unsigned long ulChannel)
{
    unsigned long ulData;
    unsigned long ulCRReg;
    xASSERT(ulBase == ADC_BASE);
    xASSERT((ulChannel >= 0) && (ulChannel < 8));
    ulData = xHWREG(ulBase + ADC_DR0 + (ulChannel * 4));
        return (ulData & ADC_DATA_MASK);
}