DecodeParams.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // // ******************************************************************
  2. // // /\ /| @File DecodeParams.h
  3. // // \ V/ @Brief
  4. // // | "") @Author lijinwen, ghz005@uni-trend.com.cn
  5. // // / | @Creation 2024-5-6
  6. // // / \\ @Modified 2024-5-13
  7. // // *(__\_\
  8. // // ******************************************************************
  9. #pragma once
  10. #include "EdgePulse.h"
  11. #include "BaseEnums/ProtocolEnums.h"
  12. namespace Protocol
  13. {
  14. //顶级父类 各协议自身内部实现细节
  15. //包含协议传入参数 和 协议传入数据
  16. //到此类的数据类型 即位多个边沿脉宽序列
  17. struct DecodeParams
  18. {
  19. public:
  20. SerialProtocolType ProtocolType;
  21. //自动时钟恢复
  22. uint8_t AutomaticClockRecovery;
  23. //子协议 实现扩展
  24. void* ProtocolParamsPtr;
  25. DecodeParams();
  26. DecodeParams(const DecodeParams& decodeParams);
  27. // virtual ~DecodeParams();
  28. //
  29. // virtual void SomeVirtual()
  30. // {
  31. // }
  32. };
  33. }