summaryrefslogtreecommitdiffstats
path: root/pressure_control/firmware/valves.h
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2008-10-23 19:37:14 +0200
committerMichael Buesch <mb@bu3sch.de>2008-10-23 19:37:14 +0200
commit55e576638e744b34021de662f0e8f4d9f5bbf6fd (patch)
tree4f64674ff5ed84510d25b9abda23b8daf0dc91ca /pressure_control/firmware/valves.h
parent89b80bc2ae9a06f029beea7f62bae11b274de3e9 (diff)
downloadcnc-55e576638e744b34021de662f0e8f4d9f5bbf6fd.tar.xz
cnc-55e576638e744b34021de662f0e8f4d9f5bbf6fd.zip
pressure_control: Add manual valve switching.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Diffstat (limited to 'pressure_control/firmware/valves.h')
-rw-r--r--pressure_control/firmware/valves.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/pressure_control/firmware/valves.h b/pressure_control/firmware/valves.h
index 0f51a49..e7a5e74 100644
--- a/pressure_control/firmware/valves.h
+++ b/pressure_control/firmware/valves.h
@@ -4,13 +4,23 @@
#include <stdint.h>
+/* Global valves state */
enum valves_global_state {
VALVES_IDLE,
VALVES_FLOW_IN,
VALVES_FLOW_OUT,
};
+/* State for one valve. */
+enum valve_state {
+ VALVE_STATE_12,
+ VALVE_STATE_14,
+};
+
void valves_init(void);
-void valves_global_switch(uint8_t state);
+void valves_global_switch(uint8_t global_state);
+
+void valve0_switch(uint8_t state);
+void valve1_switch(uint8_t state);
#endif /* VALVES_H_ */
bues.ch cgit interface