一种改进型的多级菜单设计  

An Improved Multi-level Menu Design

在线阅读下载全文

作  者:谈广旭 吴海青[1] Tan Guangxu;Wu Haiqing(College of Computer Science and Technology,Nanjing Forestry University,Nanjing 210037,China)

机构地区:[1]南京林业大学信息科学技术学院,南京210037

出  处:《单片机与嵌入式系统应用》2023年第12期72-75,共4页Microcontrollers & Embedded Systems

摘  要:为了方便用户控制各种嵌入式设备,通常采用一种多级菜单模型配合UI设计以便进行图形化界面操作,完成参数设置和功能实现。在以往的多级菜单设计中,结构不够清晰,扩展性较差。为了方便更多人移植使用,本文采用C语言进行开发,仅需要定义一个结构体类型,用结构体数组表示父子菜单,便可实现功能,其结构简单,逻辑清晰。最后,在FPGA中成功移植本菜单模型,可满足用户各种控制需求,并可根据需求在原有菜单结构中添加新的功能,实现了高度的可扩展性和可移植性。实验结果表明,此菜单模型适合各种嵌入式设备,满足用户的控制需求和显示需求。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语言 

分 类 号:TP31[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象