|
STM32G474xx HAL用户手册
|
USART HAL 模块的头文件。 更多...
数据结构 | |
| struct | USART_InitTypeDef |
| USART 初始化结构体定义。 更多... | |
| struct | __USART_HandleTypeDef |
| USART 句柄结构体定义。 更多... | |
宏定义 | |
| #define | HAL_USART_ERROR_NONE (0x00000000U) |
| #define | HAL_USART_ERROR_PE (0x00000001U) |
| #define | HAL_USART_ERROR_NE (0x00000002U) |
| #define | HAL_USART_ERROR_FE (0x00000004U) |
| #define | HAL_USART_ERROR_ORE (0x00000008U) |
| #define | HAL_USART_ERROR_DMA (0x00000010U) |
| #define | HAL_USART_ERROR_UDR (0x00000020U) |
| #define | HAL_USART_ERROR_INVALID_CALLBACK (0x00000040U) |
| #define | HAL_USART_ERROR_RTO (0x00000080U) |
| #define | USART_STOPBITS_0_5 USART_CR2_STOP_0 |
| #define | USART_STOPBITS_1 0x00000000U |
| #define | USART_STOPBITS_1_5 (USART_CR2_STOP_0 | USART_CR2_STOP_1) |
| #define | USART_STOPBITS_2 USART_CR2_STOP_1 |
| #define | USART_PARITY_NONE 0x00000000U |
| #define | USART_PARITY_EVEN USART_CR1_PCE |
| #define | USART_PARITY_ODD (USART_CR1_PCE | USART_CR1_PS) |
| #define | USART_MODE_RX USART_CR1_RE |
| #define | USART_MODE_TX USART_CR1_TE |
| #define | USART_MODE_TX_RX (USART_CR1_TE |USART_CR1_RE) |
| #define | USART_CLOCK_DISABLE 0x00000000U |
| #define | USART_CLOCK_ENABLE USART_CR2_CLKEN |
| #define | USART_POLARITY_LOW 0x00000000U |
| #define | USART_POLARITY_HIGH USART_CR2_CPOL |
| #define | USART_PHASE_1EDGE 0x00000000U |
| #define | USART_PHASE_2EDGE USART_CR2_CPHA |
| #define | USART_LASTBIT_DISABLE 0x00000000U |
| #define | USART_LASTBIT_ENABLE USART_CR2_LBCL |
| #define | USART_PRESCALER_DIV1 0x00000000U |
| #define | USART_PRESCALER_DIV2 0x00000001U |
| #define | USART_PRESCALER_DIV4 0x00000002U |
| #define | USART_PRESCALER_DIV6 0x00000003U |
| #define | USART_PRESCALER_DIV8 0x00000004U |
| #define | USART_PRESCALER_DIV10 0x00000005U |
| #define | USART_PRESCALER_DIV12 0x00000006U |
| #define | USART_PRESCALER_DIV16 0x00000007U |
| #define | USART_PRESCALER_DIV32 0x00000008U |
| #define | USART_PRESCALER_DIV64 0x00000009U |
| #define | USART_PRESCALER_DIV128 0x0000000AU |
| #define | USART_PRESCALER_DIV256 0x0000000BU |
| #define | USART_RXDATA_FLUSH_REQUEST USART_RQR_RXFRQ |
| #define | USART_TXDATA_FLUSH_REQUEST USART_RQR_TXFRQ |
| #define | USART_FLAG_TXFT USART_ISR_TXFT |
| #define | USART_FLAG_RXFT USART_ISR_RXFT |
| #define | USART_FLAG_RXFF USART_ISR_RXFF |
| #define | USART_FLAG_TXFE USART_ISR_TXFE |
| #define | USART_FLAG_REACK USART_ISR_REACK |
| #define | USART_FLAG_TEACK USART_ISR_TEACK |
| #define | USART_FLAG_BUSY USART_ISR_BUSY |
| #define | USART_FLAG_UDR USART_ISR_UDR |
| #define | USART_FLAG_TXE USART_ISR_TXE_TXFNF |
| #define | USART_FLAG_TXFNF USART_ISR_TXE_TXFNF |
| #define | USART_FLAG_RTOF USART_ISR_RTOF |
| #define | USART_FLAG_TC USART_ISR_TC |
| #define | USART_FLAG_RXNE USART_ISR_RXNE_RXFNE |
| #define | USART_FLAG_RXFNE USART_ISR_RXNE_RXFNE |
| #define | USART_FLAG_IDLE USART_ISR_IDLE |
| #define | USART_FLAG_ORE USART_ISR_ORE |
| #define | USART_FLAG_NE USART_ISR_NE |
| #define | USART_FLAG_FE USART_ISR_FE |
| #define | USART_FLAG_PE USART_ISR_PE |
| #define | USART_IT_PE 0x0028U |
| #define | USART_IT_TXE 0x0727U |