📄 logic.h
字号:
#if !defined(AFX_LOGIC_H__FD8221AC_4F57_11D4_88C3_930647F3705A__INCLUDED_)
#define AFX_LOGIC_H__FD8221AC_4F57_11D4_88C3_930647F3705A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// logic.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// Clogic dialog
class Clogic : public CDialog
{
// Construction
public:
void Readdate_eightbit();
Clogic(CWnd* pParent = NULL); // standard constructor
HANDLE hDevice;
HANDLE hDevice2;
//以下是用户加的自定义数据类型
//原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;
};
//原Mem驱动头文件定义的数据类型
LARGE_INTEGER Phy_Address;
ULONG mem_length; //modified by Long Yachun
struct Mem_Param
{
ULONG mdr_PhysicalAddress;
PVOID mdr_LinearAddress;
}*pMem;
// Dialog Data
//{{AFX_DATA(Clogic)
enum { IDD = IDD_DIALOG3 };
int m_status1;
int m_status2;
int m_status3;
int m_status4;
int m_status5;
int m_status7;
int m_status8;
int m_status6;
//}}AFX_DATA
pci_cfg* m_p;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(Clogic)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnCancel();
//}}AFX_VIRTUAL
// Implementation
protected:
BYTE d1;
struct Write_AD* W_AD;
DWORD nRet,data;
// Generated message map functions
//{{AFX_MSG(Clogic)
virtual BOOL OnInitDialog();
afx_msg void OnTimer(UINT nIDEvent);
virtual void OnOK();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_LOGIC_H__FD8221AC_4F57_11D4_88C3_930647F3705A__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -