EasyManua.ls Logo

ST STM32F31xx

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
UM1581
Universal synchronous asynchronous receiver
transmitter (USART)
DocID023800 Rev 1
549/584
23.2.14.12 USART_InvPinCmd
Function Name
void USART_InvPinCmd ( USART_TypeDef * USARTx,
uint32_t USART_InvPin, FunctionalState NewState)
Function Description
Enables or disables the Pin(s) active level inversion.
Parameters
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).
Return values
None.
Notes
This function has to be called before calling USART_Cmd()
function.
23.2.14.13 USART_SWAPPinCmd
Function Name
void USART_SWAPPinCmd ( USART_TypeDef * USARTx,
FunctionalState NewState)
Function Description
Enables or disables the swap Tx/Rx pins.
Parameters
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
Return values
None.

Table of Contents

Related product manuals