1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef __GPS_CTL_H__
- #define __GPS_CTL_H__
- #include "message.h"
- #define GPS_TABLE_NUM 8
- #pragma pack(push)
- #pragma pack(1)
- typedef struct{
- unsigned char Update;
- unsigned char forcePullGroupOn;
- unsigned char startCntFlag;
- unsigned char skipCnt;
- unsigned char GBKMess1[SMS_SIGNAL_LEN+1];
- unsigned short len;
- unsigned char codeType;
- }SUT_MESS;
- typedef struct{
- unsigned char bblF:1;//部标是否打开
- unsigned char bbAuth:1;//部标鉴权状态
- unsigned char gpsF:1;//GPS是否打开
- unsigned char gpsLocated:1;//GPS是否定位
- unsigned char update:1;//定位经纬度刷新
- unsigned int Lat;//定位伟度
- unsigned int Long;//定位经度
- }GPS_DEF;
- #pragma pack(pop)
- extern SUT_MESS sutMess;
- extern GPS_DEF gpsInfo;
- void gpsDataInit(void);
- unsigned short getGPSTimeValue(unsigned char index);
- void gpsProCtl(int dly);
- void proGpsMsg(char *msg);
- void gpsCheckInfo(void);
- #endif
|