STM32F439xx HAL User Manual
|
Initialization and Configuration functions. More...
Functions | |
HAL_StatusTypeDef | HAL_USART_Init (USART_HandleTypeDef *husart) |
Initializes the USART mode according to the specified parameters in the USART_InitTypeDef and create the associated handle. | |
HAL_StatusTypeDef | HAL_USART_DeInit (USART_HandleTypeDef *husart) |
DeInitializes the USART peripheral. | |
__weak void | HAL_USART_MspInit (USART_HandleTypeDef *husart) |
USART MSP Init. | |
__weak void | HAL_USART_MspDeInit (USART_HandleTypeDef *husart) |
USART MSP DeInit. |
Initialization and Configuration functions.
============================================================================== ##### Initialization and Configuration functions ##### ============================================================================== [..] This subsection provides a set of functions allowing to initialize the USART in asynchronous and in synchronous modes. (+) For the asynchronous mode only these parameters can be configured: (++) Baud Rate (++) Word Length (++) Stop Bit (++) Parity: If the parity is enabled, then the MSB bit of the data written in the data register is transmitted but is changed by the parity bit. Depending on the frame length defined by the M bit (8-bits or 9-bits), please refer to Reference manual for possible USART frame formats. (++) USART polarity (++) USART phase (++) USART LastBit (++) Receiver/transmitter modes [..] The HAL_USART_Init() function follows the USART synchronous configuration procedure (details for the procedure are available in reference manual (RM0329)).
HAL_StatusTypeDef HAL_USART_DeInit | ( | USART_HandleTypeDef * | husart | ) |
DeInitializes the USART peripheral.
husart | pointer to a USART_HandleTypeDef structure that contains the configuration information for the specified USART module. |
HAL | status |
Definition at line 272 of file stm32f4xx_hal_usart.c.
References __HAL_USART_DISABLE, assert_param, USART_HandleTypeDef::ErrorCode, HAL_USART_ERROR_NONE, HAL_USART_MspDeInit(), HAL_USART_STATE_BUSY, HAL_USART_STATE_RESET, USART_HandleTypeDef::Instance, and USART_HandleTypeDef::State.
HAL_StatusTypeDef HAL_USART_Init | ( | USART_HandleTypeDef * | husart | ) |
Initializes the USART mode according to the specified parameters in the USART_InitTypeDef and create the associated handle.
husart | pointer to a USART_HandleTypeDef structure that contains the configuration information for the specified USART module. |
HAL | status |
Definition at line 226 of file stm32f4xx_hal_usart.c.
References __HAL_USART_ENABLE, assert_param, USART_HandleTypeDef::ErrorCode, HAL_USART_ERROR_NONE, HAL_USART_MspInit(), HAL_USART_STATE_BUSY, HAL_USART_STATE_READY, HAL_USART_STATE_RESET, USART_HandleTypeDef::Instance, USART_HandleTypeDef::Lock, USART_HandleTypeDef::State, and USART_SetConfig().
void HAL_USART_MspDeInit | ( | USART_HandleTypeDef * | husart | ) |
USART MSP DeInit.
husart | pointer to a USART_HandleTypeDef structure that contains the configuration information for the specified USART module. |
None |
Definition at line 321 of file stm32f4xx_hal_usart.c.
Referenced by HAL_USART_DeInit().
void HAL_USART_MspInit | ( | USART_HandleTypeDef * | husart | ) |
USART MSP Init.
husart | pointer to a USART_HandleTypeDef structure that contains the configuration information for the specified USART module. |
None |
Definition at line 306 of file stm32f4xx_hal_usart.c.
Referenced by HAL_USART_Init().