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

📄 gprs_handle.h

📁 uccos2的的源码文件
💻 H
字号:
/****************************************Copyright (c)**************************************************

********************************************************************************************************/

#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  UART1_Ini(uint32 baud);

/*********************************************************************************************************
** Function name:			GEC_GPRS_Initial
** Descriptions:			Initial GPRS.
** input parameters:		None
********************************************************************************************************/
GPRS_EXT uint8	GEC_GPRS_Initial(void);	
GPRS_EXT void	GEC_GPRS_CALL(char * number);
GPRS_EXT uint8 GPRSAutoTakeTheCall(void);
GPRS_EXT void	GEC_GPRS_PICKUP(void);
GPRS_EXT uint8	GEC_GPRS_SND_MSG(char * number,char * SNDMSG);

⌨️ 快捷键说明

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