Browse Source

udpate app_canprotocol

master
zhaohe 11 months ago
parent
commit
38674eceb0
  1. 13
      app_canprotocol/app_canprotocol.h
  2. 2
      app_protocols.h
  3. 14
      valve_ctrl_protocol/valve_ctrl_protocol.h

13
app_canprotocol/app_canprotocol.h

@ -0,0 +1,13 @@
#pragma once
#include <stdint.h>
typedef enum {
kvalve_ctrl_msg = 1,
} app_canprotocol_id;
typedef struct {
uint8_t output0;
uint8_t output1;
uint8_t rgbw;
uint8_t placeholder[5];
} valve_ctrl_msg_t;

2
app_protocols.h

@ -7,4 +7,4 @@
#include "hand_acid_val_protocol/hand_acid_val_protocol.h" #include "hand_acid_val_protocol/hand_acid_val_protocol.h"
#include "ble_through/ble_proto.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"
#include "app_canprotocol/app_canprotocol.h"

14
valve_ctrl_protocol/valve_ctrl_protocol.h

@ -1,14 +0,0 @@
#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