Universal synchronous asynchronous receiver
transmitter (USART)
23.2.14.12 USART_InvPinCmd
void USART_InvPinCmd ( USART_TypeDef * USARTx,
uint32_t USART_InvPin, FunctionalState NewState)
Enables or disables the Pin(s) active level inversion.
ï‚· USARTx : Select the USART peripheral. This parameter can
be one of the following values: USART1 or USART2 or
USART3 or UART4 or UART5.
ï‚· USART_InvPin : specifies the USART pin(s) to invert. This
parameter can be any combination of the following values:
ï€ USART_InvPin_Tx : USART Tx pin active level
inversion.
ï€ USART_InvPin_Rx : USART Rx pin active level
inversion.
ï‚· NewState : new active level status for the USART pin(s).
This parameter can be: ENABLE or DISABLE.
ï€ ENABLE : pin(s) signal values are inverted (Vdd =0,
Gnd =1).
ï€ DISABLE : pin(s) signal works using the standard logic
levels (Vdd =1, Gnd =0).
ï‚· This function has to be called before calling USART_Cmd()
function.
23.2.14.13 USART_SWAPPinCmd
void USART_SWAPPinCmd ( USART_TypeDef * USARTx,
FunctionalState NewState)
Enables or disables the swap Tx/Rx pins.
ï‚· 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 USARTx TX/RX pins pinout.
This parameter can be: ENABLE or DISABLE.
ï€ ENABLE : The TX and RX pins functions are swapped.
ï€ DISABLE : TX/RX pins are used as defined in standard
pinout