embedded-framework/utils
2024-06-20 12:25:24 +08:00
..
Config Improve:include cleaner. 2024-06-20 12:25:24 +08:00
ConfigBase Improve:include cleaner. 2024-06-20 12:25:24 +08:00
FxHttpServer Improve:include cleaner. 2024-06-20 12:25:24 +08:00
KeyControl Improve:include cleaner. 2024-06-20 12:25:24 +08:00
LedControl Improve:include cleaner. 2024-06-20 12:25:24 +08:00
LinuxApi Improve:include cleaner. 2024-06-20 12:25:24 +08:00
Log Improve:include cleaner. 2024-06-20 12:25:24 +08:00
McuProtocol Improve:include cleaner. 2024-06-20 12:25:24 +08:00
MediaAdapter Improve:include cleaner. 2024-06-20 12:25:24 +08:00
MediaBase Improve:include cleaner. 2024-06-20 12:25:24 +08:00
ModBusCRC16 Improve:include cleaner. 2024-06-20 12:25:24 +08:00
MultiProcess Improve:include cleaner. 2024-06-20 12:25:24 +08:00
Servers Improve:include cleaner. 2024-06-20 12:25:24 +08:00
SharedData Improve:include cleaner. 2024-06-20 12:25:24 +08:00
StatusCode Improve:include cleaner. 2024-06-20 12:25:24 +08:00
TcpModule Improve:include cleaner. 2024-06-20 12:25:24 +08:00
UartDevice Improve:include cleaner. 2024-06-20 12:25:24 +08:00
UpgradeBase Improve:include cleaner. 2024-06-20 12:25:24 +08:00
UpgradeTool Improve:include cleaner. 2024-06-20 12:25:24 +08:00
WebServer Improve:include cleaner. 2024-06-20 12:25:24 +08:00
CMakeLists.txt Improve:include cleaner. 2024-06-20 12:25:24 +08:00
README.md Improve:include cleaner. 2024-06-20 12:25:24 +08:00

1. utils工具类库

  工具类库,常用的功能单一的通用的功能独立模块或者半功能模块。

1.1. 完整功能工具类库

  暴露头文件中的接口提供且仅提供了完整的独立功能的接口,使用者可直接使用完整的工具功能。往往暴露的头文件不会存在多余的用户数据接口和结构。

1.2. 半功能工具类库

  暴露头文件中的接口无法完成独立功能,往往带着部分未实现的虚函数,需要使用者重载才能实现完整功能。

例如McuProtocol类库需要与读写数据模块组合封装成新类才能实现一个独立功能的模块。McuProtocol模块只完成了协议数据的组包和协议数据包的解析功能需要与协议的读取/读取方式的模块组合封装成一个完整的功能模块。这样设计的初衷是让协议的处理和协议的收发解耦合,可以快速更换协议版本或者替换数据收发功能模块。