在嵌入式软件设计中,使用嵌入式实时操作系统RTX设计GUI应用程序时,应用程序完成的工作量往往较大,且程序跨平台性较差;针对这一情况,设计了一款轻型的面向RTX操作系统设计GUI中间件;中间件位于RTX操作系统和GUI应用程序之间,采用分层结构设计;底层的图形抽象层及输入抽象层使程序具有较好的可移植性,上面的图形设备接口层及窗体管理层为上层应用程序设计提供了API编程接口,大大减少了应用程序的工作量;最后结合RTX操作系统介绍了该GUI中间件在呼吸机界面中应用。
As for the software design of embedded system, the amount of work is usually very large in the application program when u-sing the real-time embedded operating system RTX to design the GUI application program. Aimed at this situation, a GUI middleware is designed oriented for the operating system RTX. The middleware lies between the RTX OS and GUI application program, and it adopts the division of multi-layers for its composition. The graphic abstract layer and the input abstract layer in the bottom make the program have a good portability. And the graphic device interface layer and the window management layer on the top reduce the amount of work greatly by providing API functions for the upper application program. Finally, an application of the GUI middleware with RTX OS is showed through the ventilator user-interface.