Universal synchronous asynchronous receiver
transmitter (USART)
Configures the USART's IrDA interface.
ï‚· USARTx : Select the USART peripheral. This parameter can
be one of the following values: USART1 or USART2 or
USART3 or UART4 or UART5.
ï‚· USART_IrDAMode : specifies the IrDA mode. This
parameter can be one of the following values:
ï€ USART_IrDAMode_LowPower :
ï€ USART_IrDAMode_Normal :
23.2.25.2 USART_IrDACmd
void USART_IrDACmd ( USART_TypeDef * USARTx,
FunctionalState NewState)
Enables or disables the USART's IrDA interface.
ï‚· USARTx : Select the USART peripheral. This parameter can
be one of the following values: USART1 or USART2 or
USART3 or UART4 or UART5.
ï‚· NewState : new state of the IrDA mode. This parameter can
be: ENABLE or DISABLE.
23.3 USART Firmware driver defines
23.3.1 USART
USART
USART_Address_Detection
ï‚· #define: USART_AddressLength_4b ((uint32_t)0x00000000)
ï‚· #define: USART_AddressLength_7b USART_CR2_ADDM7