port.h

来自「自己开发的」· C头文件 代码 · 共 24 行

H
24
字号
#if !defined(MPORT)
#define MPORT


#ifdef __cplusplus
extern "C" 
{
#endif

	inline bool IsOpen();
	bool OpenPort(unsigned long xPort, unsigned long xBabd, unsigned char xDataSize, 
				unsigned char xParity, unsigned char xStopBit, unsigned long InputBuffSize, 
				unsigned long OutputBuffSize, unsigned long dwTimerOut);
	void ClosePort();
	void ClearBuffer();
	unsigned long ReadChar(unsigned long dwBufferLength, char *buff, unsigned long dwWaitTime);
	unsigned long WriteChar(unsigned long dwBufferLength, char *buff);
    
#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

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