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

📄 myprogdlg.h

📁 上位机软件 for avricp 根据功能设定熔丝
💻 H
字号:
// MYPROGDlg.h : header file
//

#if !defined(AFX_MYPROGDLG_H__FF88BCA1_55E6_4820_894E_18262F6261AA__INCLUDED_)
#define AFX_MYPROGDLG_H__FF88BCA1_55E6_4820_894E_18262F6261AA__INCLUDED_

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

#include "CN_COM.h"
#include "AVRDEVICE.h"
//#include "HEXparser.h"
#include "AVRPROG.h"
/////////////////////////////////////////////////////////////////////////////
// CMYPROGDlg dialog

class CMYPROGDlg : public CDialog
{
// Construction
public:
	void ReadSignature();
	CButton *lockGroup;
	CButton *lock;
	CButton *lockb[8];
	CComboBox * lock3Combo;
	CComboBox * lock2Combo;
	CComboBox *lock1Combo;
	//熔丝部分
	CButton *fuseGroup;  
	CButton *fuse0;
	CButton *fuse1;
	CButton *fuse2;
    CButton *check[24];
    CComboBox* fuse1Combo;
    CComboBox* fuse2Combo;
    CComboBox* fuse3Combo;
    CComboBox* fuse4Combo;
	
	
    //操作
	CButton *sreadButton;     
	CButton *sprogButton;     
	CButton *eraseButton;   
	
	
	void SetLock();
	void GetLock();
	bool ReadLockAndFuse();
	void AnalyseFuse();
	void GetFuse();
	void SetFuse();
	AVRProg avrp;
	void AnalyseLock();
	void ResultFuse();
	void ResultLock();
	bool leaveProgrammingMode();
	bool enterProgrammingMode();
	void EnableLockAndFuse();
	void EnableFlash(BOOL EN = TRUE);
	void EnableEeprom(BOOL EN = TRUE);
	void DisableLockAndFuse();
	CMYPROGDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CMYPROGDlg)
	enum { IDD = IDD_MYPROG_DIALOG };
	CComboBox	m_ComboBox_Device;
	CButton	m_opens;
	CProgressCtrl	m_nProgress;
	CString	m_csCom;
	CString	m_csMessage;
	CString	m_hexfile;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CMYPROGDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnClickList3(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnOpens();
	afx_msg void OnSelchangeComboDevice();
	afx_msg void OnButtonExplorer();
	afx_msg void OnButtonSread();
	afx_msg void OnButtonSprog();
	afx_msg void OnButtonErase();
	afx_msg void OnSelchangeComboLock1();
	afx_msg void OnSelchangeComboLock2();
	afx_msg void OnSelchangeComboLock3();
	afx_msg void OnButtonFprog();
	afx_msg void OnButtonFread();
	afx_msg void OnButtonFveri();
	afx_msg void OnButtonEprog();
	afx_msg void OnButtonEveri();
	afx_msg void OnButtonEread();
	afx_msg void OnCheck1();
	afx_msg void OnCheck2();
	afx_msg void OnCheck3();
	afx_msg void OnCheck4();
	afx_msg void OnCheck5();
	afx_msg void OnCheck6();
	afx_msg void OnSelchangeComboFuse1();
	afx_msg void OnSelchangeComboFuse2();
	afx_msg void OnSelchangeComboFuse3();
	afx_msg void OnSelchangeComboFuse4();
	afx_msg void OnCheck0();
	afx_msg void OnCheck7();
	afx_msg void OnCheck8();
	afx_msg void OnCheck9();
	afx_msg void OnCheck10();
	afx_msg void OnCheck11();
	afx_msg void OnCheck12();
	afx_msg void OnCheck13();
	afx_msg void OnCheck14();
	afx_msg void OnCheck15();
	afx_msg void OnCheck16();
	afx_msg void OnCheck17();
	afx_msg void OnCheck18();
	afx_msg void OnCheck19();
	afx_msg void OnCheck20();
	afx_msg void OnCheck21();
	afx_msg void OnCheck22();
	afx_msg void OnCheck23();
	afx_msg void OnCheckL0();
	afx_msg void OnCheckL1();
	afx_msg void OnCheckL2();
	afx_msg void OnCheckL3();
	afx_msg void OnCheckL4();
	afx_msg void OnCheckL5();
	afx_msg void OnCheckL6();
	afx_msg void OnCheckL7();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_MYPROGDLG_H__FF88BCA1_55E6_4820_894E_18262F6261AA__INCLUDED_)

⌨️ 快捷键说明

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