EasyManuals Logo

ST STM32F31xx User Manual

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
Page #549 background imageLoading...
Page #549 background image
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

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32F31xx Specifications

General IconGeneral
BrandST
ModelSTM32F31xx
CategoryMicrocontrollers
LanguageEnglish

Related product manuals