summaryrefslogtreecommitdiffstats
path: root/pressure_control/firmware/main.h
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2009-05-29 21:55:22 +0200
committerMichael Buesch <mb@bu3sch.de>2009-05-29 21:55:22 +0200
commit2067eed91adc2e3b7f66154e7886fba56b787e42 (patch)
tree46537e76bf357d535aaa472cd3926d3dd5428293 /pressure_control/firmware/main.h
parent76aae654108d525330438951c3bc40918ffc7efa (diff)
downloadcnc-2067eed91adc2e3b7f66154e7886fba56b787e42.tar.xz
cnc-2067eed91adc2e3b7f66154e7886fba56b787e42.zip
pressure_control: Cycle the sensors
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Diffstat (limited to 'pressure_control/firmware/main.h')
-rw-r--r--pressure_control/firmware/main.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/pressure_control/firmware/main.h b/pressure_control/firmware/main.h
index 7a9dbf2..279b7e0 100644
--- a/pressure_control/firmware/main.h
+++ b/pressure_control/firmware/main.h
@@ -26,6 +26,11 @@ typedef int16_t s_jiffies_t;
jiffies_t get_jiffies(void);
+enum {
+ SENSOR_CYCLE_XY = 0,
+ SENSOR_CYCLE_Z,
+ __NR_SENSOR_CYCLE,
+};
struct pressure_config {
/* Desired pressure in mBar */
@@ -39,8 +44,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;
+ /* The last measured pressure (in mBar) */
+ uint16_t measured_mbar;
/* Reported pressure via RS232 */
uint16_t reported_mbar;
/* True, if the current pressure value needs checking against
bues.ch cgit interface