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

📄 commport.h

📁 可以接收NMEA-0183格式的GPS数据自动化搜索本枸的GPS接口
💻 H
字号:
// CommPort.h: interface for the CCommPort class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_COMMPORT_H__296B5A90_EA73_48BE_BE0C_2E7BBD98D279__INCLUDED_)
#define AFX_COMMPORT_H__296B5A90_EA73_48BE_BE0C_2E7BBD98D279__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
struct BLCO
{
	double B;
	double L;
};
struct GPSInfo
{
	BLCO co;
	unsigned short sn;
	short speed;
	short direction;
};

class CCommPort  
{
public:
	void ClearCommBuf(int iType);
	void ShowSatPos();
	void StartRead();
	void ClosePort();
	void SendByte(HANDLE hPort,BYTE Byte);
	BOOL InitGPS();
	CString FindGPSPort();
	GPSInfo ReadPortData();
	CCommPort();
	GPSInfo gpsinfo;
	virtual ~CCommPort();

};

#endif // !defined(AFX_COMMPORT_H__296B5A90_EA73_48BE_BE0C_2E7BBD98D279__INCLUDED_)

⌨️ 快捷键说明

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