From 94d89e0e6d4a76e4eb434557974187e73dced518 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Thu, 29 Aug 2024 21:28:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=98=80=E9=97=A8=E6=8E=A7?= =?UTF-8?q?=E5=88=B6can=E5=8D=8F=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app_protocols.h | 3 ++- valve_ctrl_protocol/valve_ctrl_protocol.h | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 valve_ctrl_protocol/valve_ctrl_protocol.h 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;