📄 ram.h
字号:
#if !defined(AFX_RAM_H__27973E6D_58E7_11D4_88C5_95D23268445B__INCLUDED_)
#define AFX_RAM_H__27973E6D_58E7_11D4_88C5_95D23268445B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Ram.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CRam dialog
class CRam : public CDialog
{
// Construction
public:
DWORD addoff;
CRam(CWnd* pParent = NULL); // standard constructor
//CHexEdit m_datescr;
// Dialog Data
//{{AFX_DATA(CRam)
enum { IDD = IDD_DIALOG16 };
int m_size;
int m_way;
//}}AFX_DATA
//以下是用户加的自定义数据类型
//原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.
//原Io_wr驱动头文件定义的数据类型
struct Write_AD
{
ULONG Address;
UCHAR Data;
};
struct Write_AD* W_AD;
DWORD nRet;
HANDLE hEvent;
//原Mem驱动头文件定义的数据类型
LARGE_INTEGER Phy_Address;
ULONG mem_length; //modified by Long Yachun
struct Mem_Param
{
ULONG mdr_PhysicalAddress;
PVOID mdr_LinearAddress;
}*pMem;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRam)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CRam)
virtual BOOL OnInitDialog();
afx_msg void OnRadio1();
afx_msg void OnRadio2();
afx_msg void OnRadio3();
virtual void OnOK();
afx_msg void OnWrite();
afx_msg void OnRead();
afx_msg void OnClose();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_RAM_H__27973E6D_58E7_11D4_88C5_95D23268445B__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -