增加了通信协议解析的功能

This commit is contained in:
zjk
2024-11-19 09:58:31 +08:00
parent 590662d7a5
commit 4693ce2619
15 changed files with 924 additions and 169 deletions
+7
View File
@@ -1,6 +1,12 @@
#ifndef CCUUDPMSG__H
#define CCUUDPMSG__H
#define CCU_UDPMSG_START1 0x20
#define CCU_UDPMSG_START2 0x20
#define CCU_STATE_FB_ID 0x0051
#define CCU_SET_PARM_ID 0x0040
#define CCU_SET_PARM_FB_ID 0x0041
#pragma pack (1)
typedef unsigned int Checksum;
typedef struct {
@@ -177,5 +183,6 @@ typedef struct {
float placeholder5;
Checksum checkCode;
} msg_CcuStateFbMsg;
#pragma pack ()
#endif