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

📄 danduadcdlg.h

📁 wince操作系统
💻 H
字号:
// DanDuAdcDlg.h : header file
//

#if !defined(AFX_DANDUADCDLG_H__72709589_F018_46D2_963B_3318CE06C051__INCLUDED_)
#define AFX_DANDUADCDLG_H__72709589_F018_46D2_963B_3318CE06C051__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

/////////////////////////////////////////////////////////////////////////////
// CDanDuAdcDlg dialog
#ifdef __cplusplus
extern "C"
{
#endif

BOOL VirtualCopy( LPVOID, LPVOID, DWORD, DWORD );
//CMAMADEDlg ABC;
#ifdef __cplusplus
}
#endif


#define ADC_BASE      0xB1800000 // 0x58000000

typedef struct {
        unsigned int 	rADCCON;
        unsigned int 	rADCTSC;
        unsigned int	rADCDLY;
        unsigned int 	rADCDAT0;
        unsigned int 	rADCDAT1;
}ADCreg ;

#define CLKPWR_BASE    0xB0C00000 // 0x4C000000
typedef struct {
    unsigned long       rLOCKTIME;//00
    unsigned long       rMPLLCON;//04
    unsigned long       rUPLLCON;//08
    unsigned long       rCLKCON;//0C
    unsigned long       rCLKSLOW;//10
    unsigned long       rCLKDIVN;//14
}CLKPWRreg;





class CDanDuAdcDlg : public CDialog
{
// Construction
public:
	CDanDuAdcDlg(CWnd* pParent = NULL);	// standard constructor
    volatile ADCreg *v_pADCRegs;
	volatile CLKPWRreg *v_pCLKPWRegs;
	unsigned int usConData;
// Dialog Data
	//{{AFX_DATA(CDanDuAdcDlg)
	enum { IDD = IDD_DANDUADC_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CDanDuAdcDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnButton1();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_DANDUADCDLG_H__72709589_F018_46D2_963B_3318CE06C051__INCLUDED_)

⌨️ 快捷键说明

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