/* Get the count remaining for a non-blocking transaction. */
unsigned long EPINonBlockingReadCount(unsigned long ulBase, unsigned long ulChannel)
/* Get the count remaining for a non-blocking transaction. */
unsigned long EPINonBlockingReadCount(unsigned long ulBase, unsigned long ulChannel)
{
    unsigned long ulOffset;
    ASSERT(ulBase == EPI0_BASE);
    ASSERT(ulChannel < 2);
    ulOffset = ulChannel * (EPI_O_RPSTD1 - EPI_O_RPSTD0);
    return(HWREG(ulBase + EPI_O_RPSTD0 + ulOffset));
}