Go to the source code of this file.
|
| enum | HalSig {
SigInt0Psh = 1,
SigInt0Rls = 2,
SigInt0RlsLong = 3,
SigInt1Psh = 4,
SigInt1Rls = 5,
SigInt1RlsLong = 6,
SigPressCls = 7,
SigPressOpn = 8,
SigProxOpn = 9,
SigProxCvrd = 10,
SigBrewOn = 11,
SigBrewOff = 12
} |
| |
| #define FLOW_ML_PULSE (1000.0/990) |
| #define PIN_PRESSURE_CTRL 7 |
| #define PIN_PROXIMITY_SENSOR 6 |
| #define TIME_BUTTONLONGPRESS 3 |
| Enumerator |
|---|
| SigInt0Psh |
|
| SigInt0Rls |
|
| SigInt0RlsLong |
|
| SigInt1Psh |
|
| SigInt1Rls |
|
| SigInt1RlsLong |
|
| SigPressCls |
|
| SigPressOpn |
|
| SigProxOpn |
|
| SigProxCvrd |
|
| SigBrewOn |
|
| SigBrewOff |
|
| float halGetFlow |
( |
void |
| ) |
|
Returns total flow trough sensor in ml.
Returns the value of the top button Int0 (low active)
- Returns
- LOW or HIGH
Returns the value of the bottom button Int1 (low active)
- Returns
- LOW or HIGH
| int halGetRelaisState |
( |
int |
relais | ) |
|
Returns the state of the relais relais Returns HIGH when Relais is ON.
- Parameters
-
Interrupt routine for Int0 (Top button)
| void halInt0TimerHandler |
( |
void |
| ) |
|
Interrupt routine for Int1 (Bottom button)
| void halInt1TimerHandler |
( |
void |
| ) |
|
Interrupt routine for the flow sensor It counts the edgdes and stores the value in flowcnt.
| void halIntPressure |
( |
void |
| ) |
|
Interrupt routine for the pressure control.
| void halIntProximity |
( |
void |
| ) |
|
Method to handle toggle of the proximity sensor.
| bool halIsHeating |
( |
void |
| ) |
|
Reads the status of the Pressure Control.
- Returns
- 0 for closed Pressure Control(heating) and 1 for open
| void halMachineOff |
( |
void |
| ) |
|
| void halMachineOn |
( |
void |
| ) |
|
| bool halProxSensorCovered |
( |
void |
| ) |
|
Returns status of the proximity switch.
- Returns
- 1 if the proximity switch is covered and 0 if uncovered
| void halRelaisOff |
( |
int |
relais | ) |
|
Switches relais off.
- Parameters
-
| void halRelaisOn |
( |
int |
relais | ) |
|
Switches relais on.
- Parameters
-
| void halRelaisSet |
( |
int |
relais, |
|
|
int |
state |
|
) |
| |
Switches relais to state.
- Parameters
-
| relais | Relais ID |
| state | LOW(0) or HIGH(1) |
| void halResetFlow |
( |
void |
| ) |
|
| void halSendSignal |
( |
int |
val | ) |
|
send Signal to coffee thread
- Parameters
-
| val | Integer value assigned to signal |