|
CoffeePi
Coffee machine control for Raspberry Pi
|
Go to the source code of this file.
Macros | |
| #define | RELAIS_HEAT 29 |
| #define | RELAIS_PUMP 25 |
| #define | RELAIS_POWER 28 |
| #define | PRESSURE_CTRL 7 |
| #define | PROXIMITY_SENSOR 6 |
| #define | INT0 0 |
| #define | INT1 2 |
| #define | FLOW 3 |
| #define | PROX_COVERED 1 |
| #define | FLOW_ML_PULSE (1000.0/990) |
Enumerations | |
| enum | HalSig { SigInt0Psh = 1, SigInt0Rls = 2, SigInt1Psh = 3, SigInt1Rls = 4, SigPressCls = 5, SigPressOpn = 6, SigProxOpn = 7, SigProxCvrd = 8, SigBrewOn = 9, SigBrewOff = 10 } |
Functions | |
| void | halInit (void) |
| Initializes HAL. More... | |
| void | halRelaisOn (int relais) |
| Switches relais on. More... | |
| void | halRelaisOff (int relais) |
| Switches relais off. More... | |
| void | halRelaisSet (int relais, int state) |
| Switches relais to state. More... | |
| int | halGetRelaisState (int relais) |
| Returns the state of the relais relais Returns HIGH when Relais is ON. More... | |
| void | halInt0 (void) |
| void | halInt1 (void) |
| void | halIntFlow (void) |
| void | halIntPressure (void) |
| Method to handle toggle of the pressure control. More... | |
| void | halIntProximity (void) |
| Method to handle toggle of the proximity sensor. More... | |
| float | halGetFlow (void) |
| Returns total flow trough sensor in ml. More... | |
| void | halResetFlow (void) |
| Resets the Flow counter. More... | |
| bool | halIsHeating (void) |
| Reads the status of the Pressure Control. More... | |
| bool | halProxSensorCovered (void) |
| Returns status of the proximity switch. More... | |
| int | halGetInt0 (void) |
| Returns the value of the top button Int0 (low active) More... | |
| int | halGetInt1 (void) |
| Returns the value of the bottom button Int1 (low active) More... | |
| void | halSendSignal (int value) |
| send Signal to coffee thread More... | |
| #define FLOW 3 |
| #define FLOW_ML_PULSE (1000.0/990) |
| #define INT0 0 |
| #define INT1 2 |
| #define PRESSURE_CTRL 7 |
| #define PROX_COVERED 1 |
| #define PROXIMITY_SENSOR 6 |
| #define RELAIS_HEAT 29 |
| #define RELAIS_POWER 28 |
| #define RELAIS_PUMP 25 |
| enum HalSig |
| float halGetFlow | ( | void | ) |
Returns total flow trough sensor in ml.
| int halGetInt0 | ( | void | ) |
Returns the value of the top button Int0 (low active)
| int halGetInt1 | ( | void | ) |
Returns the value of the bottom button Int1 (low active)
| int halGetRelaisState | ( | int | relais | ) |
Returns the state of the relais relais Returns HIGH when Relais is ON.
| relais | Relais ID |
| void halInit | ( | void | ) |
Initializes HAL.
| void halInt0 | ( | void | ) |
| void halInt1 | ( | void | ) |
| void halIntFlow | ( | void | ) |
| void halIntPressure | ( | void | ) |
Method to handle toggle of the pressure control.
| void halIntProximity | ( | void | ) |
Method to handle toggle of the proximity sensor.
| bool halIsHeating | ( | void | ) |
Reads the status of the Pressure Control.
| bool halProxSensorCovered | ( | void | ) |
Returns status of the proximity switch.
| void halRelaisOff | ( | int | relais | ) |
Switches relais off.
| relais | Relais ID |
| void halRelaisOn | ( | int | relais | ) |
Switches relais on.
| relais | Relais ID |
| void halRelaisSet | ( | int | relais, |
| int | state | ||
| ) |
Switches relais to state.
| relais | Relais ID |
| state | LOW(0) or HIGH(1) |
| void halResetFlow | ( | void | ) |
Resets the Flow counter.
| void halSendSignal | ( | int | val | ) |
send Signal to coffee thread
| val | Integer value assigned to signal |
1.8.10