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

📄 ppgnewdlg.h

📁 烧录器的上位机控制程序代码,和下位机程序代码,包括USB通讯固件
💻 H
字号:
// PPGNEWDlg.h : header file
//

#if !defined(AFX_PPGNEWDLG_H__34D7B083_ECAF_4668_A2CD_30CEE40FAC28__INCLUDED_)
#define AFX_PPGNEWDLG_H__34D7B083_ECAF_4668_A2CD_30CEE40FAC28__INCLUDED_

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


/////////////////////////////////////////////////////////////////////////////
// CPPGNEWDlg dialog
#include "EasyD12.h"
class CPPGNEWDlg : public CDialog
{
// Construction
public:
	void Buzzer_N(int time);
	BOOL m_bverify_file;

	WORD CONFIG_BLANK;
	int RomSize;
	BOOL MyPinTest();
	void MyVerify_FLASH(void);
	BOOL m_bverify_f;
	void MyWriteVerify_FLASH(void);
	BOOL m_bWriteVerify_f;
	void MyBlankProVerify();

	void MyVerifyOtp();
	void MyWriteVerifyOtp();
	void MyReadOtp();
	BOOL m_bblank;
	void MyBlank(void);

	void MyReadFlash();
	void MyWriteFlash();
	BOOL m_bnewflash;
	BOOL m_breadflash;
	BOOL m_breadotp;
	BOOL m_bwriteotp;
	BOOL m_bbpv;
	BOOL m_bverifyotp_file;
	static UINT ThreadFun(LPVOID pParam);
	DWORD Initial_subpro(void);
	char ConvertHexChar(char ch);
	int String2Hex(CString str, CByteArray &senddata);


	BYTE CheckBuf[20000];
	BYTE m_ucRec1[16];
	BYTE m_ucSend1[16];

    BYTE m_ucRec2[64];
	BYTE m_ucSend2[64];
	int int_temp0;
	int int_temp1;
	CByteArray hexdata;
	CString Csframe;	//桢数据
	CString str_rxhex;	//收到的无间隔的HEX
	CString str_com_data;	//COM口里面的缓存的数据
	CString str_gtemp;		//临时字串
	CString str_gtemp1;
	CString str_gtemp2;
	CString	str_hexcode;     //无间隔的文件HEX
	WORD CONFIG;			//文件或者设置的CONFIG值
	WORD CHECKSUM_F;		//文件的CHECKSUM
	BYTE OTP_TYPE;      //0: PM10P40W, 1: PM10P40P, 2: PM11P40, 3: PM12P80, 4: PM10P20


	BOOL m_flag_rtx;		// 1表示RS232正在通讯
	BOOL m_flag_opened;		//1表示文件已经打开
	int m_nPos;				//进度条位置
	int m_iline;			//数据的页数


	CPPGNEWDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CPPGNEWDlg)
	enum { IDD = IDD_PPGNEW_DIALOG };
	CStatic	m_pic;
	CEdit	m_cedit_status;
	CStatic	m_cstatic_bufchksum;
	CStatic	m_cstatic_bufconfig;
	CEdit	m_cedit_buf;
	CProgressCtrl	m_progress;
	CButton	m_check_protect;
	CStatic	m_cstatic_nconfig;
	CStatic	m_cstatic_fconfig;
	CStatic	m_cstatic_fchksum;
	CEdit	m_cedit_file;
	CComboBox	m_cclock;
	CComboBox	m_clvr;
	CComboBox	m_ctype;
	CComboBox	m_ccom;

	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CPPGNEWDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnBtnOpen();
	afx_msg void OnSelchangeComboLvr();
	afx_msg void OnSelchangeComboClock();
	afx_msg void OnCheck1();
	afx_msg void OnButtonReadOtp();
	afx_msg void OnButtonBlank();
	afx_msg void OnButtonConnect();
	afx_msg void OnButtonDownload();
	afx_msg void OnButtonReadFlash();
	afx_msg void OnButtonVerify_OTP_FLASH();
	afx_msg void OnButtonVerify_OTP_FILE();
	afx_msg void OnButtonBPV();
	afx_msg void OnButtonWriteOtpFile();
	afx_msg void OnButtonSave();
	afx_msg void OnButtonWrtConfig();
	afx_msg void OnBtnReadconfig();
	afx_msg void OnButtonLock();
	afx_msg void OnButtonWv();
	afx_msg void OnSelchangeComboType();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnButtonHelp();
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_PPGNEWDLG_H__34D7B083_ECAF_4668_A2CD_30CEE40FAC28__INCLUDED_)

⌨️ 快捷键说明

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