⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sio.h

📁 Read nmea file and send to com port. you can easly simulate the gps application
💻 H
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -