Files
menu/internal/menu_modbus.h
2025-12-18 22:24:25 +08:00

24 lines
802 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* @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