RS232DecodeResult.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // // ******************************************************************
  2. // // /\ /| @File RS232DecodeResult.h
  3. // // \ V/ @Brief
  4. // // | "") @Author lijinwen, ghz005@uni-trend.com.cn
  5. // // / | @Creation 2024-5-7
  6. // // / \\ @Modified 2024-5-13
  7. // // *(__\_\
  8. // // ******************************************************************
  9. #pragma once
  10. #include <cstdint>
  11. #include "ProtocolRS232Enums.h"
  12. #include "../DecodeResult.h"
  13. #include "RS232Packet.h"
  14. #include "RS232DecodeEvent.h"
  15. namespace Protocol::ProtocolRS232
  16. {
  17. struct RS232DecodeResultUnit : DecodeResultUnit
  18. {
  19. };
  20. struct RS232DecodeResult // : DecodeResult
  21. {
  22. // SerialProtocolType GetProtocolType() override
  23. // {
  24. // return SerialProtocolType::RS232;
  25. // }
  26. //
  27. // void ClearData();
  28. bool DecodeResultNeedUpdate = false;
  29. bool DecodeEventNeedUpdate = false;
  30. RS232DecodeResultUnit* DecodeResultUnitsPtr; //解码数据结果指针
  31. RS232DecodeEvent* DecodeEventsPtr; //解码结果事件指针
  32. uint64_t DecodeResultCount; //结果数量
  33. uint64_t DecodeEventCount; //事件数量
  34. };
  35. }