/* This function replaces the original SSIDataNonBlockingGet() API and performs the same actions. A macro is provided in  */
long SSIDataGetNonBlocking(unsigned long ulBase, unsigned long *pulData)
/* This function replaces the original SSIDataNonBlockingGet() API and performs the same actions. A macro is provided in  */
long SSIDataGetNonBlocking(unsigned long ulBase, unsigned long *pulData)
{
    ASSERT((ulBase == SSI0_BASE) || (ulBase == SSI1_BASE));
    if(HWREG(ulBase + SSI_O_SR) & SSI_SR_RNE)
    {
        *pulData = HWREG(ulBase + SSI_O_DR);
        return(1);
    }
    else
    {
        return(0);
    }
}