📄 gprs.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -