9.2.6 Data counter functions
9.2.6.1 DMA_SetCurrDataCounter
void DMA_SetCurrDataCounter ( DMA_Channel_TypeDef *
DMAy_Channelx, uint16_t DataNumber)
Sets the number of data units in the current DMAy Channelx
transfer.
ï‚· 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.
ï‚· DataNumber : The number of data units in the current DMAy
Channelx transfer.
ï‚· This function can only be used when the DMAy_Channelx is
disabled.
9.2.6.2 DMA_GetCurrDataCounter
uint16_t DMA_GetCurrDataCounter ( DMA_Channel_TypeDef *
DMAy_Channelx)
Returns the number of remaining data units in the current DMAy
Channelx transfer.
ï‚· 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.
ï‚· The number of remaining data units in the current DMAy
Channelx transfer.