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.

51 lines
1.3 KiB

12 months ago
12 months ago
12 months ago
  1. #pragma once
  2. #include "base/appdep.hpp"
  3. namespace iflytop {
  4. class PublicBoard {
  5. ZGPIO m_debugled;
  6. public:
  7. static PublicBoard* ins() {
  8. static PublicBoard instance;
  9. return &instance;
  10. }
  11. void initialize();
  12. int getProjId();
  13. int getBoardTypeId();
  14. int getBoardId();
  15. void setDebugLightState(bool state);
  16. void toggleDebugLight();
  17. private:
  18. void debugUartInit(void);
  19. void canInit();
  20. };
  21. bool isBoardType(int32_t val0);
  22. bool isBoardType(int32_t val0, int32_t val1);
  23. bool isBoardType(int32_t val0, int32_t val1, int32_t val2);
  24. bool isBoardType(int32_t val0, int32_t val1, int32_t val2, int32_t val3);
  25. // klarge_space_disinfection_machine = 1, // 大空间消毒机
  26. // ksmall_space_disinfection_machine = 2, // 小空间消毒机
  27. // kpipe_disinfection_machine = 3, // 管道式消毒机
  28. // kdraw_bar_disinfection_box = 4, // 手持拉杆箱消毒机
  29. // kh2o2_ext_sensor = 5, // 外部H2O2传感器
  30. class PORT {
  31. public:
  32. static void idtable_init();
  33. static bool isLargeSpaceDM();
  34. static bool isSamllSpaceDM();
  35. static bool isPipeDM();
  36. static bool isDrawBarDM();
  37. static bool isH2O2Sensor();
  38. static bool isDT600B();
  39. static bool isLiquidCtrlBoard();
  40. static bool isPowerCtrlBoard();
  41. };
  42. } // namespace iflytop