EasyManua.ls Logo

ST STM32F31xx

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
DMA controller (DMA)
UM1581
188/584
DocID023800 Rev 1
9.2.6 Data counter functions
9.2.6.1 DMA_SetCurrDataCounter
Function Name
void DMA_SetCurrDataCounter ( DMA_Channel_TypeDef *
DMAy_Channelx, uint16_t DataNumber)
Function Description
Sets the number of data units in the current DMAy Channelx
transfer.
Parameters
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.
Return values
None.
Notes
This function can only be used when the DMAy_Channelx is
disabled.
9.2.6.2 DMA_GetCurrDataCounter
Function Name
uint16_t DMA_GetCurrDataCounter ( DMA_Channel_TypeDef *
DMAy_Channelx)
Function Description
Returns the number of remaining data units in the current DMAy
Channelx transfer.
Parameters
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.
Return values
The number of remaining data units in the current DMAy
Channelx transfer.
Notes
None.

Table of Contents

Related product manuals