summaryrefslogtreecommitdiffstats
path: root/pressure_control/firmware/remote.h
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2010-06-13 20:48:54 +0200
committerMichael Buesch <mb@bu3sch.de>2010-06-13 20:48:54 +0200
commitd03bf642e8285b0cf91855a66f8cdc0c642c6854 (patch)
treea8fe2551a0012e1f4420f7beb670e7fae0a2da1b /pressure_control/firmware/remote.h
parent102cbd589030183125e8430ca784c56968a47638 (diff)
downloadcnc-d03bf642e8285b0cf91855a66f8cdc0c642c6854.tar.xz
cnc-d03bf642e8285b0cf91855a66f8cdc0c642c6854.zip
pressure_control: Export maxima via serial interface
Also raise Z maximum Signed-off-by: Michael Buesch <mb@bu3sch.de>
Diffstat (limited to 'pressure_control/firmware/remote.h')
-rw-r--r--pressure_control/firmware/remote.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/pressure_control/firmware/remote.h b/pressure_control/firmware/remote.h
index a513d56..c942a2b 100644
--- a/pressure_control/firmware/remote.h
+++ b/pressure_control/firmware/remote.h
@@ -27,7 +27,8 @@ enum remote_message_id {
MSG_RESTARTED,
MSG_SHUTDOWN,
MSG_TURNON,
-
+ MSG_GET_MAXIMA,
+ MSG_MAXIMA,
MSG_ID_MASK = 0x3F,
MSG_FLAG_QOVERFLOW = 0x40, /* TX queue overflow */
@@ -75,6 +76,13 @@ struct remote_message {
uint8_t nr; /* Valve ID in the island */
uint8_t state;
} __attribute__((packed)) valve;
+ struct {
+ uint8_t island; /* Valve island */
+ } __attribute__((packed)) getmaxima;
+ struct {
+ uint16_t pressure;
+ uint16_t hysteresis;
+ } __attribute__((packed)) maxima;
uint8_t __padding[4];
} __attribute__((packed));
bues.ch cgit interface