
103
prc_menu
Purpose
:
Create a menu-driven interface.
Syntax
:
void prc_menu(MENU *menu);
Example call
:
MENU_ENTRY Menu_01 = {0,1,"1.Test Menu
01",FuncMenu_01,0};
MENU_ENTRY Menu_02 = {0,2,"2.Test Menu
02",FuncMenu_02,0};
MENU_ENTRY Menu_03 = {0,3,"3.Test Menu
03",FuncMenu_03,0};
void prc_menu_Test(void)
{
MENU Menu_Test = {3,1,0,"Menu
Test!!",{&Menu_01,&Menu_02,&Menu_03}};
prc_menu(&Menu_Test);
}
void FuncMenu_01(void)
{
/*to do :add your own program code here*/
}
void FuncMenu_02(void)
{
/*to do :add your own program code here*/
}
void FuncMenu_03(void)
{
/*to do :add your own program code here*/
}
Includes
:
#include “LIB_CL.h ”
Description
:
The prc_menu function is used to create a user-defined menu.
SMENU and MENU structures are defined in ”LIB_CL.h”. Users
can just fill the MENU structure and call the prc_menu function to
build a hierarchy menu-driven user interface.
Returns
:
None
Содержание PT-10
Страница 4: ...3 Keyboard Wedge 99 System 101 Power 102 Other 102 ...
Страница 13: ...12 6 Development Flow Chart ...
Страница 53: ...52 Returns No returns Notes ...