?? option.h~
字號(hào):
/*
* =====================================================================================
*
* Filename: option.h
*
* Description: 全局變量。短信、傳感器、調(diào)試開關(guān)
*
* Version: 1.0
* Created: 2009年01月15日 10時(shí)05分14秒
* Revision: none
* Compiler: gcc
*
* Author: 楊小合 (CH), yang.xiaohe@163.com QQ:475094605
* Company: Student
*
* =====================================================================================
*/
#ifndef _OPTION_H
#define _OPTION_H
struct termios oldtio,newtio;
enum message_t{READ,UNREAD};
enum smoke_status{RUN,STOP};
struct message
{
enum message_t mess_t;//短信類型
char mess_n[30];//短信發(fā)送者的號(hào)碼
char time_m[25];//短信時(shí)間
char mess_info[400];//短信內(nèi)容
};
struct smoke_struct
{
enum smoke_status smoke_s;//煙霧傳感器的工作狀態(tài)
char smoke_n[30];//發(fā)生情況時(shí)要撥打的電話號(hào)碼
unsigned int smoke_t;//煙霧傳感器延時(shí)時(shí)間范圍:1~99
};
//global var
struct message mess;
struct smoke_struct smoke;
int gprs_debug_on;
#endif
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -