|
|
@ -5,6 +5,7 @@ |
|
|
|
#include <stdlib.h> |
|
|
|
|
|
|
|
#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) |