?? computerterminal.h
字號(hào):
/***********************************************************/
/* */
/*文 件 名:Computerterminal.h */
/*功 能:液晶終端機(jī)主系統(tǒng)文件 */
/*當(dāng)前版本:V1.0 */
/*作 者:白廣斌 */
/* */
/*授 權(quán): */
/* */
/*開始日期:2007.10.01 */
/*完成日期:2007.10.01 */
/* */
/***********************************************************/
#define uchar unsigned char
#define uint unsigned int
#define ulong unsigned long int
#define SY1_JD(x) if(x==0){PORTB&=~_BV(PB4);}else{PORTB|=_BV(PB4);}
#define SY2_JD(x) if(x==0){PORTB&=~_BV(PB5);}else{PORTB|=_BV(PB5);}
#define SY3_JD(x) if(x==0){PORTB&=~_BV(PB6);}else{PORTB|=_BV(PB6);}
#define YUYINON 250 //語音開時(shí)間
#define YUYINOFF 1500 //語音關(guān)時(shí)間
uint SY_Out; //語音預(yù)警提示計(jì)數(shù)器
uint Updat_Cn; //更新屏幕計(jì)數(shù)器
uchar Run_Cn; //運(yùn)行計(jì)數(shù)器
uchar AddrNuber; //本機(jī)地址值
uchar YJ_Type=0; //預(yù)警類型 1:井噴,2:井漏,3:井涌,否則正常
uint BPL; //泵排量
uint CKYW; //出口液位
uint CKLL; //出口流量
uint CKLS; //出口流速
int LLC_S; //流量差(升/秒)
uint LLPL; //理論排量(升/秒)
uint LJLL; //累計(jì)流量
uint LJSJ; //累計(jì)時(shí)間
uchar BXL_1; //#1 泵效率
uchar BXL_2; //#2 泵效率
uint GT_ZJ1_1; //#1 鋼套直徑1
uint GT_ZJ1_2; //#1 鋼套直徑2
uint GT_ZJ1_3; //#1 鋼套直徑3
uint GT_ZJ2_1; //#2 鋼套直徑1
uint GT_ZJ2_2; //#2 鋼套直徑2
uint GT_ZJ2_3; //#2 鋼套直徑3
uchar Start_Month; //起始 月
uchar Start_Date; //起始 日
uchar Start_HH; //起始 小時(shí)
uchar Start_MM; //起始 分鐘
extern uchar MenuNumber; //菜單鍵值
extern uchar JK_Pic_OK; //0:未顯示監(jiān)控界面;否則已顯示
extern uchar ADDR __attribute__((section(".eeprom"))); //本機(jī)地址存儲(chǔ)變量
extern uchar SET_Addr_Variable; //本機(jī)地址設(shè)置變量
void SY_YJ_Out(void); //預(yù)警語音輸出函數(shù)
/*外部函數(shù)聲明*/
extern void LCD_Initial(void);
extern void Pic_Screen(uchar Row,uchar Col); //寫入圖片數(shù)據(jù)函數(shù)
extern void On_Pic(void);
extern void Surveillance(void);
extern void StartDs12c887(void); //啟動(dòng)時(shí)鐘芯片函數(shù)
extern void YDT(void); //讀系統(tǒng)時(shí)間
extern void uart0_init(void); //串口0配置函數(shù)
extern void uart1_init(void); //串口1配置函數(shù)
extern void Serial0_Send_out(uchar x); //串口0發(fā)送巡檢命令函數(shù)
extern void key_Input_Processing(void); //鍵值輸入處理函數(shù)
extern void Serial0_Data_Processing(void); //串口0接收數(shù)據(jù)處理函數(shù)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -