gprs.h

来自「一个PPP上网协议源码,可通过GPRS网络接入因特网.」· C头文件 代码 · 共 26 行

H
26
字号
#if !defined( _GPRS_H )
#define _GPRS_H

enum PPPGPRSState { POWERON=0, PPPINIT, ATE0, ATCGATT, ATCGATT_1,
		    ATCGDCONT, ATD99, PPPLINK, PPPLINKUP, PPPTERM };

/*/////////////////////////////////////////////////////////////
   Description: PPP link-session management
   Return: state of the current PPP session
	   = 0: Power on the GPRS module
	   = 1: PPP network initialization
	   = 2: verify AT command(ATE0)
	   = 3: check GPRS attachment(AT+CGATT?)
	   = 4: force GPRS attached(AT+CGATT=1)
	   = 5: define PDP context(AT+CGDCONT=...)
	   = 6: request GPRS service(ATD *99#)
	   = 7: PPP configuration
	   = 8: PPP linkup
	   = 9: force PPP down,including poweroff GPRS module
///////////////////////////////////////////////////////////////*/
PPPGPRSState  PPP_Running( );

// shutdown the current PPP session, and restart a new PPP session.
void PPP_Restart( );

#endif

⌨️ 快捷键说明

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