gpsCtl.h 626 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __GPS_CTL_H__
  2. #define __GPS_CTL_H__
  3. #include "message.h"
  4. #define GPS_TABLE_NUM 7
  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. #pragma pack(pop)
  17. extern SUT_MESS sutMess;
  18. extern unsigned char gpsCheckCnt;
  19. extern const unsigned short GPS_TimeTable[GPS_TABLE_NUM];
  20. void gpsDataInit(void);
  21. unsigned short getGPSTimeValue(unsigned char index);
  22. void gpsProCtl(int dly);
  23. void gpsCheckInfo(void);
  24. #endif