1234567891011121314151617181920212223242526272829303132 |
- #pragma once
-
- #include "stdint.h"
-
- using temp_t = short;
- #define TEMP_T_INVALID -127
- using timestamp_t = unsigned long;
-
- class TempInput;
-
- class DigitalOutput;
-
- struct BoilerTankState
- {
- enum Mode
- {
- Auto = 1,
- On = 2,
- Off = 3
- };
-
- Mode mode;
- temp_t setting;
- temp_t tempTrigger;
- TempInput* input;
- DigitalOutput* relay;
- };
-
- struct AppCoreState
- {
- BoilerTankState tanks[2];
- };
|