?? gpsdevice.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 + -