From a795e42b1291c256038aaf4c635c6a7f9363ff16 Mon Sep 17 00:00:00 2001 From: ssslleep <2720057338@qq.com> Date: Sat, 27 Jul 2024 09:33:16 +0000 Subject: [PATCH] update utils/UartDevice/readme.md. Signed-off-by: ssslleep <2720057338@qq.com> --- utils/UartDevice/readme.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/utils/UartDevice/readme.md b/utils/UartDevice/readme.md index 2480b329..09c8174e 100644 --- a/utils/UartDevice/readme.md +++ b/utils/UartDevice/readme.md @@ -4,13 +4,11 @@ # 涉及的知识 * uart通信协议 * 多线程 -* 系统调用函数的使用 * C++类和对象 * 函数指针 # 各文件的作用 -* **UartDevice.h**:定义了一个名为uart_info的结构体存储UART设备的配置信息,定义了用于UART通信的函数接口,这些函数通常与UART硬件的底层实现相对应。 -* **UartDevice.cpp**:提供了一个跨平台的UART设备接口模块,使得上层应用可以通过统一的接口来操作不同的UART硬件设备。 -* **UartDeviceImpl.cpp**:提供了UART 设备操作接口,允许用户打开、发送和接收数据到 UART 设备,实现了 UART 设备的配置、数据发送和接收等功能。 -* **UartDeviceImpl.h**:定义了一个用于UART设备操作的类 UartDeviceImpl 和相关的结构体和函数,提供了一种通过接口和智能指针封装具体实现的方式来管理UART设备。 \ No newline at end of file +* **UartDevice.h**:为上层应用提供了封装好的函数接口,用于与uart硬件设备进行交互。 +* **UartDevice.cpp**:UartDevice.h中函数接口的具体定义和封装。 +* **UartDeviceImpl.cpp/UartDeviceImpl.h**:对uart硬件设备更底层更具体的一些操作,这里面定义和声明的函数会提供给UartDevice.cpp做进一步的封装。