/* Get the DMA Current Byte Count of a channel.  */
unsigned long DMARemainTransferCountGet(unsigned long ulChannelID)
/* Get the DMA Current Byte Count of a channel.  */
unsigned long DMARemainTransferCountGet(unsigned long ulChannelID)
{
    xASSERT(xDMAChannelIDValid(ulChannelID));
    return xHWREG(g_psDMAChannelAddress[ulChannelID] + DMA_CTRL) >> DMA_CTRL_TFR_CNT_S;
}