summaryrefslogtreecommitdiffstats
path: root/pressure_control/firmware/remote.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/remote.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/remote.h')
-rw-r--r--pressure_control/firmware/remote.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/pressure_control/firmware/remote.h b/pressure_control/firmware/remote.h
index 709a1f0..c587782 100644
--- a/pressure_control/firmware/remote.h
+++ b/pressure_control/firmware/remote.h
@@ -57,13 +57,22 @@ struct remote_message {
char str[8];
} __attribute__((packed)) logmessage;
struct {
- uint16_t mbar;
+ uint16_t mbar[2];
} __attribute__((packed)) pressure;
struct {
- uint32_t flags;
+ uint8_t island; /* Valve island */
+ uint16_t mbar;
+ } __attribute__((packed)) setpressure;
+ struct {
+ uint32_t flags[2];
} __attribute__((packed)) config;
struct {
- uint8_t nr; /* Valve ID */
+ uint8_t island; /* Valve island */
+ uint32_t flags;
+ } __attribute__((packed)) setconfig;
+ struct {
+ uint8_t island; /* Valve island */
+ uint8_t nr; /* Valve ID in the island */
uint8_t state;
} __attribute__((packed)) valve;
@@ -81,7 +90,7 @@ void print_dec(uint16_t number);
void print_dec_signed(int16_t number);
void print_hex(uint8_t number);
-void remote_pressure_change_notification(uint16_t mbar);
+void remote_pressure_change_notification(uint16_t xy_mbar, uint16_t z_mbar);
void remote_notify_restart(void);
void remote_work(void);
bues.ch cgit interface