2018-11-26 11:58:15 +00:00
|
|
|
/*
|
|
|
|
* This file is part of the "bluetoothheater" distribution
|
|
|
|
* (https://gitlab.com/mrjones.id.au/bluetoothheater)
|
|
|
|
*
|
|
|
|
* Copyright (C) 2018 Ray Jones <ray@mrjones.id.au>
|
|
|
|
* Copyright (C) 2018 James Clark
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2018-12-01 00:36:25 +00:00
|
|
|
class CProtocolPackage;
|
2018-12-08 12:25:53 +00:00
|
|
|
|
2018-12-01 00:36:25 +00:00
|
|
|
|
2018-11-23 10:34:37 +00:00
|
|
|
extern void ToggleOnOff();
|
|
|
|
extern void requestOn();
|
|
|
|
extern void requestOff();
|
2018-12-11 10:19:02 +00:00
|
|
|
extern void reqTempDelta(int delta);
|
|
|
|
extern void reqTemp(unsigned char newTemp);
|
2018-11-23 10:34:37 +00:00
|
|
|
extern void reqThermoToggle();
|
|
|
|
extern void setThermostatMode(unsigned char);
|
2018-11-24 11:03:47 +00:00
|
|
|
extern void reqPumpPrime(bool on);
|
2018-11-25 04:45:17 +00:00
|
|
|
extern float getActualTemperature();
|
2018-11-28 11:15:23 +00:00
|
|
|
extern void setPumpMin(float);
|
|
|
|
extern void setPumpMax(float);
|
|
|
|
extern void setFanMin(short);
|
|
|
|
extern void setFanMax(short);
|
2018-11-29 11:11:50 +00:00
|
|
|
extern void saveNV();
|
2018-12-01 00:36:25 +00:00
|
|
|
extern const CProtocolPackage& getHeaterInfo();
|
2018-12-11 10:19:02 +00:00
|
|
|
extern void interpretCommand(const char* pLine);
|
|
|
|
extern void interpretJsonCommand(char* pLine);
|
2018-11-24 11:03:47 +00:00
|
|
|
|
|
|
|
#define LOWERLIMIT(A, B) if(A < B) A = B
|
2018-11-27 10:44:47 +00:00
|
|
|
#define UPPERLIMIT(A, B) if(A > B) A = B
|
|
|
|
#define ROLLUPPERLIMIT(A, B, C) if(A > B) A = C
|
|
|
|
#define ROLLLOWERLIMIT(A, B, C) if(A < B) A = C
|