summaryrefslogtreecommitdiffstats
path: root/pressure_control/firmware/main.h
diff options
context:
space:
mode:
authormb <mb@frink.(none)>2009-04-18 17:06:54 +0200
committermb <mb@frink.(none)>2009-04-18 17:06:54 +0200
commit42077af0734b747c5e2311b3b7186537b72cecdb (patch)
tree48fdfac1bec9e6fe775e3771f1aa13372eb14e40 /pressure_control/firmware/main.h
parent3797d749f174d3bcf04d921c23e076fd7d592335 (diff)
downloadcnc-42077af0734b747c5e2311b3b7186537b72cecdb.tar.xz
cnc-42077af0734b747c5e2311b3b7186537b72cecdb.zip
Turn off the device, if the control tool is shutdown
Signed-off-by: mb <mb@frink.(none)>
Diffstat (limited to 'pressure_control/firmware/main.h')
-rw-r--r--pressure_control/firmware/main.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/pressure_control/firmware/main.h b/pressure_control/firmware/main.h
index cf6978a..edb8694 100644
--- a/pressure_control/firmware/main.h
+++ b/pressure_control/firmware/main.h
@@ -16,6 +16,8 @@ struct pressure_config {
};
struct pressure_state {
+ /* Sensing and adjustment logic enabled? */
+ bool device_enabled;
/* Current pressure in the tank (in mBar) */
uint16_t mbar;
/* Reported pressure via RS232 */
@@ -33,5 +35,7 @@ struct pressure_state {
void get_pressure_config(struct pressure_config *cfg);
void set_pressure_config(struct pressure_config *cfg);
void get_pressure_state(struct pressure_state *state);
+void prepare_turn_on(void);
+void prepare_shutdown(void);
#endif /* MAIN_H_ */
bues.ch cgit interface