DecodeResult.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // // ******************************************************************
  2. // // /\ /| @File DecodeResult.h
  3. // // \ V/ @Brief
  4. // // | "") @Author lijinwen, ghz005@uni-trend.com.cn
  5. // // / | @Creation 2024-05-16
  6. // // / \\ @Modified 2024-05-16
  7. // // *(__\_\
  8. // // ******************************************************************
  9. #pragma once
  10. #include <cstdint>
  11. #include <vector>
  12. //#include "Channels.h"
  13. #include "BaseEnums/ProtocolEnums.h"
  14. namespace Protocol
  15. {
  16. struct DecodeResultCell
  17. {
  18. int64_t StartIndex = -1; //结果时域起始帧
  19. int64_t Length = -1; //结果时域帧长度
  20. uint8_t* Data = {}; //结果数据数组
  21. int64_t DataCount; //数据数组长度
  22. bool IsEventInfo = false; //是否是事件帧
  23. };
  24. struct DecodeResult
  25. {
  26. //协议类型
  27. //virtual SerialProtocolType GetProtocolType();
  28. SerialProtocolType ProtocolType;
  29. //结果有效
  30. bool ResultValid = false;
  31. //结果数据 子协议实现扩展
  32. void* ResultDataPtr;
  33. };
  34. }