/* Returns the number of remaining data units in the current DMA Channelx transfer.  */
uint16_t DMA_GetCurrDataCounter(DMA_ChannelType *DMAChx)
/* Returns the number of remaining data units in the current DMA Channelx transfer.  */
uint16_t DMA_GetCurrDataCounter(DMA_ChannelType *DMAChx)
{
    assert_param(IS_DMA_ALL_PERIPH(DMAChx));
    return ((uint16_t)(DMAChx->TXNUM));
}