/* 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_DSR_BCR) & DMA_DSR_BCR_BCR_M);
}