1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #ifndef _NMEA_H_
- #define _NMEA_H_
- typedef enum{
- GPS_INVALID,
- GPS_ACTIVE
- }GPS_LOCATION_ENUM;
- typedef struct{
- unsigned char isGpsValid:1;//GPS定位标志
- unsigned char isBDWork:1;//北斗使能标志
- unsigned char South:1;//南北半球
- unsigned char West:1;//东西半球
- //时间 BCD UTC格式
- unsigned char year;
- unsigned char month;
- unsigned char day;
- unsigned char hour;
- unsigned char minu;
- unsigned char sec;
- //北京时间
- unsigned short Years;
- char Months;
- char Days;
- char Hours;
- char Minute;
- char Seconds;
- long Latitude;
- long Longitude;
- unsigned short Speed;//速度 节 放大10倍
- unsigned short Aspect;//方位 度
- unsigned short Altitude;//海拔 米
- unsigned char GPSNum;//GPS卫星使用个数
- unsigned char BDNum;//BD卫星使用个数
- unsigned char PDOP;//精度因子,放大十倍取整,范围0~63,大于63按63处理
- }NMEA_DEF;
- char * preNmea(char *nmea, char *target);
- void nmeaRmc(char *rcm);
- void nmeaGsa(char *gsa,int len);
- extern NMEA_DEF nmeaInfo;
- #endif
|