libraries/mbed/targets/cmsis/TARGET_STM/TARGET_NUCLEO_F103RB/stm32f10x_dma.c
/**
  * @brief  Sets the number of data units in the current DMAy Channelx transfer.
  * @param  DMAy_Channelx: where y can be 1 or 2 to select the DMA and 
  *         x can be 1 to 7 for DMA1 and 1 to 5 for DMA2 to select the DMA Channel.
  * @param  DataNumber: The number of data units in the current DMAy Channelx
  *         transfer.   
  * @note   This function can only be used when the DMAy_Channelx is disabled.                 
  * @retval None.
  */
@brief  Sets the number of data units in the current DMAy Channelx transfer.
@param  DMAy_Channelx: where y can be 1 or 2 to select the DMA and
x can be 1 to 7 for DMA1 and 1 to 5 for DMA2 to select the DMA Channel.
@param  DataNumber: The number of data units in the current DMAy Channelx
transfer.
@note   This function can only be used when the DMAy_Channelx is disabled.
@retval None.
@brief Sets the number of data units in the current DMAy Channelx transfer . @param DMAy_Channelx : where y can be 1 or 2 to select the DMA and x can be 1 to 7 for DMA1 and 1 to 5 for DMA2 to select the DMA Channel . @param DataNumber : The number of data units in the current DMAy Channelx transfer . @note This function can only be used when the DMAy_Channelx is disabled . @retval None .
void DMA_SetCurrDataCounter(DMA_Channel_TypeDef* DMAy_Channelx, uint16_t DataNumber)
{
  assert_param(IS_DMA_ALL_PERIPH(DMAy_Channelx));
  DMAy_Channelx->CNDTR = DataNumber;  
}
void DMA_SetCurrDataCounter ( DMA_Channel_TypeDef * DMAy_Channelx , uint16_t DataNumber ) { assert_param ( IS_DMA_ALL_PERIPH ( DMAy_Channelx ) ) ; DMAy_Channelx -> CNDTR = DataNumber ; }
@brief  Sets the number of data units in the current DMAy Channelx transfer.
@brief Sets the number of data units in the current DMAy Channelx transfer .
/* Check the parameters */ /*--------------------------- DMAy Channelx CNDTR Configuration ---------------*/ /* Write to DMAy Channelx CNDTR */