24 lines
802 B
C
24 lines
802 B
C
/**
|
||
* @file menu_modbus.h
|
||
* @brief 菜单Modbus映射内部头文件(用户无需关心)
|
||
* @note 工业级嵌入式菜单组件 - Modbus映射内部定义
|
||
*/
|
||
#ifndef MENU_MODBUS_H
|
||
#define MENU_MODBUS_H
|
||
|
||
#include "menu.h"
|
||
#include "menu_def.h"
|
||
|
||
/************************** 内部类型定义 **************************/
|
||
/**
|
||
* @brief Modbus映射内部结构体(扩展对外结构体,增加内部状态)
|
||
*/
|
||
typedef struct {
|
||
ModbusMap pub; ///< 对外暴露的映射信息(只读)
|
||
MenuParamType param_type; ///< 参数类型(缓存,避免重复查找)
|
||
uint16_t reg_addr_offset; ///< 寄存器偏移地址(转换后的实际偏移)
|
||
bool is_registered; ///< 是否已注册
|
||
} ModbusMapInternal;
|
||
|
||
#endif // MENU_MODBUS_H
|