📄 serial.h
字号:
#if !defined(AFX_SERIAL_H__981F1CE1_F69E_11D5_AC16_0080C80496C8__INCLUDED_)
#define AFX_SERIAL_H__981F1CE1_F69E_11D5_AC16_0080C80496C8__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Serial.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CSerial dialog
#define FC_DTRDSR 0x01
#define FC_RTSCTS 0x02
#define FC_XONXOFF 0x04
#define ASCII_BEL 0x07
#define ASCII_BS 0x08
#define ASCII_LF 0x0A
#define ASCII_CR 0x0D
#define ASCII_XON 0x11
#define ASCII_XOFF 0x13
class CSerial : public CDialog
{
// Construction
public:
CSerial(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CSerial)
//enum { IDD = _UNKNOWN_RESOURCE_ID_ };
enum { IDD = IDD_ACREMOTE_DIALOG};
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSerial)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CSerial)
// NOTE: the ClassWizard will add member functions here
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
BOOL Open (int,int,char,int,int);
BOOL Close( void );
BOOL IsOpened(void);
int SendData(const char*,int);
BOOL WriteCommByte(unsigned char );
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SERIAL_H__981F1CE1_F69E_11D5_AC16_0080C80496C8__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -