1234567891011121314151617181920212223242526 |
- #ifndef __GPS_H_
- #define __GPS_H_
- #include "main.h"
- #define USE_AGPS
- typedef struct{
- T_UINT8 status; //GS_ENUM GPS业务状态
- T_UINT16 waitCnt; //最小等待时间计数
- T_UINT16 netCnt; //下次开启GPS时间计数
- T_UINT8 stableCnt; //等待稳定延时计数
- T_UINT8 gpsValid:1; //GPS定位标志 GPS_LOCATION_ENUM
- T_UINT8 gpsFirstValid:1;//第一次登陆过的标志
- T_UINT8 gpsUpload:1;//可以上传了
- T_UINT8 switchF:1;
- T_UINT8 agpsFailCnt;//打开AGPS失败的次数
- }GPS_DEF;
- extern GPS_DEF gps;
- PT_THREAD (ptGpsTask(pt_timer_t *ptPool, struct pt *pt));
- void isGpsNeedStop(void);
- void userCtlGps(T_INT8 onoff);
- T_INT32 getGpsMinCnt(void);
- void UpdateGpsInterval(char *msg,int len);
- void GpsStart(void);
- #endif
|