📄 ictamain.c
字号:
{ case ASSOC_MENU: assocMgtMenu (); break; case TYPE_MENU: typeMenu (); break; case VAR_MENU: varMenu (); break; case TRAN_MENU: tranSetMenu (); break; case INFO_MENU: infoMsgMenu (); break; case DEVICE_MENU: deviceMenu (); break; case ACCT_MENU: acctMenu (); break; case CONFIG_MENU: configMenu (); break; case UTIL_MENU: utilMenu (); break; case B4B8_MENU: newB4B8Menu (); break; case MAIN_MENU: default: setMainMenu (); break; } } /************************************************************************//* testNoFun *//* They pressed the wrong function key - do something friendly! *//************************************************************************/ST_VOID testNoFun(ST_VOID) { printf("\n\nInvalid Function Key Selected!!"); pause_msg("\nPress a key to continue!"); showCurrMenu(); }/************************************************************************//* setMainMenu *//* set up main menu *//************************************************************************/ST_VOID setMainMenu (ST_VOID) { CLEARSCR; showHeading(); theCurrentMenu = MAIN_MENU; printf ("\n\n"); printf ("\t ICCP Toolkit Test Application: Main Menu \n\n"); printf ("\t 1 - Association Management\n"); printf ("\t 2 - Data Types\n"); printf ("\t 3 - Variables\n"); printf ("\t 4 - Transfer Sets\n"); printf ("\t 5 - Information Messages\n"); printf ("\t 6 - Device Control\n"); printf ("\t 7 - Transfer Accounts\n"); printf ("\t 8 - Configuration\n"); printf ("\t 9 - Miscellaneous\n"); printf ("\t 0 - Exit\n"); printf("\n\n\n\n"); flush_keys (); fun_null (); funct_1 = assocMgtMenu; funct_2 = typeMenu; funct_3 = varMenu; funct_4 = tranSetMenu; funct_5 = infoMsgMenu; funct_6 = deviceMenu; funct_7 = acctMenu; funct_8 = configMenu; funct_9 = utilMenu; funct_menu = showCurrMenu; callingMenu = NULL; }/************************************************************************//* assocMgtMenu *//* set up the association management menu *//************************************************************************/static ST_VOID assocMgtMenu (ST_VOID) { CLEARSCR; showHeading(); theCurrentMenu = ASSOC_MENU; printf ("\n\n"); printf ("\t Association Management Menu \n\n"); printf ("\t 1 - Define Configured Remotes\n"); printf ("\t 2 - Define Configured Links\n"); printf ("\t 3 - Start Defined Remotes\n"); printf ("\t 4 - Start Defined Links\n"); printf ("\t 5 - Stop Remotes\n"); printf ("\t 6 - Stop Links\n"); printf ("\t 7 - Show Channel Info\n"); printf ("\t 8 - Show Association Summary\n"); printf ("\t 0 - Main Menu\n"); printf ("\t \n"); printf("\n\n\n\n"); flush_keys (); fun_null (); funct_1 = defCfgRemotes; funct_2 = defCfgLinks; funct_3 = startRemotes; funct_4 = startLinks; funct_5 = stopRemotes; funct_6 = stopLinks; funct_7 = showChanInfo; funct_8 = showAssocSummary; funct_9 = testNoFun; funct_menu = showCurrMenu; callingMenu = NULL; }/************************************************************************//* typeMenu *//* set up the types menu *//************************************************************************/static ST_VOID typeMenu (ST_VOID) { CLEARSCR; showHeading(); theCurrentMenu = TYPE_MENU; printf ("\n\n"); printf ("\t Data Types Menu \n\n"); printf ("\t 1 - Define Configured Types\n"); printf ("\t 2 - Define New Types\n"); printf ("\t 3 - Read Variable Types\n"); printf ("\t 0 - Main Menu\n"); printf ("\t\n "); printf ("\t\n "); printf ("\t\n "); printf ("\t\n "); printf ("\t\n "); printf ("\t\n "); printf("\n\n\n\n"); flush_keys (); fun_null (); funct_1 = defCfgTypes; funct_2 = defNewType; funct_3 = readVarTypes; funct_4 = testNoFun; funct_5 = testNoFun; funct_6 = testNoFun; funct_7 = testNoFun; funct_8 = testNoFun; funct_9 = testNoFun; funct_menu = showCurrMenu; callingMenu = NULL; }/************************************************************************//* varMenu *//* set up the variables menu *//************************************************************************/static ST_VOID varMenu (ST_VOID) { CLEARSCR; showHeading(); theCurrentMenu = VAR_MENU; printf ("\n\n"); printf ("\t Variables Menu \n\n"); printf ("\t 1 - Define Configured Variables\n"); printf ("\t 2 - Define New Variables\n"); printf ("\t 3 - Read Variable Types\n"); printf ("\t 4 - Read Variable Names \n"); printf ("\t 5 - Read a REMOTE Variable \n"); printf ("\t 6 - Write a REMOTE Variable \n"); printf ("\t 7 - Read a LOCAL Variable \n"); printf ("\t 8 - Write a LOCAL Variable \n"); printf ("\t 9 - Change a Variable (Server Only) \n"); printf ("\t 0 - Main Menu\n"); printf("\n\n\n\n"); flush_keys (); fun_null (); funct_1 = defCfgVars; funct_2 = defNewVar; funct_3 = readVarTypes; funct_4 = readVarNames; funct_5 = readVar; funct_6 = writeVar; funct_7 = readLocal; funct_8 = writeLocal; funct_9 = changeVar; funct_menu = showCurrMenu; callingMenu = NULL; }/************************************************************************//* tranSetMenu *//* set up the transfer set menu *//************************************************************************/static ST_VOID tranSetMenu (ST_VOID) { CLEARSCR; showHeading(); theCurrentMenu = TRAN_MENU; printf ("\n\n"); printf ("\t Transfer Sets Menu \n\n"); printf ("\t 1 - Define Configured Transfer Groups\n"); printf ("\t 2 - Define a New Transfer Group \n"); printf ("\t 3 - Change a Variable\n"); printf ("\t 4 - Transfer Group Summary\n"); printf ("\t 5 - Control a Transfer Group\n"); printf ("\t 6 - Get Data Set Names\n "); printf ("\t 0 - Main Menu\n"); printf ("\t\n "); printf ("\t\n "); printf ("\t\n "); printf("\n\n\n\n"); flush_keys (); fun_null (); funct_1 = defCfgTrans; funct_2 = defNewTrans; funct_3 = changeVar; funct_4 = showTranSummary; funct_5 = ctrlTranGroup; funct_6 = doGetDataSetNames; funct_7 = testNoFun; funct_8 = testNoFun; funct_9 = testNoFun; funct_menu = showCurrMenu; callingMenu = NULL; }/************************************************************************//* infoMsgMenu *//* set up the information messages menu *//************************************************************************/static ST_VOID infoMsgMenu (ST_VOID) { CLEARSCR; showHeading(); theCurrentMenu = INFO_MENU; printf ("\n\n"); printf ("\t Information Messages Menu \n\n"); printf ("\t 1 - Define Configured Messages\n"); printf ("\t 2 - Send Message (Server Only)\n"); printf ("\t 3 - New Block 4 Functions\n "); printf ("\t 0 - Main Menu\n"); printf ("\t\n "); printf ("\t\n "); printf ("\t\n "); printf ("\t\n "); printf ("\t\n "); printf ("\t\n "); printf("\n\n\n\n"); flush_keys (); fun_null (); funct_1 = defCfgMsgs; funct_2 = sendMsg; funct_3 = newB4B8Menu; funct_4 = testNoFun; funct_5 = testNoFun; funct_6 = testNoFun; funct_7 = testNoFun; funct_8 = testNoFun; funct_9 = testNoFun; funct_menu = showCurrMenu; callingMenu = infoMsgMenu; }/************************************************************************//* deviceMenu *//* set up the device menu *//************************************************************************/static ST_VOID deviceMenu (ST_VOID) { CLEARSCR; showHeading(); theCurrentMenu = DEVICE_MENU; printf ("\n\n"); printf ("\t Device Control Menu\n\n"); printf ("\t 1 - Define Configured Devices\n"); printf ("\t 2 - Define a New Device\n"); printf ("\t 3 - Select a Device\n"); printf ("\t 4 - Operate a Device\n"); printf ("\t 5 - Clear Select\n"); printf ("\t 6 - Get Device Tag\n "); printf ("\t 7 - Set Device Tag\n "); printf ("\t 8 - Do Device Test \n"); printf ("\t 0 - Main Menu\n"); printf ("\t\n "); printf("\n\n\n\n"); flush_keys (); fun_null (); funct_1 = defCfgDevices; funct_2 = defNewDevice; funct_3 = selectDevice; funct_4 = operateDevice; funct_5 = clearDevice; funct_6 = getDeviceTag; funct_7 = setDeviceTag;/* funct_8 = doDeviceTest; */ funct_8 = testNoFun; funct_9 = testNoFun; funct_menu = showCurrMenu; callingMenu = NULL; }/************************************************************************//* acctMenu *//* set up the transfer account menu *//************************************************************************/static ST_VOID acctMenu (ST_VOID) { CLEARSCR; showHeading(); theCurrentMenu = ACCT_MENU; printf ("\n\n"); printf ("\t Transfer Account Menu \n\n"); printf ("\t 1 - Define Configured Accounts\n"); printf ("\t 2 - Define a New Account\n"); printf ("\t 3 - Define Configured Conditions\n"); printf ("\t 4 - Define a New Condition\n"); printf ("\t 5 - Request a Transfer Account (Client Only)\n"); printf ("\t 6 - Send Transfer Account (Server Only)\n"); printf ("\t 7 - New Block 8 Functions\n "); printf ("\t 8 - Start Block 8 Test\n "); printf ("\t 9 - Stop Block8 Test\n "); printf ("\t 0 - Main Menu\n"); printf("\n\n\n\n"); flush_keys (); fun_null (); funct_1 = defCfgAccts; funct_2 = defNewAcct; funct_3 = defCfgConditions; funct_4 = defNewConditions; funct_5 = requestTA; funct_6 = sendTA; funct_7 = newB4B8Menu; funct_8 = startB8Test; funct_9 = stopB8Test; funct_menu = showCurrMenu; callingMenu = acctMenu; }/************************************************************************//* configMenu *//* set up the configuration menu *//************************************************************************/static ST_VOID configMenu (ST_VOID) { CLEARSCR; showHeading(); theCurrentMenu = CONFIG_MENU; printf ("\n\n"); printf ("\t Configuration menu \n\n"); printf ("\t 1 - Define ALL Configured Items\n"); printf ("\t 2 - Define ALL Configured SERVER Items\n"); printf ("\t 3 - Define ALL Configured CLIENT Items\n"); printf ("\t 4 - Define ALL Configured Items & Start Links\n "); printf ("\t 0 - Main Menu\n"); printf ("\t\n "); printf ("\t\n "); printf ("\t\n "); printf ("\t\n "); printf ("\t\n "); printf("\n\n\n\n"); flush_keys (); fun_null (); funct_1 = defCfgAll; funct_2 = defCfgServer; funct_3 = defCfgClient; funct_4 = defAllStartAll; funct_5 = testNoFun; funct_6 = testNoFun; funct_7 = testNoFun; funct_8 = testNoFun; funct_9 = testNoFun; funct_menu = showCurrMenu; callingMenu = NULL; }/************************************************************************//* utilMenu *//* set up the miscellaneous utilities menu *//************************************************************************/static ST_VOID utilMenu (ST_VOID) { CLEARSCR; showHeading(); theCurrentMenu = UTIL_MENU; printf ("\n\n"); printf ("\t Miscellaneous Utilities Menu \n\n"); printf ("\t 1 - Turn ON Screen PDU Logging\n"); printf ("\t 2 - Turn OFF Screen PDU Logging\n"); printf ("\t 3 - Start Comprehensive Test\n "); printf ("\t 4 - Stop Comprehensive Test\n "); printf ("\t 5 - Change ToolKit Trace Level\n"); printf ("\t 6 - ReDefine a Remote\n "); printf ("\t 7 - UnDefine a Remote\n "); printf ("\t 8 - Enable Auto Increment Variables\n"); printf ("\t 9 - Disable Auto Increment Variables\n"); printf ("\t 0 - Main Menu\n"); printf ("\t\n "); printf ("\t\n "); printf("\n\n\n\n"); flush_keys (); fun_null (); funct_1 = scrnLogOn;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -