5#ifdef HAL_UART_MODULE_ENABLED
11#include "double_buffer.hpp"
12#include "libxr_def.hpp"
13#include "libxr_rw.hpp"
109stm32_uart_id_t STM32_UART_GetID(USART_TypeDef *addr);
121 uint32_t tx_queue_size = 5);
132 size_t last_rx_pos_ = 0;
134 UART_HandleTypeDef *uart_handle_;
136 stm32_uart_id_t id_ = STM32_UART_ID_ERROR;
138 static STM32UART *map[STM32_UART_NUMBER];
双缓冲区管理类 / Double buffer manager class
原始数据封装类。 A class for encapsulating raw data.
ReadPort class for handling read operations.
ErrorCode SetConfig(UART::Configuration config)
设置 UART 配置 / Sets the UART configuration
通用异步收发传输(UART)基类 / Abstract base class for Universal Asynchronous Receiver-Transmitter (UART)
WritePort class for handling write operations.
ErrorCode(* ReadFun)(ReadPort &port)
Function pointer type for read operations.
ErrorCode(* WriteFun)(WritePort &port)
Function pointer type for write operations.
UART 配置结构体 / UART configuration structure.