sio.h

来自「Read nmea file and send to com port. yo」· C头文件 代码 · 共 38 行

H
38
字号
// sio.h : header file
//
#ifndef SIO_H
#define SIO_H

/////////////////////////////////////////////////////////////////////////////
// CSio window

class CSio
{
	int m_bErrorFlag;

public:	
	HANDLE m_hFile;		// handle to comm device
	CString m_sFileName;
	int m_nBaud;
	int m_nPort;

// Construction
public:
	CSio();
	~CSio();
// Attributes
public:

// Operations
public:
	BOOL IsConnectError(){ return m_bErrorFlag; }
	BOOL InitComm(int nPort,int nBaud,int nParity,int nData,int nStop, BOOL bNoError);
	BOOL Close();
	void OpenFile(CString sFileName);
	DWORD Write(BYTE *pBuff, DWORD dwLen);
	DWORD Read(BYTE *pData, DWORD dwLen);
};

/////////////////////////////////////////////////////////////////////////////
#endif

⌨️ 快捷键说明

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