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

📄 amccpci3windlg.h

📁 The PCI Local bus concept was developed to break the PC data I/O bottleneck and clearly opens the d
💻 H
字号:
// AMCCPCI3WinDlg.h : header file
//

#if !defined(AFX_AMCCPCI3WINDLG_H__60055AB5_4A96_4DA5_8352_3C59B2136202__INCLUDED_)
#define AFX_AMCCPCI3WINDLG_H__60055AB5_4A96_4DA5_8352_3C59B2136202__INCLUDED_

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

/////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////
//
// Version History:
//
// 1.00-1.07       Various fixes and corrections during development.
//
// 1.08  07/22/04  Corrected the checksum of NVRAM data to store 2's compliment of computed
//                   checksum. Was just the checksum.
// 1.09  10/12/04  Added Sleep( 1 ) between each write on NVRAM when writting all.
// 1.10  04/11/05  Added 20 millsecond delay after each nvRAM write. This allowed
//                   the driver function to be used and (probably) allowed the
//                   serial nvRAM writes time to finish befor the next operation.
// 1.11  04/19/05  Modified the Sample_WriteNVRAM function in the DLL to read back the nvRAM
//                   data until the read matches what was written. It will wait a maximum of 15
//                   mls and then just return. If the data written was 0xff, then we just wait
//                   15 mls, since while data is being written, we read 0xff and can not
//                   really tell if the write was done.
/////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////
#define VER_NUMBER "Ver 1.11"

#define APP_NAME "AMCCNVRAMWin"
#define SHORT_APP_NAME "NVRAMWin"

// The following 3 lines are for revision checking
#define COMPILE_VERSION_BINARY 0x0111
#define GUI_EXE_DISPLAY_NAME APP_NAME
#define GUI_APP_DISPLAY_NAME APP_NAME

#define NUM_BOARDS 4

/////////////////////////////////////////////////////////////////////////////
// CAMCCPCI3WinDlg dialog
class CNVRAMBuild;

class CAMCCPCI3WinDlg : public CDialog
{
// Construction
public:
	CAMCCPCI3WinDlg(CWnd* pParent = NULL);	// standard constructor

	void BroadcastUpdateDisplay(void);

	int atoh( char *str );
	int ConvertStringToNumber( int base, char *string );
	void ConvertNumberToString( unsigned short number, unsigned short count, int base, char *string );
	void TestError( UINT32 error_code );
	void TestErrorString( UINT32 error_code, LPSTR str1, LPSTR str2 );

	void DelayWait( DWORD waittime );

	CNVRAMBuild *pNVRAMBuild[NUM_BOARDS];

	int max_boards;
	int cur_board;

	bool amcc_mode;

	char start_dir[256];

	UINT32 gbl_vid[NUM_BOARDS];
	UINT32 gbl_did[NUM_BOARDS];
	UINT32 gbl_svid[NUM_BOARDS];
	UINT32 gbl_sdid[NUM_BOARDS];

// Dialog Data
	//{{AFX_DATA(CAMCCPCI3WinDlg)
	enum { IDD = IDD_AMCCPCI3WIN_DIALOG };
		// NOTE: the ClassWizard will add data members here

	CButton m_Button_NVRAM_BUILD;

	CComboBox m_Combo_BOARD_SELECT;

	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAMCCPCI3WinDlg)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CAMCCPCI3WinDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButtonScan();
	afx_msg void OnButtonCfg();
	afx_msg void OnButtonOpr();
	afx_msg void OnButtonNvramBuild();
	afx_msg void OnButtonAmccdiag();
	afx_msg void OnSelchangeComboBoardSelect();
	afx_msg void OnButtonGeneralOprControl();
	afx_msg void OnButtonCfgControl();
	virtual void OnCancel();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:

	void SetBoards( void );
	void ShutDownAll( void );

	void Test_Code_Revisions( void );

};

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

#endif // !defined(AFX_AMCCPCI3WINDLG_H__60055AB5_4A96_4DA5_8352_3C59B2136202__INCLUDED_)

⌨️ 快捷键说明

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