Initialization And Configuration Functions - ST STM32F31xx User Manual

Table of Contents

Advertisement

Universal synchronous asynchronous receiver
transmitter (USART)
USART_IrDAConfig()
USART_IrDACmd()
23.2.14

Initialization and Configuration functions

23.2.14.1 USART_DeInit
Function Name
Function Description
Parameters
Return values
Notes
23.2.14.2 USART_Init
Function Name
Function Description
Parameters
Return values
544/584
The receiver set up time should be managed by software. The IrDA physical layer
specification specifies a minimum of 10 ms delay between transmission and
reception (IrDA is a half duplex protocol).
In IrDA mode, the following bits must be kept cleared:
LINEN, STOP and CLKEN bits in the USART_CR2 register.
SCEN and HDSEL bits in the USART_CR3 register.
void USART_DeInit (
Deinitializes the USARTx peripheral registers to their default reset
values.
USARTx : Select the USART peripheral. This parameter can
be one of the following values: USART1 or USART2 or
USART3 or UART4 or UART5.
None.
None.
void USART_Init (
USART_InitTypeDef *
Initializes the USARTx peripheral according to the specified
parameters in the USART_InitStruct .
USARTx : Select the USART peripheral. This parameter can
be one of the following values: USART1 or USART2 or
USART3 or UART4 or UART5.
USART_InitStruct : pointer to a USART_InitTypeDef
structure that contains the configuration information for the
specified USART peripheral.
None.
DocID023800 Rev 1
USART_TypeDef *
USART_TypeDef *
USARTx,
USART_InitStruct)
UM1581
USARTx)

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F31xx and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Stm32f30xx

Table of Contents