123456789101112131415161718192021222324252627282930313233343536373839 |
- //
- // Created by robin on 1/27/20.
- //
-
- #ifndef HEATER_BOILER_H
- #define HEATER_BOILER_H
-
- typedef char temp_t;
-
- enum UiStateEnum
- {
- Hibernate,
- Lighting,
- WaterSetting,
- HeaterSetting
- };
-
- struct UiState
- {
- UiStateEnum state;
- unsigned long lastOpMs;
- unsigned modeSequenceIndex;
- };
-
- struct BoilerLineState
- {
- temp_t current;
- temp_t setting;
- bool isActive;
- };
-
- struct BoilerState
- {
- BoilerLineState water;
- BoilerLineState heater;
- UiState uiState;
- };
-
- #endif //HEATER_BOILER_H
|