DMA transfers management functions.
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).
Enables or disables the USART's DMA interface.
- Parameters
-
USARTx | Select the USART peripheral. This parameter can be one of the following values: USART1 or USART2 or USART3 or UART4. |
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
-
Definition at line 1607 of file stm32f30x_usart.c.
void USART_DMAReceptionErrorConfig |
( |
USART_TypeDef * |
USARTx, |
|
|
uint32_t |
USART_DMAOnError |
|
) |
| |
Enables or disables the USART's DMA interface when reception error occurs.
- Parameters
-
USARTx | Select the USART peripheral. This parameter can be one of the following values: USART1 or USART2 or USART3 or UART4. |
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
-
Definition at line 1640 of file stm32f30x_usart.c.