/* Writes the number of data units to be transferred on the DMAy Streamx.  */
void DMA_SetCurrDataCounter(DMA_Stream_TypeDef *DMAy_Streamx, uint16_t Counter)
/* Writes the number of data units to be transferred on the DMAy Streamx.  */
void DMA_SetCurrDataCounter(DMA_Stream_TypeDef *DMAy_Streamx, uint16_t Counter)
{
  assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx));
  DMAy_Streamx->NDTR = (uint16_t)Counter;
}