rs232_decode_result.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // // ******************************************************************
  2. // // /\ /| @File rs232_decode_result.h
  3. // // \ V/ @Brief
  4. // // | "") @Author lijinwen, ghz005@uni-trend.com.cn
  5. // // / | @Creation 2024-06-26
  6. // // / \\ @Modified 2024-07-16
  7. // // *(__\_\
  8. // // ******************************************************************
  9. #pragma once
  10. #include <cstdint>
  11. #include "protocol_rs232_enums.h"
  12. #include "../decode_result.h"
  13. #include "rs232_packet.h"
  14. #include "rs232_decode_event.h"
  15. namespace Protocol
  16. {
  17. struct Rs232DecodeResultCell : DecodeResultCell
  18. {
  19. };
  20. struct Rs232DecodeResult // : DecodeResult
  21. {
  22. // SerialProtocolType GetProtocolType() override
  23. // {
  24. // return SerialProtocolType::RS232;
  25. // }
  26. //
  27. // void ClearData();
  28. bool decode_result_need_update = false;
  29. bool decode_event_need_update = false;
  30. Rs232DecodeResultCell* decode_result_cells_ptr; //解码数据结果指针
  31. Rs232DecodeEvent* decode_events_ptr; //解码结果事件指针
  32. uint64_t decode_result_count; //结果数量
  33. uint64_t decode_event_count; //事件数量
  34. };
  35. }