📄 commport.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 + -