通用异步收发传输(UART)基类 / Abstract base class for Universal Asynchronous Receiver-Transmitter (UART)
More...
|
| template<typename ReadPortType = ReadPort, typename WritePortType = WritePort> |
| | UART (ReadPortType *read_port, WritePortType *write_port) |
| | UART 构造函数 / UART constructor.
|
| |
| virtual ErrorCode | SetConfig (Configuration config)=0 |
| | 设置 UART 配置 / Sets the UART configuration
|
| |
| template<typename OperationType , typename = std::enable_if_t<std::is_base_of_v< WriteOperation, std::decay_t<OperationType>>>> |
| ErrorCode | Write (ConstRawData data, OperationType &&op, bool in_isr=false) |
| |
| template<typename OperationType , typename = std::enable_if_t<std::is_base_of_v< ReadOperation, std::decay_t<OperationType>>>> |
| ErrorCode | Read (RawData data, OperationType &&op, bool in_isr=false) |
| |
通用异步收发传输(UART)基类 / Abstract base class for Universal Asynchronous Receiver-Transmitter (UART)
该类定义了 UART 设备的基本接口,包括配置和数据传输端口。 This class defines the basic interface for a UART device, including configuration and data transmission ports.
Definition at line 18 of file uart.hpp.