Browse Source

添加阀门控制can协议

master
zhaohe 11 months ago
parent
commit
94d89e0e6d
  1. 3
      app_protocols.h
  2. 14
      valve_ctrl_protocol/valve_ctrl_protocol.h

3
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"
#include "ble_through/ble_proto_utils.h"
#include "valve_ctrl_protocol/valve_ctrl_protocol.h"

14
valve_ctrl_protocol/valve_ctrl_protocol.h

@ -0,0 +1,14 @@
#pragma once
#include <stdint.h>
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;
Loading…
Cancel
Save