Hal_Halfduplex_Enablereceiver; Hal_Uart_Getstate; Hal_Uart_Geterror; Uart Firmware Driver Defines - ST STM32F2 User Manual

Description of stm32f2 hal and low layer drivers
Hide thumbs Also See for STM32F2:
Table of Contents

Advertisement

UM1940
Return values

HAL_HalfDuplex_EnableReceiver

Function name
Function description
Parameters
Return values

HAL_UART_GetState

Function name
Function description
Parameters
Return values

HAL_UART_GetError

Function name
Function description
Parameters
Return values
47.3

UART Firmware driver defines

47.3.1
UART
UART Error Code
HAL_UART_ERROR_NONE
HAL_UART_ERROR_PE
HAL_UART_ERROR_NE
HAL_UART_ERROR_FE
HAL_UART_ERROR_ORE
HAL_UART_ERROR_DMA
UART Exported Macros
__HAL_UART_RESET_HANDLE_STATE
HAL: status
HAL_StatusTypeDef HAL_HalfDuplex_EnableReceiver
(UART_HandleTypeDef * huart)
Enables the UART receiver and disables the UART transmitter.
huart: pointer to a UART_HandleTypeDef structure that
contains the configuration information for the specified UART
module.
HAL: status
HAL_UART_StateTypeDef HAL_UART_GetState
(UART_HandleTypeDef * huart)
Returns the UART state.
huart: pointer to a UART_HandleTypeDef structure that
contains the configuration information for the specified UART
module.
HAL: state
uint32_t HAL_UART_GetError (UART_HandleTypeDef * huart)
Return the UART error code.
huart: : pointer to a UART_HandleTypeDef structure that
contains the configuration information for the specified UART.
UART: Error Code
No error
Parity error
Noise error
Frame error
Overrun error
DMA transfer error
DocID028236 Rev 2
HAL UART Generic Driver
Description:
Reset UART handle gstate &
661/1371

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Table of Contents

Save PDF