Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more
Halfduplex mode function
[USART_Private_Functions]
  Half-duplex mode function. More...
| Functions | |
| void | USART_HalfDuplexCmd (USART_TypeDef *USARTx, FunctionalState NewState) | 
| Enables or disables the USART's Half Duplex communication. | |
Detailed Description
Half-duplex mode function.
 ===============================================================================
                   ##### Half-duplex mode function #####
 ===============================================================================
    [..] This subsection provides a set of functions allowing to manage the USART
         Half-duplex communication.
    [..] The USART can be configured to follow a single-wire half-duplex protocol 
         where the TX and RX lines are internally connected.
    [..] USART Half duplex communication is possible through the following procedure:
         (#) Program the Baud rate, Word length, Stop bits, Parity, Mode transmitter 
             or Mode receiver and hardware flow control values using the USART_Init()
            function.
         (#) Configures the USART address using the USART_SetAddress() function.
         (#) Enable the half duplex mode using USART_HalfDuplexCmd() function.
         (#) Enable the USART using the USART_Cmd() function.
         [..]
         (@) The RX pin is no longer used.
         (@) In Half-duplex mode the following bits must be kept cleared:
             (+@) LINEN and CLKEN bits in the USART_CR2 register.
             (+@) SCEN and IREN bits in the USART_CR3 register.
Function Documentation
| void USART_HalfDuplexCmd | ( | USART_TypeDef * | USARTx, | 
| FunctionalState | NewState | ||
| ) | 
Enables or disables the USART's Half Duplex communication.
- 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 USART Communication. This parameter can be: ENABLE or DISABLE. 
- Return values:
- 
  None 
Definition at line 1195 of file stm32f30x_usart.c.
Generated on Tue Jul 12 2022 17:34:46 by
 1.7.2
 1.7.2