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

📄 mainprog.h

📁 基于PC104平台
💻 H
字号:
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//       File name mainprog.h
//         Defined all varibles used in all process or in mainprog.cpp
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#include "class.h"
unsigned int cdt_timer=0;
unsigned int i;
CWindows   win;
CYx          yx;
CYm 	     ym;
CYc 	     yc;
CYk 	     yk;
CLfp  	  port1(0);
CLfp      port2(1);
CLfp      port3(2);
CLfp      port4(3);
CLfp      port5(4);
CLfp      port6(5);
CLfp      port7(6);
CLfp      port8(7);
CNbb      port9(8);
CNbb      port10(9);
//CNbb CWuhanCDT CD201 CIsa CBe1 CSc1801 CWsYm CHndYm CAcSample
unsigned int rdkey;
struct hardset_t hardwareset[7];
struct portset_t port_set[10];
struct datasource_t datasource;
struct diagnose_t diag_result;
struct message_buf_t message_buf;//used in data send and recieve
struct check_time_t check_time;
char password[6];   //used for ykpassword
unsigned int watchdog[10]={0,0,0,0,0,0,0,0,0,0};//for watch dog
BOOLEAN displaymode;   //for display message :: display with check(FALSE) without(TRUE)

extern BYTE getchin[10]; //for get byte from receive buffers
extern portinit();      //defined in comm.h
extern resetport();     //defined in comm.h
extern BOOLEAN port_free(BYTE portno); //defined in comm.h
extern comput(BYTE value,BYTE portno); //defined in comm.h
extern BOOLEAN get_in(BYTE portno);    //defined in comm.h
extern initprotectbuf(); //defined in comclass.h used in mainprog.cpp for init protectbuf
extern struct yc_info_t yc_info;  //defined in ycclass.h used in windows.h
BOOLEAN port_run_flag[10];
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//       The end of mainprog.h
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

⌨️ 快捷键说明

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