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

📄 idcheckdlg.h

📁 m16c flash startor 源码
💻 H
字号:
#if !defined(AFX_IDCHECKDLG_H__C8D448A3_1AF9_11D2_AEFD_00C04FD601E8__INCLUDED_)
#define AFX_IDCHECKDLG_H__C8D448A3_1AF9_11D2_AEFD_00C04FD601E8__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "CheckMemorryCmd.h"

// IDCheckDlg.h : ahedder file
//
// This software can be offered for free and used as necessary to aid 
// in your program developments.
//
// RENESAS TECHNOLOGY CORPORATION, RENESAS SOLUTIONS CORPORATION,
// and related original software developers assume no responsibility 
// for any damage or infringement of any third-party's rights, originating 
// in the use of the following software.
// Please use this software under the agreement and acceptance of these conditions. 
//
// Copyright(C)1998(2003) RENESAS TECHNOLOGY CORPORATION AND RENESAS SOLUTIONS CORPORATION
// ALL RIGHTS RESERVED
//

// for file filter
#define	FS_INTEL			_T("Intel Hex File (*.hex)|*.hex|")
#define	FS_MOT				_T("Motlora Hex File (*.s;*.mot;*.s2)|*.s;*.mot;*.s2|")
#define	FS_BOOT				_T("Boot Program (*.btp)|*.btp|")
#define FS_ALLFILES			_T("All Files (*.*)|*.*|")

/////////////////////////////////////////////////////////////////////////////
// CIDCheckDlg dialog

class CIDCheckDlg : public CDialog
{
// construction
public:
	CIDCheckDlg(CWnd* pParent = NULL);   // the standard constructor

// Dialog data
	//{{AFX_DATA(CIDCheckDlg)
	enum { IDD = IDD_ID_CHECK_DIALOG };
	CString	m_strFilename;
	CString	m_strID1;
	CString	m_strID2;
	CString	m_strID3;
	CString	m_strID4;
	CString	m_strID5;
	CString	m_strID6;
	CString	m_strID7;
	int		m_MpuIndex;
	//}}AFX_DATA


// Override
	// ClassWizard generates the override of the hypothesis function.
	//{{AFX_VIRTUAL(CIDCheckDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation 
protected:

	// The message map function that was generated.
	//{{AFX_MSG(CIDCheckDlg)
	afx_msg void OnButtonReffer();
	virtual void OnOK();
	virtual void OnCancel();
	afx_msg void OnMpu3();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

////////////////////////////////////////////////////////////////////////
	// mpu type
private: static int s_MpuIndex;
	//  The data of 1 column is transformed.
private: BYTE charToByte(TCHAR chHex);

	//  The data of 1 byte is transformed.
public: BOOL strToByte(BYTE* byteHex, CString strHex);

private: void GetAddressOnly(unsigned int* nStartAddress, unsigned int* nEndAddress);

// I check whether ID passed.
private: int checkID(void);


// It is the serial communication object.
protected: CSerialComm& GetSerialComm(void){ return ((CM16CflshApp*)AfxGetApp())->GetSerialComm(); }

// The Hex file transformation object.
public: BOOL MakeImage(CString strFilePath) { return ((CM16CflshApp*)AfxGetApp())->MakeImage(strFilePath); }
public: CLineImage* GetPage(BYTE* byteData, int nPage) { return ((CM16CflshApp*)AfxGetApp())->GetPage(byteData, nPage); }

// The access function for the flag for the ID check.
public: void SetAcceptedID(BOOL bID) { ((CM16CflshApp*)AfxGetApp())->SetAcceptedID(bID); }
public: const BOOL GetAcceptedID(void) { return ((CM16CflshApp*)AfxGetApp())->GetAcceptedID(); }

};

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio inserts the declaration of addition immediately before the front line.

#endif // !defined(AFX_IDCHECKDLG_H__C8D448A3_1AF9_11D2_AEFD_00C04FD601E8__INCLUDED_)

⌨️ 快捷键说明

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