mirror of
https://gitee.com/jiuyilian/embedded-framework.git
synced 2025-01-06 10:16:51 -05:00
update utils/UartDevice/readme.md.
Signed-off-by: ssslleep <2720057338@qq.com>
This commit is contained in:
parent
62ba1ec99d
commit
a795e42b12
|
@ -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设备。
|
||||
* **UartDevice.h**:为上层应用提供了封装好的函数接口,用于与uart硬件设备进行交互。
|
||||
* **UartDevice.cpp**:UartDevice.h中函数接口的具体定义和封装。
|
||||
* **UartDeviceImpl.cpp/UartDeviceImpl.h**:对uart硬件设备更底层更具体的一些操作,这里面定义和声明的函数会提供给UartDevice.cpp做进一步的封装。
|
||||
|
|
Loading…
Reference in New Issue
Block a user