-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathboiler_control.h
50 lines (39 loc) · 1.21 KB
/
boiler_control.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef _BOILER_CONTROL_H_INCLUDED_
#define _BOILER_CONTROL_H_INCLUDED_
#include "global_variables.h"
void setPumpOn(uint8_t num);
void setPumpOff(uint8_t num);
bool isPumpOn(uint8_t num);
bool isPumpEnabled(uint8_t num);
//uruchomienie podajnika
void setFeederOn();
//zatrzymanie podajnika
void setFeederOff();
void setFeeder(bool b);
//czy podajnik działa
bool isFeederOn();
bool isHeaterOn();
void setHeater(bool b);
unsigned long getHeaterRunningTimeMs();
///set blower power 0..255 (255 = 100%)
void setBlowerPower(uint8_t power);
///set blower power 0..255 (255 = 100%)
void setBlowerPower(uint8_t power, uint8_t powerCycle);
///get blower power 0..255 (255 = 100%)
uint8_t getCurrentBlowerPower();
uint8_t getCurrentBlowerCycle();
void initializeBlowerControl();
void gatherStatsTask();
bool isThermostatOn();
int8_t getBlowerPowerCorrection();
void setBlowerPowerCorrection(int8_t c);
//accumulated feeder run time, in ms
extern unsigned long g_FeederRunTime;
extern unsigned long g_feederRunMs;
extern unsigned long g_pumpCORunMs;
extern unsigned long g_pumpCWURunMs;
extern unsigned long g_pumpCircRunMs;
extern unsigned long g_heaterStartTimeMs;
float getCurrentFlowRate();
void initializeFlowMeter();
#endif