?? serial.h
字號:
// --------------------------------------------------------------------------------------
// (c) 2003 www.winapi.net
//
// Serial.h
//
// Headerdatei f黵 eine einfache, aber leistungsf鋒ige
// Kommunikation 黚er die Serielle Schnittstelle
// --------------------------------------------------------------------------------------
#ifndef __SERIAL_H__
#define __SERIAL_H__
class CSerial
{
public:
CSerial();
~CSerial();
BOOL Open (int nComPortNr, int nBaud, int nBits, int nParity, int nStopp);
BOOL Close (void);
BOOL ModeSet (int nBaud, int nBits, int nParity, int nStopp);
BOOL SetTimeout (int iTotalReadTimeout);
BOOL IsOpen (void);
int ReadData (char *buffer, int iMaxCount);
int SendData (const char *buffer, int iBytesToWrite);
BOOL WriteCommByte (unsigned char ucByte);
private:
HANDLE hComm;
DCB dcb_alt;
COMMTIMEOUTS timeouts_alt;
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -