11 #define RELAIS_HEAT 29
12 #define RELAIS_PUMP 25
13 #define RELAIS_POWER 28
14 #define PRESSURE_CTRL 7
15 #define PROXIMITY_SENSOR 6
17 #define INT0 0 // bottom button
18 #define INT1 2 // top button
19 #define FLOW 3 // flow sensor
20 #define PROX_COVERED 1 //proximity sensor
21 #define FLOW_ML_PULSE (1000.0/990) // Flow sensor: volume (ml) per pulse
void halRelaisOn(int relais)
Switches relais on.
Definition: hal.cpp:66
void halResetFlow(void)
Resets the Flow counter.
Definition: hal.cpp:174
void halRelaisSet(int relais, int state)
Switches relais to state.
Definition: hal.cpp:83
bool halProxSensorCovered(void)
Returns status of the proximity switch.
Definition: hal.cpp:194
void halRelaisOff(int relais)
Switches relais off.
Definition: hal.cpp:74
HalSig
Definition: hal.h:31
float halGetFlow(void)
Returns total flow trough sensor in ml.
Definition: hal.cpp:167
void halInt0(void)
Definition: hal.cpp:111
int halGetRelaisState(int relais)
Returns the state of the relais relais Returns HIGH when Relais is ON.
Definition: hal.cpp:100
int halGetInt0(void)
Returns the value of the top button Int0 (low active)
Definition: hal.cpp:207
bool halIsHeating(void)
Reads the status of the Pressure Control.
Definition: hal.cpp:182
void halInt1(void)
Definition: hal.cpp:120
void halIntFlow(void)
Definition: hal.cpp:129
int halGetInt1(void)
Returns the value of the bottom button Int1 (low active)
Definition: hal.cpp:215
void halInit(void)
Initializes HAL.
Definition: hal.cpp:22
void halIntProximity(void)
Method to handle toggle of the proximity sensor.
Definition: hal.cpp:155
void halSendSignal(int value)
send Signal to coffee thread
Definition: hal.cpp:223
void halIntPressure(void)
Method to handle toggle of the pressure control.
Definition: hal.cpp:143