feat: Modbus 新增 0x0012 系统指令寄存器,写 0x2C2C 复位 MCU (对齐 700BS 0x2C)
This commit is contained in:
@@ -23,6 +23,8 @@
|
||||
|
||||
#define MB_HR_AUTO_RPT_ENABLE 0x0010 /* 主动上报使能 (0=关, 1=开) */
|
||||
#define MB_HR_ACTIVE_THRESHOLD 0x0011 /* 活动状态阈值 (|Variation|≥N) */
|
||||
#define MB_HR_SYSTEM_CMD 0x0012 /* 系统指令: 写 0x2C2C 复位 MCU */
|
||||
#define MB_CMD_RESET_MCU 0x2C2C /* 复位 MCU 指令值 */
|
||||
|
||||
/* 主动上报间隔 (mstick() 5ms/tick) */
|
||||
#define MB_RPT_IDLE_MS 160 /* 空闲: 800ms / 5ms = 160 tick */
|
||||
|
||||
Reference in New Issue
Block a user