Martin Johnson / STM32F3-Discovery

Dependents:   Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more

Embed: (wiki syntax)

« Back to documentation index

DMA transfers management functions

DMA transfers management functions
[USART_Private_Functions]

DMA transfers management functions. More...

Functions

void USART_DMACmd (USART_TypeDef *USARTx, uint32_t USART_DMAReq, FunctionalState NewState)
 Enables or disables the USART's DMA interface.
void USART_DMAReceptionErrorConfig (USART_TypeDef *USARTx, uint32_t USART_DMAOnError)
 Enables or disables the USART's DMA interface when reception error occurs.

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:
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:
None

Definition at line 1613 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:
None

Definition at line 1646 of file stm32f30x_usart.c.