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