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

📄 gpsdevice.h

📁 Gpsapi 2.0(标准mobile接口)
💻 H
字号:
/**************************************************************************/
/*                                                                        */
/* Copyright (c) 2000-2008  YULONG Company                         */
/*                 宇龙计算机通信科技(深圳)有限公司  版权所有 2000-2008 */
/*                                                                        */
/* PROPRIETARY RIGHTS of YULONG Company are involved in the         */
/* subject matter of this material.  All manufacturing, reproduction, use,*/
/* and sales rights pertaining to this subject matter are governed by the */
/* license agreement.  The recipient of this software implicitly accepts  */ 
/* the terms of the license.                                              */
/* 本软件文档资料是宇龙公司的资产,任何人士阅读和使用本资料必须获得        */
/* 相应的书面授权,承担保密责任和接受相应的法律约束.                       */
/*                                                                        */
/**************************************************************************/
#ifndef _GPSDEVICE_H_
#define _GPSDEVICE_H_

#include "nmeastring.h"
 
/////////////////////////////////////////////////
#define  GPS_GET_SPAN    1000
#define  MAX_READBUFFER		(1024*12)
#define  READ_FILE_PATH    "\\sd\\gps.txt"

class CGpsDevice 
{
// Attributes
public:
	CGpsDevice();           // protected constructor used by dynamic creation
	~CGpsDevice();

public:
	GPS_POSITION* GetData();
	GPSData* GetUnfiltedData();
	
public:

	// 设置消息的窗口句柄
	void SetMessageWnd( HWND hWnd );
	void SetNewHandle(HANDLE hNewHandle);

	BOOL Receive();
	BOOL GetSeting(int &nComID,int &nBaudRate,int &nByteSize );
	UINT GetStatus();
	BOOL Config(int nComID,int nBaudRate,int nByteSize);
	void CutConnect();
	BOOL Connect();
#ifndef _DISABLE_8360_GPS_
#ifdef _VER_8360_	
	BOOL GPSOpen();
	BOOL GPSPowerReset();
	void GPSClose();

#endif
#endif
private:
	BOOL ReadLine();
	
public:
	
//	ST_GPSDATA m_stGpsData;
	GPS_POSITION   m_GpsDataInfo;
	int		m_nComID;
	int 	m_wBaudRate;
	int		m_nByteSize;
	char*	m_pszReceive; //接收字符串	

	NmeaString      m_nmeaString; 
	HANDLE	        m_hComm;
//	volatile BOOL	m_bGpsOpened;//gps已打开标志
    BOOL	m_bGpsOpened;//gps已打开标志
	BOOL	m_bPause;//暂停接收

	HANDLE	m_hEvent;
	HWND    m_hWnd;

	HANDLE     m_hNewLocationData;    //新数据的信号量标志

	int m_bLogGpsData;
	int m_bReadFormFile;
	double m_delayTime;
#ifndef _DISABLE_8360_GPS_
#ifdef _VER_8360_
	HANDLE  m_hGPS;
#endif
#endif
};

#endif


⌨️ 快捷键说明

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