您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Boiler.h 450B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include "stdint.h"
  3. using temp_t = short;
  4. #define TEMP_T_INVALID -127
  5. using timestamp_t = unsigned long;
  6. class TempInput;
  7. class DigitalOutput;
  8. struct BoilerTankState
  9. {
  10. enum Mode
  11. {
  12. Auto,
  13. On,
  14. Off
  15. };
  16. Mode mode;
  17. temp_t setting;
  18. temp_t tempTrigger;
  19. // uint8_t sensorAddress[8];
  20. TempInput* input;
  21. DigitalOutput* relay;
  22. };
  23. struct AppCoreState
  24. {
  25. BoilerTankState tanks[2];
  26. };