From 6f6d3bc73b0b59b67ec7c3acfe6cd966523741b3 Mon Sep 17 00:00:00 2001 From: yincheng.zhong <634916154@qq.com> Date: 星期三, 24 四月 2024 10:04:12 +0800 Subject: [PATCH] V1.21 修改LED显示,增加秒延迟功能 --- Src/application/dw_app.h | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/Src/application/dw_app.h b/Src/application/dw_app.h index d7c209a..021d0ea 100644 --- a/Src/application/dw_app.h +++ b/Src/application/dw_app.h @@ -49,6 +49,7 @@ #define MBX_RESPONSE 0x21 #define MBX_FINAL 0x22 #define MBX_PRAAREPLY 0x23 +#define MBX_REG 0x24 //General #define GROUP_ID_IDX 0 #define ANCHOR_ID_IDX 1 @@ -74,6 +75,17 @@ #define FINAL_MSG_TS_LEN 4 //SYNC #define SYNC_SEQ_IDX 5 + + +//REG POLL +#define REGP_TAGSTATE_INDEX 10 +#define REGP_VERSION_INDEX 11 +#define REGP_FREQUENCY_INDEX 13 +#define REGP_POWER_INDEX 14 +#define REGP_IMUTHRES_INDEX 15 +#define REGP_NOMOVESLEEPTIME_INDEX 17 +#define REGP_HEIGHTOFFSET_INDEX 19 + //NEAR MSG #define NEARMSG_EMPTYSLOTPOS_INDEX 1 //RESPONSE #define NEARBASENUM_INDEX 10 @@ -101,7 +113,7 @@ extern uint32_t g_UWB_com_interval; extern float dis_after_filter; -extern uint8_t usart_send[25]; +extern uint8_t usart_send[300]; void IdleTask(void); uint16_t Checksum_u16(uint8_t* pdata, uint32_t len); -- Gitblit v1.9.3