/* Returns the number of remaining data units in the current DMAy Streamx transfer.  */
uint16_t DMA_GetCurrDataCounter(DMA_Stream_TypeDef *DMAy_Streamx)
/* Returns the number of remaining data units in the current DMAy Streamx transfer.  */
uint16_t DMA_GetCurrDataCounter(DMA_Stream_TypeDef *DMAy_Streamx)
{
  assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx));
  return ((uint16_t)(DMAy_Streamx->NDTR));
}