⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mmsapp.c

📁 ICCP Toolkit 是在 Tru64下开发Tase.2通信协议的开发包
💻 C
📖 第 1 页 / 共 5 页
字号:
/* function to set up the scattered access & variable list definition	*//* screen and function key table 					*//************************************************************************/ST_VOID set_sa_vl_defs (ST_VOID)  {  CLEARSCR;  print_demo ();  printf ("\n\n");  printf ("\t     SELECT DESIRED MMS COMMUNICATION ACTIVITY\n\n");  printf ("\t  %c1  - GET SCATTERED ACCESS ATTRIBUTES\n",c);  printf ("\t  %c2  - DEFINE SCATTERED ACCESS\n",c);  printf ("\t  %c3  - GET NAMED VARIABLE LIST ATTRIBUTES\n",c);  printf ("\t  %c4  - DEFINE NAMED VARIABLE LIST\n",c);  printf ("\t  %c5  - DELETE NAMED VARIABLE LIST\n",c);  printf ("\t  %s - RETURN TO VARIABLE ACCESS MENU\n",str);  flush_keys ();  fun_null ();  funct_1 = do_getscat;  funct_2 = do_defscat;  funct_3 = do_getvlist;  funct_4 = do_defvlist;  funct_5 = do_delvlist;  menu_set_fun = set_sa_vl_defs;	/* used to reset the menu	*/  }/************************************************************************//*			do_type_menu					*//* This functions executes the local named type definition menu 	*//************************************************************************/ST_VOID do_type_menu (ST_VOID)  {  set_type_menu ();  menu_service ();	/* Service keyboard/MMS until exit from menu	*/  set_var ();  }/************************************************************************//*			set_type_menu					*//* function to set up the local named type definition menu		*//************************************************************************/ST_VOID set_type_menu (ST_VOID)  {  CLEARSCR;  print_demo ();  printf ("\n\n");  printf ("\t     SELECT DESIRED MMS LOCAL NAMED TYPE ACTIVITY\n\n");  printf ("\t  %c1  - ADD STANDARD NAMED TYPES\n",c);  printf ("\t  %c2  - ADD CUSTOM NAMED TYPE\n",c);  printf ("\t  %c3  - LIST NAMED TYPES\n",c);  printf ("\t  %c4  - DELETE NAMED TYPE\n",c);  printf ("\t  %s - RETURN TO VARIABLE ACCESS MENU\n",str);  flush_keys ();  fun_null ();  funct_1 = do_add_named_type;  funct_2 = do_add_custom_type;  funct_3 = do_list_named_type;  funct_4 = do_del_named_type;  menu_set_fun = set_type_menu;        /* used to reset the menu       */  }/************************************************************************//*			do_var_menu					*//* This functions executes the local named type definition menu 	*//************************************************************************/ST_VOID do_var_menu (ST_VOID)  {  set_var_menu ();  menu_service ();	/* Service keyboard/MMS until exit from menu	*/  set_var ();  }/************************************************************************//*			set_var_menu					*//* function to set up the var def screen and function key table 	*//************************************************************************/ST_VOID set_var_menu (ST_VOID)  {  CLEARSCR;  print_demo ();  printf ("\n\n");  printf ("\t     SELECT DESIRED MMS LOCAL NAMED VARIABLE ACTIVITY\n\n");  printf ("\t  %c1  - ADD LOCAL NAMED VARIABLE\n",c);  printf ("\t  %c2  - DELETE LOCAL NAMED VARIABLE\n",c);  printf ("\t  %c3  - LIST LOCAL NAMED VARIABLES\n",c);  printf ("\t  %c4  - DISPLAY LOCAL NAMED VARIABLE DATA\n",c);  printf ("\t  %c5  - MODIFY LOCAL NAMED VARIABLE DATA\n",c);  printf ("\t  %s - RETURN TO VARIABLE ACCESS MENU\n",str);  flush_keys ();  fun_null ();  funct_1 = do_add_named_var;  funct_2 = do_del_named_var;  funct_3 = do_list_named_var;  funct_4 = do_show_local_var_data;  funct_5 = do_set_local_var_data;  menu_set_fun = set_var_menu;	/* used to reset the menu	*/  }/************************************************************************//*			do_var_list_menu				*//* This functions executes the local named VariableList definition menu *//************************************************************************/ST_VOID do_var_list_menu (ST_VOID)  {  set_var_list_menu ();  menu_service ();	/* Service keyboard/MMS until exit from menu	*/  set_var ();  }/************************************************************************//*			set_var_list_menu				*//* function to set up the var def screen and function key table 	*//************************************************************************/ST_VOID set_var_list_menu (ST_VOID)  {  CLEARSCR;  print_demo ();  printf ("\n\n");  printf ("\t     SELECT DESIRED MMS LOCAL NAMED VARIABLE LIST ACTIVITY\n\n");  printf ("\t  %c1  - ADD LOCAL NAMED VARIABLE LIST\n",c);  printf ("\t  %c2  - DELETE LOCAL NAMED VARIABLE LIST\n",c);  printf ("\t  %c3  - DISPLAY LOCAL NAMED VARIABLE LISTS\n",c);  printf ("\t  %c4  - DISPLAY LOCAL NAMED VARIABLE LIST DATA\n",c);  printf ("\t  %c5  - MODIFY LOCAL NAMED VARIABLE LIST DATA\n",c);  printf ("\t  %s - RETURN TO VARIABLE ACCESS MENU\n",str);  flush_keys ();  fun_null ();  funct_1 = do_add_named_var_list;  funct_2 = do_del_named_var_list;  funct_3 = do_list_named_var_list;  funct_4 = do_show_local_var_list_data;  funct_5 = do_set_local_var_list_data;  menu_set_fun = set_var_list_menu;	/* used to reset the menu	*/  }/************************************************************************//*			do_sem_ops					*//* This functions executes the semaphore management operations. 	*//************************************************************************/ST_VOID do_sem_ops (ST_VOID)  {  set_sem ();  menu_service ();	/* Service keyboard/MMS until exit from menu	*/  set_more ();  }/************************************************************************//*			set_sem 					*//* function to set up the semaphore management screen and function key	*//* table								*//************************************************************************/ST_VOID set_sem (ST_VOID)  {  CLEARSCR;  print_demo ();  printf ("\n\n");  printf ("\t     SELECT DESIRED MMS COMMUNICATION ACTIVITY\n\n");  printf ("\t  %c1  - TAKE CONTROL\n",c);  printf ("\t  %c2  - RELINQUISH CONTROL\n",c);  printf ("\t  %c3  - REPORT SEMAPHORE STATUS\n",c);  printf ("\t  %c4  - REPORT POOL SEMAPHORE STATUS\n",c);  printf ("\t  %c5  - REPORT SEMAPHORE ENTRY STATUS\n",c);  printf ("\t  %c6  - DEFINE SEMAPHORE\n",c);  printf ("\t  %c7  - DELETE SEMAPHORE\n",c);  printf ("\t  %s - RETURN TO MAIN MENU\n",str);  flush_keys ();  fun_null ();  funct_1 = do_takectrl;  funct_2 = do_relctrl;  funct_3 = do_rsstat;  funct_4 = do_rspool;  funct_5 = do_rsentry;  funct_6 = do_defsem;  funct_7 = do_delsem;  menu_set_fun = set_sem;		/* used to reset the menu	*/  }/************************************************************************//*			do_ocs_ops					*//* This functions executes the operator communication operations.	*//************************************************************************/ST_VOID do_ocs_ops (ST_VOID)  {  set_ocs ();  menu_service ();	/* Service keyboard/MMS until exit from menu	*/  set_more ();  }/************************************************************************//*			set_ocs 					*//* function to set up the operator communication screen and function	*//* key table								*//************************************************************************/ST_VOID set_ocs (ST_VOID)  {  CLEARSCR;  print_demo ();  printf ("\n\n");  printf ("\t     SELECT DESIRED MMS COMMUNICATION ACTIVITY\n\n");  printf ("\t  %c1  - OUTPUT OPERATION\n",c);  printf ("\t  %c2  - INPUT OPERATION\n",c);  printf ("\t  %s - RETURN TO MAIN MENU\n",str);  flush_keys ();  fun_null ();  funct_1 = do_output;  funct_2 = do_input;  menu_set_fun = set_ocs;		/* used to reset the menu	*/  }/************************************************************************//*			do_evn_ops					*//* This functions executes the event management operations.		*//************************************************************************/ST_VOID do_evn_ops (ST_VOID)  {  set_evn ();  menu_service ();	/* Service keyboard/MMS until exit from menu	*/  set_more ();  }/************************************************************************//*			set_evn 					*//* function to set up the event management screen and function		*//* key table								*//************************************************************************/ST_VOID set_evn (ST_VOID)  {  CLEARSCR;  print_demo ();  printf ("\n\n");  printf ("\t     SELECT DESIRED MMS COMMUNICATION ACTIVITY\n\n");  printf ("\t  %c1  - EVENT CONDITION MENU\n",c);  printf ("\t  %c2  - EVENT ACTION MENU\n",c);  printf ("\t  %c3  - EVENT ENROLLMENT MENU\n",c);  printf ("\t  %c4  - TRIGGER EVENT\n",c);  printf ("\t  %c5  - EVENT NOTIFICATION\n",c);  printf ("\t  %c6  - ACKNOWLEDGE EVENT NOTIFICATION\n",c);  printf ("\t  %c7  - GET ALARM SUMMARY\n",c);  printf ("\t  %s - RETURN TO MAIN MENU\n",str);  flush_keys ();  fun_null ();  funct_1 = do_ec;  funct_2 = do_ea;  funct_3 = do_ee;  funct_4 = do_trige;  funct_5 = do_evnot;  funct_6 = do_ackevnot;  funct_7 = do_getas;  menu_set_fun = set_evn;		/* used to reset the menu	*/  }/************************************************************************//*			do_ec						*//* This functions executes the event condition operations.		*//************************************************************************/ST_VOID do_ec (ST_VOID)  {  set_ec ();  menu_service ();	/* Service keyboard/MMS until exit from menu	*/  set_evn ();  }/************************************************************************//*			set_ec	 					*//* function to set up the event condition screen and function		*//* key table								*//************************************************************************/ST_VOID set_ec (ST_VOID)  {  CLEARSCR;  print_demo ();  printf ("\n\n");  printf ("\t     SELECT DESIRED MMS COMMUNICATION ACTIVITY\n\n");  printf ("\t  %c1  - DEFINE EVENT CONDITION\n",c);  printf ("\t  %c2  - DELETE EVENT CONDITION\n",c);  printf ("\t  %c3  - GET EVENT CONDITION ATTRIBUTES\n",c);  printf ("\t  %c4  - REPORT EVENT CONDITION STATUS\n",c);  printf ("\t  %c5  - ALTER EVENT CONDITION MONITORING\n",c);  printf ("\t  %s - RETURN TO MAIN MENU\n",str);  flush_keys ();  fun_null ();  funct_1 = do_defec;  funct_2 = do_delec;  funct_3 = do_geteca;  funct_4 = do_repecs;  funct_5 = do_altecm;  menu_set_fun = set_ec;		/* used to reset the menu	*/  }/************************************************************************//*			do_ea						*//* This functions executes the event action operations.			*//************************************************************************/ST_VOID do_ea (ST_VOID)  {  set_ea ();  menu_service ();	/* Service keyboard/MMS until exit from menu	*/  set_evn ();  }/************************************************************************//*			set_ea	 					*//* function to set up the event action screen and function		*//* key table								*//************************************************************************/ST_VOID set_ea (ST_VOID)  {  CLEARSCR;  print_demo ();  printf ("\n\n");  printf ("\t     SELECT DESIRED MMS COMMUNICATION ACTIVITY\n\n");  printf ("\t  %c1  - DEFINE EVENT ACTION\n",c);  printf ("\t  %c2  - DELETE EVENT ACTION\n",c);  printf ("\t  %c3  - GET EVENT ACTION ATTRIBUTES\n",c);  printf ("\t  %c4  - REPORT EVENT ACTION STATUS\n",c);  printf ("\t  %s - RETURN TO MAIN MENU\n",str);  flush_keys ();  fun_null ();  funct_1 = do_defea;  funct_2 = do_delea;  funct_3 = do_geteaa;  funct_4 = do_repeas;  menu_set_fun = set_ea;		/* used to reset the menu	*/  }/************************************************************************//*			do_ee						*//* This functions executes the event enrollment operations.		*//************************************************************************/ST_VOID do_ee (ST_VOID)  {  set_ee ();  menu_service ();	/* Service keyboard/MMS until exit from menu	*/  set_evn ();  }/************************************************************************//*			set_ee	 					*//* function to set up the event enrollment screen and function		*//* key table								*//************************************************************************/ST_VOID set_ee (ST_VOID)  {  CLEARSCR;  print_demo ();  printf ("\n\n");  printf ("\t     SELECT DESIRED MMS COMMUNICATION ACTIVITY\n\n");  printf ("\t  %c1  - DEFINE EVENT ENROLLMENT\n",c);  printf ("\t  %c2  - DELETE EVENT ENROLLMENT\n",c);  printf ("\t  %c3  - ALTER EVENT ENROLLMENT\n",c);  printf ("\t  %c4  - REPORT EVENT ENROLLMENT STATUS\n",c);  printf ("\t  %c5  - GET EVENT ENROLLMENT ATTRIBUTES\n",c);  printf ("\t  %c6  - GET ALARM ENROLLMENT SUMMARY\n",c);  printf ("\t  %s - RETURN TO MAIN MENU\n",str);  flush_keys ();  fun_null ();  funct_1 = do_defee;  funct_2 = do_delee;  funct_3 = do_altee;  funct_4 = do_repees;  funct_5 = do_geteea;  funct_6 = do_getaes;  menu_set_fun = set_ee;		/* used to reset the menu	*/  }/************************************************************************//*			do_jou_ops					*//* This functions executes the journal management operations.		*//************************************************************************/ST_VOID do_jou_ops (ST_VOID)  {  set_jou ();  menu_service ();	/* Service keyboard/MMS until exit from menu	*/  set_more ();  }/************************************************************************//*			set_jou 					*//* function to set up the journal management screen and function	*//* key table								*//************************************************************************/ST_VOID set_jou (ST_VOID)  {  CLEARSCR;  print_demo ();  printf ("\n\n");  printf ("\t     SELECT DESIRED MMS COMMUNICATION ACTIVITY\n\n");  printf ("\t  %c1  - READ JOURNAL\n",c);  printf ("\t  %c2  - WRITE JOURNAL\n",c);  printf ("\t  %c3  - INITIALIZE JOURNAL\n",c);  printf ("\t  %c4  - REPORT JOURNAL STATUS\n",c);  printf ("\t  %c5  - CREATE JOURNAL\n",c);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -