RS232Decode.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // // ******************************************************************
  2. // // /\ /| @File RS232Decode.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 <future>
  12. #include "../BaseHelper/CommonHelper.h"
  13. // #include "../CommonBase/EnumTypeInfo.h"
  14. #include "../EdgePulseData.h"
  15. // #include "Constants.h"
  16. #include "ProtocolRS232Enums.h"
  17. #include "RS232Params.h"
  18. #include "RS232DecodeResult.h"
  19. //#include "RS232Packet.h"
  20. #include "../ProtocolDecodeBase.h"
  21. #include "Protocol.RS232.Options.h"
  22. #include "../BaseHelper/Logger.h"
  23. namespace Protocol
  24. {
  25. static bool getRS232Bit(TwoLevelEdgePulse*& edgePulse,
  26. int32_t targetIndex, TwoLevelEdgePulseStatusType& status);
  27. inline std::vector<const char*> eventInfoTitles = {
  28. "Index", "Start Time", "Data", "Parity", "Error"
  29. };
  30. std::vector<const char*> getEventInfoTitles();
  31. }