?? gprs_handle.h
字號:
/****************************************Copyright (c)**************************************************
** Guangzou ZLG-MCU Development Co.,LTD.
** graduate school
** http://www.zlgmcu.com
**
**--------------File Info-------------------------------------------------------------------------------
** File name: GPS_HANDLE.h
** Last modified Date: 2005-06-17
** Last Version: 1.0
** Descriptions: header file of GPRS
**
**------------------------------------------------------------------------------------------------------
** Created by: Yehaoben
** Created date: 2005-06-17
** Version: 1.0
** Descriptions: The original version
**
**------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
** Version:
** Descriptions:
**
********************************************************************************************************/
#ifdef GPRS_GLOBALS
#define GPRS_EXT
#else
#define GPRS_EXT extern
#endif
#include "GPRS_cfg.H"
#define GPRS_AT_CMD {"AT\r\n"}
typedef struct{
char RCVMSG[GPRS_CMDMaxSize];
char RCVCommand[GPRS_CMDMaxSize+100];
uint16 Status;//??
//bit0:idle
//bit1:sending command
//bit2:have been sended and wait for ok
//bit3:ring
//bit4:got message
//bit5:send message
uint16 SNDCmdLen;
uint16 RCVCmdLen;
uint16 GPRS_RCV_WR_PTR;
uint16 GPRS_MSG_WR_PTR;
OS_EVENT *GPRSCmdOK;
OS_EVENT *GPRSMsgWR;
OS_EVENT *GPRSRing;
}GPRS_DATA_TYPE;
GPRS_EXT GPRS_DATA_TYPE GPRS_TCB;
GPRS_EXT char AT_COMMAND[];
extern uint8 UART_Ini(uint32 baud);
/*********************************************************************************************************
** Function name: ZLG_GPRS_STOP_Command
** Descriptions: Send stop command to GPRS.
** input parameters: None
**
** Returned value: None
**
** Used global variables: None
** Calling modules: None
**
** Created by: Yehaoben
** Created Date: 2005/06/02
**-------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
/*********************************************************************************************************
** Function name: ZLG_GPRS_START_Command
** Descriptions: Send sart command to GPRS.
** input parameters: None
**
** Returned value: None
**
** Used global variables: None
** Calling modules: None
**
** Created by: Yehaoben
** Created Date: 2005/06/02
**-------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
/*********************************************************************************************************
** Function name: ZLG_GPRS_Send_AAC_Command
** Descriptions: Send allow all information to GPRS.
** input parameters: None
**
** Returned value: None
**
** Used global variables: None
** Calling modules: None
**
** Created by: Yehaoben
** Created Date: 2005/06/02
**-------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
/*********************************************************************************************************
** Function name: ZLG_GPRS_Initial
** Descriptions: Initial GPRS.
** input parameters: None
**
** Returned value: None
**
** Used global variables: None
** Calling modules: None
**
** Created by: Yehaoben
** Created Date: 2005/06/02
**-------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
GPRS_EXT uint8 ZLG_GPRS_Initial(void);
GPRS_EXT void ZLG_GPRS_CALL(char * number);
GPRS_EXT uint8 GPRSAutoTakeTheCall(void);
GPRS_EXT void ZLG_GPRS_PICKUP(void);
GPRS_EXT uint8 ZLG_GPRS_SND_MSG(char * number,char * SNDMSG);
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -