flashwritedlg.h

来自「系统通过JTAG接口烧结挂接在LXFXP2 上的s29gl256N的FLASH的」· C头文件 代码 · 共 76 行

H
76
字号
// FlashWriteDlg.h : header file
//

#if !defined(AFX_FLASHWRITEDLG_H__22A863B9_E236_4557_9C81_F732F4017330__INCLUDED_)
#define AFX_FLASHWRITEDLG_H__22A863B9_E236_4557_9C81_F732F4017330__INCLUDED_

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

#include "TextProgressCtrl.h"
/////////////////////////////////////////////////////////////////////////////
// CFlashWriteDlg dialog

class CFlashWriteDlg : public CDialog
{

// Construction
public:
	int CheckFlash(int offset,FILE *stream,int dataLen);
	int EraseFlash(int offset,int dataLen);
	int WriteFlash(FILE *stream, int Src, int size);
	int ReadFlash(FILE* stream, int Src,int size);
	void UpdateProgress(int iWrite, int percent);
	void TestTempFuncs();
	int BurnStatus;
	int iFlashStartOffset;
	int iFlashBurnSize;
	CFlashWriteDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CFlashWriteDlg)
	enum { IDD = IDD_FLASHWRITE_DIALOG };
	CString	m_strBurnOperates;
	CTextProgressCtrl	m_CtlBurnProgress;
	CComboBox	m_FlashType;
	CComboBox	m_CPUType;
	int		m_WriteBinToFlash;
	CString	m_FileDirectory;
	CString	m_FlashStartOffset;
	CString	m_csFlashProgSize;
	//}}AFX_DATA

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

// Implementation
protected:
	BOOL bFlashInitialized;
	int CString2IntValidate(CString OffsetStart);
	void ReallyExcuteBurnRead();
	HICON m_hIcon;



	// Generated message map functions
	//{{AFX_MSG(CFlashWriteDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnTestdlg();
	afx_msg void OnStartOperate();
	afx_msg void OnBtnFileselect();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_FLASHWRITEDLG_H__22A863B9_E236_4557_9C81_F732F4017330__INCLUDED_)

⌨️ 快捷键说明

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