From a919a921cd7b9441547d7d67c04710e19f261685 Mon Sep 17 00:00:00 2001 From: tianjialong Date: Fri, 3 Mar 2023 18:38:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E4=B8=8A=E6=8A=A5=E5=8D=8F=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MDK-ARM/LWIP.uvguix.29643 | 4 ++-- usersrc/protocol.h | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/MDK-ARM/LWIP.uvguix.29643 b/MDK-ARM/LWIP.uvguix.29643 index 9851d69..db65d2a 100644 --- a/MDK-ARM/LWIP.uvguix.29643 +++ b/MDK-ARM/LWIP.uvguix.29643 @@ -3705,9 +3705,9 @@ ..\usersrc\atcmd.c - 0 + 18 129 - 150 + 158 1 0 diff --git a/usersrc/protocol.h b/usersrc/protocol.h index e0f0cfa..2789ae4 100644 --- a/usersrc/protocol.h +++ b/usersrc/protocol.h @@ -5,6 +5,7 @@ #include #define adwin_config_protocol_size sizeof(adwin_config_protocol_t) +#define reported_data_size sizeof(reported_data_t) #pragma pack(push, 1) typedef struct @@ -23,4 +24,13 @@ typedef struct uint64_t fixed_bit_5; /* 固定位5:00 00 00 00 00 00 00 00 */ uint64_t fixed_bit_6; /* 固定位6:00 00 00 00 00 00 00 00 */ } adwin_config_protocol_t; + +typedef struct +{ + uint32_t time_stamp_s; /* 时间戳 */ + int32_t encoder_1_count; /* 编码器1计数 */ + int32_t encoder_2_count; /* 编码器2计数 */ + uint32_t device_id; /* 设备ID号 */ +} reported_data_t; + #pragma pack(pop)