You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.0 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. #pragma once
  2. #include <fstream>
  3. #include <functional>
  4. #include <iostream>
  5. #include <list>
  6. #include <map>
  7. #include <memory>
  8. #include <mutex>
  9. #include <set>
  10. #include <sstream>
  11. #include <string>
  12. #include <thread>
  13. #include <vector>
  14. #include "protocol/zfpga_commander/zfpga_commander.hpp"
  15. #include "zfpga_basic_protocol/zaf_protocol.h"
  16. #include "zfpga_basic_protocol/zaf_regs.hpp"
  17. namespace iflytop {
  18. namespace syncbox16chsdk {
  19. using namespace std;
  20. typedef enum {
  21. kWorkMode_extCpyMode,
  22. kWorkMode_extTriMode,
  23. kWorkMode_manualTriMode,
  24. } WorkMode_t;
  25. typedef struct {
  26. } reg_t;
  27. const char* WorkModeToStr(uint32_t mode);
  28. WorkMode_t WorkModeValueOf(const char* str);
  29. list<string> WorkModeStrList();
  30. class SyncBox16ChSDK {
  31. public:
  32. static SyncBox16ChSDK* ins() {
  33. static SyncBox16ChSDK cmder;
  34. return &cmder;
  35. }
  36. public:
  37. void initialize();
  38. void setPluseWidth(uint32_t widthus);
  39. void setPluseFreq(uint32_t freq);
  40. void setPluseGeneratorMode();
  41. public:
  42. };
  43. } // namespace syncbox16chsdk
  44. } // namespace iflytop