/* This function replaces the original EthernetPacketNonBlockingGet() API and performs the same actions. A macro is provided in  */
long EthernetPacketGetNonBlocking(unsigned long ulBase, unsigned char *pucBuf, long lBufLen)
/* This function replaces the original EthernetPacketNonBlockingGet() API and performs the same actions. A macro is provided in  */
long EthernetPacketGetNonBlocking(unsigned long ulBase, unsigned char *pucBuf, long lBufLen)
{
    ASSERT(ulBase == ETH_BASE);
    ASSERT(pucBuf != 0);
    ASSERT(lBufLen > 0);
    if((HWREG(ulBase + MAC_O_NP) & MAC_NP_NPR_M) == 0)
    {
        return(0);
    }
    return(EthernetPacketGetInternal(ulBase, pucBuf, lBufLen));
}