摘要
为了方便用户控制各种嵌入式设备,通常采用一种多级菜单模型配合UI设计以便进行图形化界面操作,完成参数设置和功能实现。在以往的多级菜单设计中,结构不够清晰,扩展性较差。为了方便更多人移植使用,本文采用C语言进行开发,仅需要定义一个结构体类型,用结构体数组表示父子菜单,便可实现功能,其结构简单,逻辑清晰。最后,在FPGA中成功移植本菜单模型,可满足用户各种控制需求,并可根据需求在原有菜单结构中添加新的功能,实现了高度的可扩展性和可移植性。实验结果表明,此菜单模型适合各种嵌入式设备,满足用户的控制需求和显示需求。
Abstract
In order to facilitate users to control various embedded devices,a multi-level menu model is usually adopted to cooperate with UI design for graphical interface operation,parameter setting and function realization.In the previous multi-level menu design,the structure is not clear and the expansibility is poor.In order to facilitate the transplantation and use of more people,the C language is used for development,only need to define a structure type,using the structure array to represent the parent-child menu.The function is realized,the structure is simple,the logic is clear.Finally,the menu model is successfully transplanted to FPGA,which can meet various control requirements of users,and new functions can be added to the original menu structure according to requirements,and a high degree of scalability and portability is realized.The experiment results show that the menu model is suitable for various embedded devices and meets the control and display needs of users.
关键词
嵌入式设备 /
多级菜单 /
C语言
Key words
embedded device /
multi-level menu /
C language
谈广旭, 吴海青.
一种改进型的多级菜单设计[J]. 集成电路与嵌入式系统. 2023, 23(12): 72-75
Tan Guangxu, Wu Haiqing.
An Improved Multi-level Menu Design[J]. Integrated Circuits and Embedded Systems. 2023, 23(12): 72-75
{{custom_sec.title}}
{{custom_sec.title}}
{{custom_sec.content}}
参考文献
[1] 柏文杰,赵岗岗,张圣道,等.嵌入式系统的多层次菜单设计[J].工业控制计算机,2020,33(3):52-54.
[2] 李敏通,张战国.一种建立单片机应用系统菜单的新方法[J].计算机工程,2006(16):259-260,273.
[3] 吴礼杰,杨光永,王兵.基于定时中断机制的多级菜单设计方法[J].通信技术,2011,44(1):159-161.