// // ****************************************************************** // // /\ /| @File RS232DecodeResult.h // // \ V/ @Brief // // | "") @Author lijinwen, ghz005@uni-trend.com.cn // // / | @Creation 2024-5-7 // // / \\ @Modified 2024-5-13 // // *(__\_\ // // ****************************************************************** #pragma once #include #include "ProtocolRS232Enums.h" #include "../DecodeResult.h" #include "RS232Packet.h" #include "RS232DecodeEvent.h" namespace Protocol::ProtocolRS232 { struct RS232DecodeResultUnit : DecodeResultUnit { }; struct RS232DecodeResult // : DecodeResult { // SerialProtocolType GetProtocolType() override // { // return SerialProtocolType::RS232; // } // // void ClearData(); bool DecodeResultNeedUpdate = false; bool DecodeEventNeedUpdate = false; RS232DecodeResultUnit* DecodeResultUnitsPtr; //解码数据结果指针 RS232DecodeEvent* DecodeEventsPtr; //解码结果事件指针 uint64_t DecodeResultCount; //结果数量 uint64_t DecodeEventCount; //事件数量 }; }