STM32G474xx HAL User Manual
宏定义
UART错误定义
UART导出的常量

宏定义

#define HAL_UART_ERROR_NONE   (0x00000000U)
#define HAL_UART_ERROR_PE   (0x00000001U)
#define HAL_UART_ERROR_NE   (0x00000002U)
#define HAL_UART_ERROR_FE   (0x00000004U)
#define HAL_UART_ERROR_ORE   (0x00000008U)
#define HAL_UART_ERROR_DMA   (0x00000010U)
#define HAL_UART_ERROR_RTO   (0x00000020U)
#define HAL_UART_ERROR_INVALID_CALLBACK   (0x00000040U)

宏定义文档

#define HAL_UART_ERROR_DMA   (0x00000010U)
#define HAL_UART_ERROR_FE   (0x00000004U)

帧错误

Definition at line 360 of file stm32g4xx_hal_uart.h.

Referenced by HAL_UART_IRQHandler(), UART_RxISR_16BIT_FIFOEN(), and UART_RxISR_8BIT_FIFOEN().

#define HAL_UART_ERROR_INVALID_CALLBACK   (0x00000040U)
#define HAL_UART_ERROR_NE   (0x00000002U)

噪声错误

Definition at line 359 of file stm32g4xx_hal_uart.h.

Referenced by HAL_UART_IRQHandler(), UART_RxISR_16BIT_FIFOEN(), and UART_RxISR_8BIT_FIFOEN().

#define HAL_UART_ERROR_NONE   (0x00000000U)
#define HAL_UART_ERROR_ORE   (0x00000008U)

溢出错误

Definition at line 361 of file stm32g4xx_hal_uart.h.

Referenced by HAL_UART_IRQHandler(), and UART_WaitOnFlagUntilTimeout().

#define HAL_UART_ERROR_PE   (0x00000001U)

奇偶校验错误

Definition at line 358 of file stm32g4xx_hal_uart.h.

Referenced by HAL_UART_IRQHandler(), UART_RxISR_16BIT_FIFOEN(), and UART_RxISR_8BIT_FIFOEN().

#define HAL_UART_ERROR_RTO   (0x00000020U)

接收器超时错误

Definition at line 363 of file stm32g4xx_hal_uart.h.

Referenced by HAL_UART_IRQHandler(), and UART_WaitOnFlagUntilTimeout().