/* Returns the current status for an integrated USB DMA channel. */
uint32_t USBDMAChannelStatus(uint32_t ui32Base, uint32_t ui32Channel)
/* Returns the current status for an integrated USB DMA channel. */
uint32_t USBDMAChannelStatus(uint32_t ui32Base, uint32_t ui32Channel)
{
    ASSERT(ui32Base == USB0_BASE);
    ASSERT(ui32Channel < 8);
    return(HWREG(ui32Base + USB_O_DMACTL0 + (0x10 * ui32Channel)) &
           USB_DMACTL0_ERR);
}