Commit Graph

3 Commits

Author SHA1 Message Date
Ovizro 539ea0e170 refactor(extern_interface): implement deinitialization and improve event handling
- Add extern_interface_deinit() function for proper deinitialization
- Implement event queue with move semantics for better performance
- Update telemetry and alarm handling logic
- Refactor code to use more modern C++ features and improve readability
2024-12-02 14:48:26 +08:00
ovizro 6fb6402219 feat(event): implement new event handling mechanism
- Rename and restructure event-related functions and data structures
- Introduce unique_ptr for automatic memory management of event arguments
- Add new event types and update existing ones
- Modify telemetry and host communication threads to use new event system
- Remove redundant code and optimize data handling
2024-11-30 18:26:46 +08:00
Ovizro c9ef0edda6 refactor(extern_interface): rename and restructure telemetry data handling
- Rename ET_TYPE_TELEMETRY_REQUEST to ET_SYS_STATUS_WAKE
- Rename get_telemetry_request_data to get_telemetry_data
- Rename extern_interface_handle to handle_pack
- Move telemetry data preparation from host_com.cpp to extern_interface
- Simplify volume grade, system version, and application version handling
2024-11-30 02:44:08 +08:00