⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gps_handle.h

📁 C语言源代码及相关资料
💻 H
字号:
/****************************************Copyright (c)**************************************************
** Modified by: 
** Modified date:
** Version:	
** Descriptions: 
**
********************************************************************************************************/

#ifndef __GPS_H
#define __GPS_H


#define			GPS_CMDMaxSize		80		/*revice Command Line length*/
#define			GPS_CMDNUM			7		/*How many command it can process at the same time*/

#define		MAXSATELLITE	12

typedef	struct{
	char	Data[GPS_CMDMaxSize];
	uint8	State;//1: recive $ ; 2: send to handle ;
}GPSDataQ_TYPE;

typedef	struct{		//
	uint8	Day;
	uint8	Mon;
	uint8	Year;
	uint8	Hour;
	uint8	Min;
	uint8	Sec;
	uint16	ms;
	uint8	Week;
	uint8	Flag;	//A right ; V wrong
}Time_TYPE;
typedef	struct{
	char	Indicator;
	uint8	dd;
	uint8	mm;
	uint16	mmmm;
}Latitude_TYPE;
typedef	struct{
	char	Indicator;
	uint16	ddd;
	uint8	mm;
	uint16	mmmm;
}Longtitude_TYPE;
typedef	struct{
	uint8	ID;
	uint16	AZnEL;//118 degrees and 79 degrees to 11879;
	uint8	SNR;//satellite signal dBHz
}Stl_TYPE;

typedef struct{
    uint16  ddd;
    uint8   m;
}Direction_TYPE;


typedef	struct{
	Time_TYPE		Time;//世界时间
	Latitude_TYPE	Latitude;//纬度
	Longtitude_TYPE	Longitude;//经度
	uint16			Altitude;//120 to 12.0 meter//海拔高度
	uint8			HDOP;//18 to 1.8//水平精度系数			
	uint8			VDOP;//18 to 1.8//垂直精度系数				
	uint8			StlUsed;//卫星个数
	//Stl_TYPE		Satellite[MAXSATELLITE];//卫星状态;			
	uint16			Speed;//速度18 to 1.8 Km/hr
	Direction_TYPE	Direction;//方向 0 to 360 //度
	uint8			Status;//HIGH 4bit is for FIX;LOW 4bit is for 3D/2D;
}GPS_DATA_TYPE;

extern	INT32U weekdayGet(INT32U uiYear,INT32U uiMonth,INT32U uiDay);
extern	uint8	recv_GPS_data(char * temptr, uint16 uiNum);
extern	uint8	Reset_GPS_DATA(RTC_DATETIME *	dateTime);

#endif 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -