commport.h

来自「串行端口的本质功能是作为CPU和串行设备间的编码转换器。当数据从 CPU经过串行」· C头文件 代码 · 共 43 行

H
43
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?