EasyManua.ls Logo

ST STM32F2

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
Loading...
HAL USART Generic Driver
UM1940
684/1371
DocID028236 Rev 2
Return values
None:
HAL_USART_GetState
Function name
HAL_USART_StateTypeDef HAL_USART_GetState
(USART_HandleTypeDef * husart)
Function description
Returns the USART state.
Parameters
husart: pointer to a USART_HandleTypeDef structure that
contains the configuration information for the specified
USART module.
Return values
HAL: state
HAL_USART_GetError
Function name
uint32_t HAL_USART_GetError (USART_HandleTypeDef *
husart)
Function description
Return the USART error code.
Parameters
husart: : pointer to a USART_HandleTypeDef structure that
contains the configuration information for the specified
USART.
Return values
USART: Error Code
48.3 USART Firmware driver defines
48.3.1 USART
USART Clock
USART_CLOCK_DISABLE
USART_CLOCK_ENABLE
USART Clock Phase
USART_PHASE_1EDGE
USART_PHASE_2EDGE
USART Clock Polarity
USART_POLARITY_LOW
USART_POLARITY_HIGH
USART Error Code
HAL_USART_ERROR_NONE
No error
HAL_USART_ERROR_PE
Parity error
HAL_USART_ERROR_NE
Noise error
HAL_USART_ERROR_FE
Frame error
HAL_USART_ERROR_ORE
Overrun error
HAL_USART_ERROR_DMA
DMA transfer error
USART Exported Macros

Table of Contents

Related product manuals