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.

Boiler.h 516B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // Created by robin on 1/27/20.
  3. //
  4. #ifndef HEATER_BOILER_H
  5. #define HEATER_BOILER_H
  6. typedef char temp_t;
  7. enum UiStateEnum
  8. {
  9. Hibernate,
  10. Lighting,
  11. WaterSetting,
  12. HeaterSetting
  13. };
  14. struct UiState
  15. {
  16. UiStateEnum state;
  17. unsigned long lastOpMs;
  18. unsigned modeSequenceIndex;
  19. };
  20. struct BoilerLineState
  21. {
  22. temp_t current;
  23. temp_t setting;
  24. bool isActive;
  25. };
  26. struct BoilerState
  27. {
  28. BoilerLineState water;
  29. BoilerLineState heater;
  30. UiState uiState;
  31. };
  32. #endif //HEATER_BOILER_H