summaryrefslogtreecommitdiffstats
path: root/pressure_control/firmware/main.h
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2009-06-13 15:04:02 +0200
committerMichael Buesch <mb@bu3sch.de>2009-06-13 15:04:02 +0200
commitfc3276d57c54af5929b1f02f2c271058e025d163 (patch)
tree62d07d582db2538aaf144019370f452eaaed2119 /pressure_control/firmware/main.h
parentf78d0963af065e55a64c383d2ad8b00247f75977 (diff)
downloadcnc-fc3276d57c54af5929b1f02f2c271058e025d163.tar.xz
cnc-fc3276d57c54af5929b1f02f2c271058e025d163.zip
pressure_control: Add support for two control circuits
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Diffstat (limited to 'pressure_control/firmware/main.h')
-rw-r--r--pressure_control/firmware/main.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/pressure_control/firmware/main.h b/pressure_control/firmware/main.h
index 279b7e0..28b15c1 100644
--- a/pressure_control/firmware/main.h
+++ b/pressure_control/firmware/main.h
@@ -44,10 +44,16 @@ struct pressure_config {
struct pressure_state {
/* Sensing and adjustment logic enabled? */
bool device_enabled;
- /* The last measured pressure (in mBar) */
+ /* The last measured pressure (in mBar).
+ * It depends on sensor_cycle which valves this
+ * value belongs to. */
uint16_t measured_mbar;
+ /* The current pressure for the individual valves */
+ uint16_t measured_mbar_xy;
+ uint16_t measured_mbar_z;
/* Reported pressure via RS232 */
- uint16_t reported_mbar;
+ uint16_t reported_mbar_xy;
+ uint16_t reported_mbar_z;
/* True, if the current pressure value needs checking against
* the desired pressure config. */
bool needs_checking;
@@ -58,8 +64,10 @@ struct pressure_state {
int8_t sensor_trigger_cnt;
};
-void get_pressure_config(struct pressure_config *cfg);
-void set_pressure_config(struct pressure_config *cfg);
+void get_pressure_config(struct pressure_config *xy,
+ struct pressure_config *z);
+void set_pressure_config(struct pressure_config *xy,
+ struct pressure_config *z);
void get_pressure_state(struct pressure_state *state);
void prepare_turn_on(void);
void prepare_shutdown(void);
bues.ch cgit interface