summaryrefslogtreecommitdiffstats
path: root/pressure_control/firmware/remote.h
diff options
context:
space:
mode:
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