Functions | |
void | DMA_ClearFlag (uint32_t DMAy_FLAG) |
Clears the DMAy Channelx's pending flags. More... | |
void | DMA_ClearITPendingBit (uint32_t DMAy_IT) |
Clears the DMAy Channelx's interrupt pending bits. More... | |
void | DMA_Cmd (DMA_Channel_TypeDef *DMAy_Channelx, FunctionalState NewState) |
Enables or disables the specified DMAy Channelx. More... | |
void | DMA_DeInit (DMA_Channel_TypeDef *DMAy_Channelx) |
Deinitializes the DMAy Channelx registers to their default reset values. More... | |
uint16_t | DMA_GetCurrDataCounter (DMA_Channel_TypeDef *DMAy_Channelx) |
Returns the number of remaining data units in the current DMAy Channelx transfer. More... | |
FlagStatus | DMA_GetFlagStatus (uint32_t DMAy_FLAG) |
Checks whether the specified DMAy Channelx flag is set or not. More... | |
ITStatus | DMA_GetITStatus (uint32_t DMAy_IT) |
Checks whether the specified DMAy Channelx interrupt has occurred or not. More... | |
void | DMA_Init (DMA_Channel_TypeDef *DMAy_Channelx, DMA_InitTypeDef *DMA_InitStruct) |
Initializes the DMAy Channelx according to the specified parameters in the DMA_InitStruct. More... | |
void | DMA_ITConfig (DMA_Channel_TypeDef *DMAy_Channelx, uint32_t DMA_IT, FunctionalState NewState) |
Enables or disables the specified DMAy Channelx interrupts. More... | |
void | DMA_SetCurrDataCounter (DMA_Channel_TypeDef *DMAy_Channelx, uint16_t DataNumber) |
Sets the number of data units in the current DMAy Channelx transfer. More... | |
void | DMA_StructInit (DMA_InitTypeDef *DMA_InitStruct) |
Fills each DMA_InitStruct member with its default value. More... | |
void DMA_ClearFlag | ( | uint32_t | DMAy_FLAG | ) |
Clears the DMAy Channelx's pending flags.
DMAy_FLAG | specifies the flag to clear. This parameter can be any combination (for the same DMA) of the following values:
|
None |
DMAy_FLAG | specifies the flag to clear. This parameter can be any combination (for the same DMA) of the following values:
|
None |
Definition at line 523 of file stm32f10x_dma.c.
void DMA_ClearITPendingBit | ( | uint32_t | DMAy_IT | ) |
Clears the DMAy Channelx's interrupt pending bits.
DMAy_IT | specifies the DMAy interrupt pending bit to clear. This parameter can be any combination (for the same DMA) of the following values:
|
None |
DMAy_IT | specifies the DMAy interrupt pending bit to clear. This parameter can be any combination (for the same DMA) of the following values:
|
None |
Definition at line 684 of file stm32f10x_dma.c.
void DMA_Cmd | ( | DMA_Channel_TypeDef * | DMAy_Channelx, |
FunctionalState | NewState | ||
) |
Enables or disables the specified DMAy Channelx.
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. |
NewState | new state of the DMAy Channelx. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 294 of file stm32f10x_dma.c.
void DMA_DeInit | ( | DMA_Channel_TypeDef * | DMAy_Channelx | ) |
Deinitializes the DMAy Channelx registers to their default reset values.
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. |
None |
Definition at line 108 of file stm32f10x_dma.c.
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. |
Definition at line 371 of file stm32f10x_dma.c.
FlagStatus DMA_GetFlagStatus | ( | uint32_t | DMAy_FLAG | ) |
Checks whether the specified DMAy Channelx flag is set or not.
DMAy_FLAG | specifies the flag to check. This parameter can be one of the following values:
|
The | new state of DMAy_FLAG (SET or RESET). |
DMAy_FLAG | specifies the flag to check. This parameter can be one of the following values:
|
The | new state of DMAy_FLAG (SET or RESET). |
Definition at line 433 of file stm32f10x_dma.c.
ITStatus DMA_GetITStatus | ( | uint32_t | DMAy_IT | ) |
Checks whether the specified DMAy Channelx interrupt has occurred or not.
DMAy_IT | specifies the DMAy interrupt source to check. This parameter can be one of the following values:
|
The | new state of DMAy_IT (SET or RESET). |
DMAy_IT | specifies the DMAy interrupt source to check. This parameter can be one of the following values:
|
The | new state of DMAy_IT (SET or RESET). |
Definition at line 595 of file stm32f10x_dma.c.
void DMA_Init | ( | DMA_Channel_TypeDef * | DMAy_Channelx, |
DMA_InitTypeDef * | DMA_InitStruct | ||
) |
Initializes the DMAy Channelx according to the specified parameters in the DMA_InitStruct.
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. |
DMA_InitStruct | pointer to a DMA_InitTypeDef structure that contains the configuration information for the specified DMA Channel. |
None |
Definition at line 202 of file stm32f10x_dma.c.
void DMA_ITConfig | ( | DMA_Channel_TypeDef * | DMAy_Channelx, |
uint32_t | DMA_IT, | ||
FunctionalState | NewState | ||
) |
Enables or disables the specified DMAy Channelx interrupts.
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. |
DMA_IT | specifies the DMA interrupts sources to be enabled or disabled. This parameter can be any combination of the following values:
|
NewState | new state of the specified DMA interrupts. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 326 of file stm32f10x_dma.c.
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. |
None. |
Definition at line 353 of file stm32f10x_dma.c.
void DMA_StructInit | ( | DMA_InitTypeDef * | DMA_InitStruct | ) |
Fills each DMA_InitStruct member with its default value.
DMA_InitStruct | : pointer to a DMA_InitTypeDef structure which will be initialized. |
None |
DMA_InitStruct | pointer to a DMA_InitTypeDef structure which will be initialized. |
None |
DMA_InitStruct | : pointer to a DMA_InitTypeDef structure which will be initialized. |
None |
Definition at line 403 of file stm32f4xx_dma.c.