STM32F1 Standard Peripheral bibliotheek
1.0
ST Microelectronics bibliotheek documentatie voor de STM32F1 Standard Peripheral Library
|
Functions | |
void | DMA_DeInit (DMA_Channel_TypeDef *DMAy_Channelx) |
Deinitializes the DMAy Channelx registers to their default reset values. 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_StructInit (DMA_InitTypeDef *DMA_InitStruct) |
Fills each DMA_InitStruct member with its default value. More... | |
void | DMA_Cmd (DMA_Channel_TypeDef *DMAy_Channelx, FunctionalState NewState) |
Enables or disables the specified DMAy Channelx. More... | |
void | DMA_ITConfig (DMA_Channel_TypeDef *DMAy_Channelx, uint32_t DMA_IT, FunctionalState NewState) |
Enables or disables the specified DMAy Channelx interrupts. 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 DMA_FLAG) |
Checks whether the specified DMAy Channelx flag is set or not. More... | |
void | DMA_ClearFlag (uint32_t DMA_FLAG) |
Clears the DMAy Channelx's pending flags. More... | |
ITStatus | DMA_GetITStatus (uint32_t DMA_IT) |
Checks whether the specified DMAy Channelx interrupt has occurred or not. More... | |
void | DMA_ClearITPendingBit (uint32_t DMA_IT) |
Clears the DMAy Channelx’s interrupt pending bits. More... | |
void DMA_ClearFlag | ( | uint32_t | DMA_FLAG | ) |
Clears the DMAy Channelx's pending flags.
DMA_FLAG,: | specifies the flag to clear. This parameter can be any combination (for the same DMA) of the following values:
|
None |
void DMA_ClearITPendingBit | ( | uint32_t | DMA_IT | ) |
Clears the DMAy Channelx’s interrupt pending bits.
DMA_IT,: | specifies the DMA interrupt pending bit to clear. This parameter can be any combination (for the same DMA) of the following values:
|
None |
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 |
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 |
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. |
FlagStatus DMA_GetFlagStatus | ( | uint32_t | DMA_FLAG | ) |
Checks whether the specified DMAy Channelx flag is set or not.
DMA_FLAG,: | specifies the flag to check. This parameter can be one of the following values:
|
The | new state of DMA_FLAG (SET or RESET). |
ITStatus DMA_GetITStatus | ( | uint32_t | DMA_IT | ) |
Checks whether the specified DMAy Channelx interrupt has occurred or not.
DMA_IT,: | specifies the DMA interrupt source to check. This parameter can be one of the following values:
|
The | new state of DMA_IT (SET or RESET). |
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 |
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 |
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 |