📄 mos.h
字号:
#if !defined(AFX_MOS_H__F9517845_E654_4922_AD70_4D28301E66D0__INCLUDED_)
#define AFX_MOS_H__F9517845_E654_4922_AD70_4D28301E66D0__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// mos.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// Cmos dialog
class Cmos : public CDialog
{
// Construction
public:
Cmos(CWnd* pParent = NULL); // standard constructor
HANDLE hDevice;
//以下是用户加的自定义数据类型
//原PCI_con驱动头文件定义的数据类型
LARGE_INTEGER config[6];
ULONG Length[6];
ULONG IRQ;
struct pci_cfg
{
ULONG MemBase; //memory base address
ULONG MemLength; //memory length
ULONG IOBase[2]; //IO base address
ULONG IOPortLength[2];//IO base length
ULONG IRQ; //Interrupt number
ULONG DMA; //DMA number.
}*pci; //config paramer struct.
int data;
//原Io_wr驱动头文件定义的数据类型
struct Write_AD
{
ULONG Address;
UCHAR Data;
};
struct Write_AD* W_AD;
DWORD nRet;
// Dialog Data
//{{AFX_DATA(Cmos)
enum { IDD = IDD_DIALOG18 };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(Cmos)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(Cmos)
afx_msg void OnButton1();
afx_msg void OnButton2();
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MOS_H__F9517845_E654_4922_AD70_4D28301E66D0__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -