/* Get the offset value from a sample sequence if Injected Channel.  */
unsigned long ADCInjectedOffsetDataGet(unsigned long ulBase, unsigned long ulChannel)
/* Get the offset value from a sample sequence if Injected Channel.  */
unsigned long ADCInjectedOffsetDataGet(unsigned long ulBase, unsigned long ulChannel)
{
    unsigned long ulReturn;
    xASSERT((ulBase == ADC1_BASE) || (ulBase == ADC2_BASE) || (ulBase == ADC3_BASE));
    xASSERT((ulChannel > 0) || (ulChannel < 5));
    ulReturn = (xHWREG(ulBase + ADC_JOFR1 + (ulChannel-1)*4) & ADC_JOFR1_M);
    return ulReturn;
}