⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addc.h

📁 有关树WDM 驱动的编程.里面包含了许多实例,学习硬件的可以参考哦
💻 H
字号:
#if !defined(AFX_ADDC_H__1D47DCC5_4F6F_11D4_88C3_930647F3705A__INCLUDED_)
#define AFX_ADDC_H__1D47DCC5_4F6F_11D4_88C3_930647F3705A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ADdc.h : header file
//
#include "adc.h"
/////////////////////////////////////////////////////////////////////////////
// CADdc dialog

class CADdc : public CDialog
{
// Construction
public:
	void Seaech();
HANDLE	hDevice;
 HANDLE	hDevice1;
	BOOL m_ad;
	CADdc(CWnd* pParent = NULL);   // standard constructor


//以下是用户加的自定义数据类型

//原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;

pci_cfg* m_p;
// Dialog Data
	//{{AFX_DATA(CADdc)
	enum { IDD = IDD_DIALOG7 };
	int		m_date;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CADdc)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX); 
	virtual void OnCancel();
	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CADdc)
	virtual BOOL OnInitDialog();
	afx_msg void OnTimer(UINT nIDEvent);
	virtual void OnOK();
	afx_msg void OnButton1();
	//}}AFX_MSG
	afx_msg void Handleint(WPARAM wparam,LPARAM lParam);
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_ADDC_H__1D47DCC5_4F6F_11D4_88C3_930647F3705A__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -