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
AutoBaudRate functions
[USART_Private_Functions]
AutoBaudRate functions. More...
Functions | |
void | USART_AutoBaudRateCmd (USART_TypeDef *USARTx, FunctionalState NewState) |
Enables or disables the Auto Baud Rate. | |
void | USART_AutoBaudRateConfig (USART_TypeDef *USARTx, uint32_t USART_AutoBaudRate) |
Selects the USART auto baud rate method. |
Detailed Description
AutoBaudRate functions.
=============================================================================== ##### AutoBaudRate functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to manage the AutoBaudRate detections. [..] Before Enabling AutoBaudRate detection using USART_AutoBaudRateCmd () The character patterns used to calculate baudrate must be chosen by calling USART_AutoBaudRateConfig() function. These function take as parameter : (#)USART_AutoBaudRate_StartBit : any character starting with a bit 1. (#)USART_AutoBaudRate_FallingEdge : any character starting with a 10xx bit pattern. [..] At any later time, another request for AutoBaudRate detection can be performed using USART_RequestCmd() function. [..] The AutoBaudRate detection is monitored by the status of ABRF flag which indicate that the AutoBaudRate detection is completed. In addition to ABRF flag, the ABRE flag indicate that this procedure is completed without success. USART_GetFlagStatus () function should be used to monitor the status of these flags.
Function Documentation
void USART_AutoBaudRateCmd | ( | USART_TypeDef * | USARTx, |
FunctionalState | NewState | ||
) |
Enables or disables the Auto Baud Rate.
- 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 auto baud rate. This parameter can be: ENABLE or DISABLE.
- Return values:
-
None
Definition at line 844 of file stm32f30x_usart.c.
void USART_AutoBaudRateConfig | ( | USART_TypeDef * | USARTx, |
uint32_t | USART_AutoBaudRate | ||
) |
Selects the USART auto baud rate method.
- 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_AutoBaudRate,: specifies the selected USART auto baud rate method. This parameter can be one of the following values: - USART_AutoBaudRate_StartBit: Start Bit duration measurement.
- USART_AutoBaudRate_FallingEdge: Falling edge to falling edge measurement.
- USART_AutoBaudRate_0x7FFrame: 0x7F frame.
- USART_AutoBaudRate_0x55Frame: 0x55 frame.
- Note:
- This function has to be called before calling USART_Cmd() function.
- Return values:
-
None
Definition at line 878 of file stm32f30x_usart.c.
Generated on Tue Jul 12 2022 17:34:46 by
