📄 serport.h
字号:
/*
Module : SERPORT.H
Purpose: Simple MFC class to support access to GPS receivers via serial ports
Please note this is not a generic serial port class
Created: PJN / 28-12-1997
History: None
Copyright (c) 1997 by PJ Naughter.
All rights reserved.
*/
#ifndef __SERPORT_H__
#define __SERPORT_H__
////////////////////////// Includes //////////////////////////////////////
#include <gps.h>
////////////////////////// Classes ///////////////////////////////////////
class CGpsSerialPort : public CObject
{
public:
//constructors / Destructors
CGpsSerialPort();
~CGpsSerialPort();
//methods
BOOL Open(LPCGPSDEVINFO lpDevInfo);
void Close();
DWORD Read(LPBYTE psBuffer, UINT nBytes) const;
protected:
HANDLE m_hPort;
};
#endif //__SERPORT_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -