STM32F0 Standard Peripheral bibliotheek  1.0
ST Microelectronics standard peripheral bibliotheek documentatie voor de STM32F0 familie
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
AutoBaudRate functions

AutoBaudRate functions. More...

Functions

void USART_AutoBaudRateCmd (USART_TypeDef *USARTx, FunctionalState NewState)
 Enables or disables the Auto Baud Rate. More...
 
void USART_AutoBaudRateConfig (USART_TypeDef *USARTx, uint32_t USART_AutoBaudRate)
 Selects the USART auto baud rate method. More...
 

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,:where x can be 1 to select the USART peripheral.
NewState,:new state of the USARTx auto baud rate. This parameter can be: ENABLE or DISABLE.
Return values
None
void USART_AutoBaudRateConfig ( USART_TypeDef *  USARTx,
uint32_t  USART_AutoBaudRate 
)

Selects the USART auto baud rate method.

Parameters
USARTx,:where x can be 1 to select the USART peripheral.
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.
Note
This function has to be called before calling USART_Cmd() function.
Return values
None