diff --git a/app_protocols.h b/app_protocols.h index 45b5e16..da7ea6c 100644 --- a/app_protocols.h +++ b/app_protocols.h @@ -6,4 +6,5 @@ #include "zscanprotocol/zscanprotocol.h" #include "hand_acid_val_protocol/hand_acid_val_protocol.h" #include "ble_through/ble_proto.h" -#include "ble_through/ble_proto_utils.h" \ No newline at end of file +#include "ble_through/ble_proto_utils.h" +#include "valve_ctrl_protocol/valve_ctrl_protocol.h" \ No newline at end of file diff --git a/valve_ctrl_protocol/valve_ctrl_protocol.h b/valve_ctrl_protocol/valve_ctrl_protocol.h new file mode 100644 index 0000000..db6eff5 --- /dev/null +++ b/valve_ctrl_protocol/valve_ctrl_protocol.h @@ -0,0 +1,14 @@ +#pragma once +#include + +typedef enum { + kvalve_ctrl_msg = 1, +} valve_ctrl_id_t; + +typedef struct { + uint8_t valvestate0; + uint8_t valvestate1; + uint8_t valvestate2; + uint8_t valvestate3; + uint8_t placeholder[3]; +} valve_ctrl_protocol_t;