comportio.h

来自「读取GPS数据」· C头文件 代码 · 共 30 行

H
30
字号
// COMPortIO.h: interface for the CCOMPortIO class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_COMPORTIO_H__8CD71916_2578_447E_866C_78852ACCFC59__INCLUDED_)
#define AFX_COMPORTIO_H__8CD71916_2578_447E_866C_78852ACCFC59__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CCOMPortIO  
{
public:
	BOOL Close();
	BOOL InitComm(const UINT nPort, const UINT nBaud, const UINT nParity, 
		          const UINT nData, const UINT nStop, const BOOL bNoError);
	DWORD Write(const void *pBuff, const DWORD dwLen);
	DWORD Read(void *pData, const DWORD dwLen);

	CCOMPortIO();
	virtual ~CCOMPortIO();
private:
	UINT m_nBaud;
	UINT m_nPort;
	HANDLE m_hFile;
};

#endif // !defined(AFX_COMPORTIO_H__8CD71916_2578_447E_866C_78852ACCFC59__INCLUDED_)

⌨️ 快捷键说明

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