gpsCtl.h 897 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef __GPS_CTL_H__
  2. #define __GPS_CTL_H__
  3. #include "message.h"
  4. #define GPS_TABLE_NUM 8
  5. #pragma pack(push)
  6. #pragma pack(1)
  7. typedef struct{
  8. unsigned char Update;
  9. unsigned char forcePullGroupOn;
  10. unsigned char startCntFlag;
  11. unsigned char skipCnt;
  12. unsigned char GBKMess1[SMS_SIGNAL_LEN+1];
  13. unsigned short len;
  14. unsigned char codeType;
  15. }SUT_MESS;
  16. typedef struct{
  17. unsigned char bblF:1;//部标是否打开
  18. unsigned char bbAuth:1;//部标鉴权状态
  19. unsigned char gpsF:1;//GPS是否打开
  20. unsigned char gpsLocated:1;//GPS是否定位
  21. unsigned char update:1;//定位经纬度刷新
  22. unsigned int Lat;//定位伟度
  23. unsigned int Long;//定位经度
  24. }GPS_DEF;
  25. #pragma pack(pop)
  26. extern SUT_MESS sutMess;
  27. extern GPS_DEF gpsInfo;
  28. void gpsDataInit(void);
  29. unsigned short getGPSTimeValue(unsigned char index);
  30. void gpsProCtl(int dly);
  31. void proGpsMsg(char *msg);
  32. void gpsCheckInfo(void);
  33. #endif