QuantizeParams.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // // ******************************************************************
  2. // // /\ /| @File QuantizeParams.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 <memory>
  11. //#include <string>
  12. #include <windows.h>
  13. #include "EdgePulse.h"
  14. #include "BaseEnums/QuantizedEnums.h"
  15. namespace Protocol
  16. {
  17. class QuantizeParams
  18. {
  19. public:
  20. //电平数量 目前第一步支持2、3电平2种
  21. QuantizedLevelOption LevelOption;
  22. // 电平阈值数组,用于存储多电平量化的阈值。
  23. // 数组的大小取决于所需的电平数量,例如,如果需要4个电平,则需要3个阈值。
  24. //单位 V
  25. std::vector<double> LevelThresholdsByV;
  26. // 量化位数
  27. int BitDepth;
  28. // 原始数据对象
  29. std::unique_ptr<byte> OriginalData;
  30. QuantizeParams();
  31. //拷贝构造函数 ljw 24.5
  32. QuantizeParams(const QuantizeParams& quantizeParams);
  33. ~QuantizeParams();
  34. };
  35. }