20260324
This commit is contained in:
53
IAPV1.1/Driver/L76X/L76X.h
Normal file
53
IAPV1.1/Driver/L76X/L76X.h
Normal file
@ -0,0 +1,53 @@
|
||||
#ifndef _L76X_H_
|
||||
#define _L76X_H_
|
||||
|
||||
//#include "DEV_Config.h"
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include "bsp.h"
|
||||
#include <stdio.h>
|
||||
#define BUFFSIZE 800
|
||||
|
||||
#define false 0
|
||||
#define true 1
|
||||
|
||||
//定义数组长度
|
||||
#define GPS_Buffer_Length 80
|
||||
#define UTCTime_Length 11
|
||||
#define latitude_Length 11
|
||||
#define N_S_Length 2
|
||||
#define longitude_Length 12
|
||||
#define E_W_Length 2
|
||||
#define UTCData_Length 11
|
||||
|
||||
typedef struct SaveData
|
||||
{
|
||||
char GPS_Buffer[GPS_Buffer_Length];
|
||||
char GGA_Buffer[GPS_Buffer_Length];
|
||||
char isGetData; //是否获取到GPS数据
|
||||
char isParseData; //是否解析完成
|
||||
char UTCTime[UTCTime_Length]; //UTC时间
|
||||
char latitude[latitude_Length]; //纬度
|
||||
char N_S[N_S_Length]; //N/S
|
||||
char longitude[longitude_Length]; //经度
|
||||
char E_W[E_W_Length]; //E/W
|
||||
char isUsefull; //定位信息是否有效
|
||||
char UTCData[UTCData_Length];
|
||||
char Flag_finish_gnss;
|
||||
} _SaveData;
|
||||
typedef struct {
|
||||
double Lon;
|
||||
double Lat;
|
||||
}Coordinates;
|
||||
extern _SaveData Save_Data;
|
||||
extern double Lat_f,Lon_f;
|
||||
void parseGpsBuffer(void);
|
||||
void printGpsBuffer(void);
|
||||
void L76X_Sturct_Clear(void);
|
||||
Coordinates L76X_Baidu_Coordinates(void);
|
||||
Coordinates L76X_Google_Coordinates(void);
|
||||
Coordinates L76X_GPS84_Coordinates(void);
|
||||
void L76X_POWER_ON(void);
|
||||
void L76X_POWER_OFF(void);
|
||||
void L76C_Process(void);
|
||||
#endif
|
||||
Reference in New Issue
Block a user