1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- /********************************************************************************
- * File Name: GPS.h
- * Function Describe: Header file for GPS.c
- * Explain:
- * Writer:
- * Date:
- *******************************************************************************/
- #ifndef __GPS_H
- #define __GPS_H
- /***********************************************************************************/
- #define GPS_TYPE_UBLOX 1 //ublox芯片方案
- #define GPS_TYPE_ZKW 2 //中科微芯片方案
- #define GPS_TYPE GPS_TYPE_ZKW //当前芯片方案类型
- #define GPS_PWR_PIN GPIO_Pin_0
- #define GPS_PWR_PORT GPIOB
- #define GPS_PWR_EN GPS_PWR_PORT->BSRR = GPS_PWR_PIN
- #define GPS_PWR_DIS GPS_PWR_PORT->BRR = GPS_PWR_PIN
- //#define GPS_MSG_DATA_BUF_LEN 660
- typedef struct SUT_GPS_INF
- {
- unsigned char isGpsWork:1;//GPS工作标志
- unsigned char isGpsValid:1;//GPS定位标志
- unsigned char isBDWork:1;//北斗使能标志
- unsigned char South:1;//南半球
- unsigned char West:1;//西半球
-
- unsigned char GpsCheckWorkCt;//GPS
- unsigned char BDCheckWorkCt;//GPS
- //时间 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卫星使用个数
- }SUT_GPS_INF;
- extern SUT_GPS_INF sutGpsInfo;
- void GpsInit(void);
- void process_nema(char *nema);
- void GpsConversionTime(void);
- /***********************************************************************************/
- #endif
|