12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- #ifndef __GPS_DATA_H_
- #define __GPS_DATA_H_
- typedef enum{
- GPS_NULL,
- GNRMC=1,
- GPVTG,
- GNGGA,
- GPGSV,
- GBGSV,
- }GPS_DATA_TYPE;
-
- extern GPS_DATA_TYPE GPS_Data_Type;
- typedef struct SUT_GPS_INF
- {
- unsigned char isGpsWork:1;//GPS模块工作标志
- unsigned char isGpsValid:1;//GPS定位标志 0 GPS未定位 1 GPS已定位
-
- unsigned char year;
- unsigned char month;
- unsigned char day;
- unsigned char hour;
- unsigned char minu;
- unsigned char sec;
-
- unsigned char GPSVisible_num;
- unsigned char BDVisible_num;
- unsigned char startnum;//
- unsigned short hight;
-
- uint32_t longitue;//经度
- uint32_t latitue;//纬度
- unsigned int heading;//航向
- unsigned int headerSpeed;//航速
- unsigned short elevation;//海拔
-
- uint32_t speed;//速度
- uint32_t aspect;//方位
-
-
-
- uint32_t AvgSpeed;//平均速度
- uint32_t speedbuf[5];
- uint32_t StatisticsMile ;//历程统计
- unsigned char Status;
- unsigned char Location[16];
- unsigned char Speed[8];
- unsigned char Time[8];
-
- uint32_t testJD;
- uint32_t testWD;
-
- char NSFlag;//N 北纬 S 南纬
- char EWFlag;//E 东经 W 西经
- char g_GpsEnable; // enable;
- // unsigned char reAthCnt;//resend ath time max 5
- }SUT_GPS_INF;
- extern SUT_GPS_INF sutGpsInfo;
- void GPSRestart(void);
- void GPSStop(void);
- void GPSInit(void);
- void process_gps_data(char *buf,uint32_t size);
- void GpsInternalChange(unsigned int interval);
- #endif
|