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