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

📄 gprs_handle.h

📁 周立功公司2410开发板上所有基于UCOS开发的源代码
💻 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);

⌨️ 快捷键说明

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