Functions

DMA transfers management functions. More...

Collaboration diagram for DMA transfers management functions:

Functions

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...
 

Detailed Description

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).

Function Documentation

void USART_DMACmd ( USART_TypeDef USARTx,
uint32_t  USART_DMAReq,
FunctionalState  NewState 
)

Enables or disables the USART's DMA interface.

Parameters
USARTxSelect the USART peripheral. This parameter can be one of the following values: USART1 or USART2 or USART3 or UART4.
USART_DMAReqspecifies 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
NewStatenew state of the DMA Request sources. This parameter can be: ENABLE or DISABLE.
Return values
None

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
USARTxSelect the USART peripheral. This parameter can be one of the following values: USART1 or USART2 or USART3 or UART4.
USART_DMAOnErrorspecifies 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
None

Definition at line 1640 of file stm32f30x_usart.c.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Apr 15 2021 05:07:57