From 3bb0e44ef7d12ddc84e631456f4b6eab7112df1c Mon Sep 17 00:00:00 2001 From: WXK <287788329@qq.com> Date: 星期三, 08 十一月 2023 14:39:59 +0800 Subject: [PATCH] 版本v1.0 加入气压计驱动 并且放到uwb里传给urt --- Src/application/dw_app.h | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/Src/application/dw_app.h b/Src/application/dw_app.h index d7c209a..567996a 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 @@ -86,6 +98,7 @@ #define SEQUENCE_IDX 3 #define BATTARY_IDX 4 #define BUTTON_IDX 7 +#define PRESSNUM_IDX 7 #define DW_CTRL_GPIO GPIOA #define DW_ENABLE HAL_GPIO_WritePin(DW_CTRL_GPIO, DW_CTRL_Pin, GPIO_PIN_RESET) -- Gitblit v1.9.3