/* Get the count remaining for a non-blocking transaction. */
uint32_t EPINonBlockingReadCount(uint32_t ui32Base, uint32_t ui32Channel)
/* Get the count remaining for a non-blocking transaction. */
uint32_t EPINonBlockingReadCount(uint32_t ui32Base, uint32_t ui32Channel)
{
    uint32_t ui32Offset;
    ASSERT(ui32Base == EPI0_BASE);
    ASSERT(ui32Channel < 2);
    ui32Offset = ui32Channel * (EPI_O_RPSTD1 - EPI_O_RPSTD0);
    return (HWREG(ui32Base + EPI_O_RPSTD0 + ui32Offset));
}