EasyManuals Logo

ST STM32F2 User Manual

ST STM32F2
1371 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 #677 background imageLoading...
Page #677 background image
UM1940
HAL USART Generic Driver
DocID028236 Rev 2
677/1371
48.2.4 Peripheral State and Errors functions
This subsection provides a set of functions allowing to return the State of USART
communication process, return Peripheral Errors occurred during communication process
HAL_USART_GetState() API can be helpful to check in run-time the state of the
USART peripheral.
HAL_USART_GetError() check in run-time errors that could be occurred during
communication.
This section contains the following APIs:
HAL_USART_GetState()
HAL_USART_GetError()
48.2.5 Detailed description of functions
HAL_USART_Init
Function name
HAL_StatusTypeDef HAL_USART_Init
(USART_HandleTypeDef * husart)
Function description
Initializes the USART mode according to the specified parameters
in the USART_InitTypeDef and create the associated handle.
Parameters
husart: pointer to a USART_HandleTypeDef structure that
contains the configuration information for the specified
USART module.
Return values
HAL: status
HAL_USART_DeInit
Function name
HAL_StatusTypeDef HAL_USART_DeInit
(USART_HandleTypeDef * husart)
Function description
DeInitializes the USART peripheral.
Parameters
husart: pointer to a USART_HandleTypeDef structure that
contains the configuration information for the specified
USART module.
Return values
HAL: status
HAL_USART_MspInit
Function name
void HAL_USART_MspInit (USART_HandleTypeDef * husart)
Function description
USART MSP Init.
Parameters
husart: pointer to a USART_HandleTypeDef structure that
contains the configuration information for the specified
USART module.
Return values
None:
HAL_USART_MspDeInit
Function name
void HAL_USART_MspDeInit (USART_HandleTypeDef *
husart)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32F2 Specifications

General IconGeneral
BrandST
ModelSTM32F2
CategoryMicrocontrollers
LanguageEnglish

Related product manuals