11 #define RELAIS_HEAT 29
12 #define RELAIS_PUMP 25
13 #define RELAIS_POWER 28
14 #define PIN_PRESSURE_CTRL 7
15 #define PIN_PROXIMITY_SENSOR 6
16 #define PIN_INT0 2 // Top button
17 #define PIN_INT1 0 // Bottom button
18 #define PIN_FLOW 3 // Flow sensor
19 #define FLOW_ML_PULSE (1000.0/990) // Flow sensor: volume (ml) per pulse
21 #define TIME_BUTTONLONGPRESS 3 //Time in s until a Signal for a long pressed button is sent
void halRelaisOn(int relais)
Switches relais on.
Definition: hal.cpp:80
void halResetFlow(void)
Resets the Flow counter.
Definition: hal.cpp:240
void halRelaisSet(int relais, int state)
Switches relais to state.
Definition: hal.cpp:97
bool halProxSensorCovered(void)
Returns status of the proximity switch.
Definition: hal.cpp:260
void halMachineOff(void)
Turn machine off.
Definition: hal.cpp:314
void halRelaisOff(int relais)
Switches relais off.
Definition: hal.cpp:88
HalSig
Definition: hal.h:40
void halMachineOn(void)
Turn machine on.
Definition: hal.cpp:304
float halGetFlow(void)
Returns total flow trough sensor in ml.
Definition: hal.cpp:233
void halInt0(void)
Interrupt routine for Int0 (Top button)
Definition: hal.cpp:133
int halGetRelaisState(int relais)
Returns the state of the relais relais Returns HIGH when Relais is ON.
Definition: hal.cpp:119
int halGetInt0(void)
Returns the value of the top button Int0 (low active)
Definition: hal.cpp:274
bool halIsHeating(void)
Reads the status of the Pressure Control.
Definition: hal.cpp:248
void halInt1(void)
Interrupt routine for Int1 (Bottom button)
Definition: hal.cpp:164
void halIntFlow(void)
Interrupt routine for the flow sensor It counts the edgdes and stores the value in flowcnt...
Definition: hal.cpp:196
int halGetInt1(void)
Returns the value of the bottom button Int1 (low active)
Definition: hal.cpp:282
void halInt1TimerHandler(void)
Definition: hal.cpp:182
void halInit(void)
Initializes HAL.
Definition: hal.cpp:30
void halIntProximity(void)
Method to handle toggle of the proximity sensor.
Definition: hal.cpp:221
int state
Definition: coffee.cpp:27
void halSendSignal(int value)
send Signal to coffee thread
Definition: hal.cpp:290
void halIntPressure(void)
Interrupt routine for the pressure control.
Definition: hal.cpp:209
void halInt0TimerHandler(void)
Definition: hal.cpp:151