embedded-framework/utils
2024-03-03 09:58:06 -08:00
..
Config Fixed:Resolve CMakeLists warning. 2024-02-15 19:39:13 -08:00
FxHttpServer Backup:AppManager module. 2024-02-28 22:08:58 -08:00
KeyControl Improve:KeyControl test tool. 2024-02-16 21:44:01 -08:00
LedControl Add:LedManager code. 2024-02-21 02:06:27 -08:00
LinuxApi Fixed:Resolve CMakeLists warning. 2024-02-15 19:39:13 -08:00
Log Fixed:Resolve CMakeLists warning. 2024-02-15 19:39:13 -08:00
McuProtocol Add:MediaManager module. 2024-02-24 00:29:16 -08:00
MediaAdapter Add:FxHttpServer module. 2024-02-27 22:08:38 -08:00
ModBusCRC16 Fixed:Resolve CMakeLists warning. 2024-02-15 19:39:13 -08:00
MultiProcess Fixed:Resolve CMakeLists warning. 2024-02-15 19:39:13 -08:00
Servers Improve:WebServer http post file. 2024-03-01 22:41:22 -08:00
SharedData Fixed:Resolve CMakeLists warning. 2024-02-15 19:39:13 -08:00
StatusCode Improve:DeviceManager test tool. 2024-02-17 19:44:55 -08:00
UartDevice Add:MediaManager module. 2024-02-24 00:29:16 -08:00
WebServer Add:AppManager test code. 2024-03-03 09:58:06 -08:00
CMakeLists.txt Add:Servers module. 2024-02-28 03:20:00 -08:00
README.md Key and Led control utils module. 2024-02-14 11:27:43 -08:00

1. utils工具类库

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

1.1. 完整功能工具类库

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

1.2. 半功能工具类库

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

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