DMA transfers management functions.
More...
|
void | USART_DMACmd (USART_TypeDef *USARTx, uint32_t USART_DMAReq, FunctionalState NewState) |
| Enables or disables the USART's DMA interface. More...
|
|
void | USART_DMAReceptionErrorConfig (USART_TypeDef *USARTx, uint32_t USART_DMAOnError) |
| Enables or disables the USART's DMA interface when reception error occurs. More...
|
|
DMA transfers management functions.
===============================================================================
##### DMA transfers management functions #####
===============================================================================
[..] This section provides two functions that can be used only in DMA mode.
[..] In DMA Mode, the USART communication can be managed by 2 DMA Channel
requests:
(#) USART_DMAReq_Tx: specifies the Tx buffer DMA transfer request.
(#) USART_DMAReq_Rx: specifies the Rx buffer DMA transfer request.
[..] In this Mode it is advised to use the following function:
(+) void USART_DMACmd(USART_TypeDef* USARTx, uint16_t USART_DMAReq,
FunctionalState NewState).
void USART_DMACmd |
( |
USART_TypeDef * |
USARTx, |
|
|
uint32_t |
USART_DMAReq, |
|
|
FunctionalState |
NewState |
|
) |
| |
Enables or disables the USART's DMA interface.
- Parameters
-
USARTx,: | where x can be 1 or 2 to select the USART peripheral. |
USART_DMAReq,: | specifies the DMA request. This parameter can be any combination of the following values:
- USART_DMAReq_Tx: USART DMA transmit request
- USART_DMAReq_Rx: USART DMA receive request
|
NewState,: | new state of the DMA Request sources. This parameter can be: ENABLE or DISABLE. |
- Return values
-
void USART_DMAReceptionErrorConfig |
( |
USART_TypeDef * |
USARTx, |
|
|
uint32_t |
USART_DMAOnError |
|
) |
| |
Enables or disables the USART's DMA interface when reception error occurs.
- Parameters
-
USARTx,: | where x can be 1 or 2 to select the USART peripheral. |
USART_DMAOnError,: | specifies the DMA status in case of reception error. This parameter can be any combination of the following values:
- USART_DMAOnError_Enable: DMA receive request enabled when the USART DMA reception error is asserted.
- USART_DMAOnError_Disable: DMA receive request disabled when the USART DMA reception error is asserted.
|
- Return values
-