GPS.h
上传用户:buddy3
上传日期:2022-06-12
资源大小:100k
文件大小:1k
- #define GPS_ANE 2
- #define GPS_TD 7
- #define GPS_wjfLen 20
- struct GPSGPRMC //0183协议数据
- {
- char GPS1_Head[6]; //GPS协议头 "$HZQJ"
- char GPS2_Command[7]; //GPS命令字,固定值为"$GPRMC"
- char GPS3_Time[GPS_TD]; //GPS时间
- char GPS4_A[GPS_ANE]; //GPS有效位
- char GPS5_weidu[GPS_wjfLen]; //GPS纬度
- char GPS6_NS[GPS_ANE]; //GPS南北半球
- char GPS7_jingdu[GPS_wjfLen]; //GPS经度
- char GPS8_EW[GPS_ANE]; //GPS东西半球
- char GPS9_Velocity[GPS_wjfLen]; //GPS速率
- char GPS10_FWJ[GPS_wjfLen]; //GPS方位角
- char GPS11_Date[GPS_TD]; //GPS日期
- char GPS12_wuxiao1[GPS_ANE]; //无效
- char GPS13_wuxiao2[GPS_ANE]; //无效
- char GPS14_V[Edition_Len]; //GPS程序版本
- char GPS15_ID[TNumber_Len]; //GPS终端ID
- char GPS16_State[State_Len]; //GPS状态
- char GPS17_Return[2]; //GPS返回值
-
- };extern struct GPSGPRMC GPS_GPRMC;
- //#define GPSData_Buf_Len 130 //上发的GPS数据长度
- extern void GPS_0183(char *p);
- extern void SendGPSData(void);
- extern char GPSState;
- extern const char GPS_V;
- extern const char GPS_A;
- extern char SendGPSData_Time;
- extern char GPS_Time;
- extern int GPSData_Protect;