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

📄 mop.h

📁 通过PC并口模拟I2C信号
💻 H
字号:
#if !defined(AFX_MOP_H__82DCA846_36A4_441F_BD53_96425B1CE667__INCLUDED_)
#define AFX_MOP_H__82DCA846_36A4_441F_BD53_96425B1CE667__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// mop.h : 僿僢僟乕 僼傽僀儖
//

/////////////////////////////////////////////////////////////////////////////
// Cmop 僟僀傾儘僌

class Cmop : public CDialog
{
// 僐儞僗僩儔僋僔儑儞
public:
	void calculate_byte_from_AT210(int AT210);
	int calculate_AT210_from_agc_threshold(int agc_threshold);
	int agc_threshold_from_byte(int *byte);
	void set_dialog_agc_threshold();
	void init_dialog_combo_agc_threshold();
	CString band_from_BS10P3210(int BS10, int P3210);
	void get_dialog();
	void calculate_byte_from_freq_LO_trim(long freq);
	void calculate_byte_from_freq_CP(long freq);
	void calculate_byte_from_freq_band(long freq);
	CString band_from_freq(long freq);
	void init_dialog_combo_freq();
	void get_dialog_freq();
	void calculate_byte_from_freq_step(int pol);
	void calculate_byte_from_freq(long freq);
	void re_load_initial_file(CString application);
	int pll_getdata(int byte1);
	void calculate_byte_from_DIVIDER(long DIVIDER);
	long calculate_DIVIDER_from_freq(long freq);
	void calculate_byte_from_BS10P3210(int BS10P3210);
	int calculate_BS10P3210_from_band(CString band);
	void calculate_byte_from_R43210(int R43210);
	int calculate_CP10_from_charge_pump_current(int charge_pump_current);
	int calculate_R43210_from_step(long step);
	void calculate_byte_from_CP10(int CP10);
//	void calculate_byte_from_band(int* byte,CString band);
//	void calculate_byte_from_step(int* byte,long step);
//	void calculate_byte_from_CP10(int* byte,int CP10);
//	void calculate_byte_from_dialog_band();
//	void calculate_byte_from_dialog_step();
//	void calculate_byte_from_dialog_cp();
//	void calculate_byte_from_dialog_freq();
	void calculate_byte_from_dialog();
	void set_dialog_band();
	void set_dialog_step();
	void set_dialog_cp();
	long step_from_R43210(int R43210);
	int CP_from_CP10(int CP10);
	void init_dialog_combo_band();
	void init_dialog_combo_step();
	void init_dialog_combo_cp();
	void init_dialog_combo_application();
	CString band_from_byte(int *byte);
	long step_from_byte(int *byte);
	int CP_from_byte(int *byte);
	void get_dialog_byte_button();
	void get_dialog_byte();
	void write_byte();

	void set_byteS7();
	void set_byteS6();
	void set_byteS5();
	void set_byteS4();
	void set_byteS3();
	void set_byteS2();
	void set_byteS1();
	void set_byteS0();
	void set_byte77();
	void set_byte76();
	void set_byte75();
	void set_byte74();
	void set_byte73();
	void set_byte72();
	void set_byte71();
	void set_byte70();
	void set_byte67();
	void set_byte66();
	void set_byte65();
	void set_byte64();
	void set_byte63();
	void set_byte62();
	void set_byte61();
	void set_byte60();
	void set_byte57();
	void set_byte56();
	void set_byte55();
	void set_byte54();
	void set_byte53();
	void set_byte52();
	void set_byte51();
	void set_byte50();
	void set_byte47();
	void set_byte46();
	void set_byte45();
	void set_byte44();
	void set_byte43();
	void set_byte42();
	void set_byte41();
	void set_byte40();
	void set_byte37();
	void set_byte36();
	void set_byte35();
	void set_byte34();
	void set_byte33();
	void set_byte32();
	void set_byte31();
	void set_byte30();
	void set_byte27();
	void set_byte26();
	void set_byte25();
	void set_byte24();
	void set_byte23();
	void set_byte22();
	void set_byte21();
	void set_byte20();
	void set_byte17();
	void set_byte16();
	void set_byte15();
	void set_byte14();
	void set_byte13();
	void set_byte12();
	void set_byte11();
	void set_byte10();
	void set_dialog_byte_button();
	void set_dialog();
	void init_dialog_combo();
	void init_dialog();
	void i2c_write(int *data,int num);
	BOOL Create();
	Cmop(CWnd* pParent = NULL);   // 昗弨偺僐儞僗僩儔僋僞

// 僟僀傾儘僌 僨乕僞
	//{{AFX_DATA(Cmop)
	enum { IDD = IDD_DIALOG_mop };
	BOOL	m_byte10;
	BOOL	m_byte11;
	BOOL	m_byte12;
	BOOL	m_byte13;
	BOOL	m_byte14;
	BOOL	m_byte15;
	BOOL	m_byte16;
	BOOL	m_byte17;
	BOOL	m_byte20;
	BOOL	m_byte21;
	BOOL	m_byte22;
	BOOL	m_byte23;
	BOOL	m_byte24;
	BOOL	m_byte25;
	BOOL	m_byte26;
	BOOL	m_byte27;
	BOOL	m_byte30;
	BOOL	m_byte31;
	BOOL	m_byte32;
	BOOL	m_byte33;
	BOOL	m_byte34;
	BOOL	m_byte35;
	BOOL	m_byte36;
	BOOL	m_byte37;
	BOOL	m_byte40;
	BOOL	m_byte41;
	BOOL	m_byte42;
	BOOL	m_byte43;
	BOOL	m_byte44;
	BOOL	m_byte45;
	BOOL	m_byte46;
	BOOL	m_byte47;
	BOOL	m_byte50;
	BOOL	m_byte51;
	BOOL	m_byte52;
	BOOL	m_byte53;
	BOOL	m_byte54;
	BOOL	m_byte55;
	BOOL	m_byte56;
	BOOL	m_byte57;
	BOOL	m_byte60;
	BOOL	m_byte61;
	BOOL	m_byte62;
	BOOL	m_byte63;
	BOOL	m_byte64;
	BOOL	m_byte65;
	BOOL	m_byte66;
	BOOL	m_byte67;
	BOOL	m_byte70;
	BOOL	m_byte71;
	BOOL	m_byte72;
	BOOL	m_byte73;
	BOOL	m_byte74;
	BOOL	m_byte75;
	BOOL	m_byte76;
	BOOL	m_byte77;
	CString	m_freq;
	BOOL	m_byteS0;
	BOOL	m_byteS1;
	BOOL	m_byteS2;
	BOOL	m_byteS3;
	BOOL	m_byteS4;
	BOOL	m_byteS5;
	BOOL	m_byteS6;
	BOOL	m_byteS7;
	CString	m_byte1;
	CString	m_byte2;
	CString	m_byte3;
	CString	m_byte4;
	CString	m_byte5;
	CString	m_byte6;
	CString	m_byte7;
	CString	m_byteS;
	CString	m_if_freq;
	CString	m_application;
	CString	m_band;
	CString	m_cp;
	CString	m_step;
	CString	m_freq_step;
	CString	m_agc_threshold;
	//}}AFX_DATA


// 僆乕僶乕儔僀僪
	// ClassWizard 偼壖憐娭悢偺僆乕僶乕儔僀僪傪惗惉偟傑偡丅
	//{{AFX_VIRTUAL(Cmop)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 僒億乕僩
	//}}AFX_VIRTUAL

// 僀儞僾儕儊儞僥乕僔儑儞
protected:
	CWnd* m_pParent;
	int m_nID;

	// 惗惉偝傟偨儊僢僙乕僕 儅僢僾娭悢
	//{{AFX_MSG(Cmop)
	afx_msg void OnBUTTONtest();
	virtual void OnCancel();
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	afx_msg void OnCHECKbyte10();
	afx_msg void OnCHECKbyte11();
	afx_msg void OnCHECKbyte12();
	afx_msg void OnCHECKbyte13();
	afx_msg void OnCHECKbyte14();
	afx_msg void OnCHECKbyte15();
	afx_msg void OnCHECKbyte16();
	afx_msg void OnCHECKbyte17();
	afx_msg void OnCHECKbyte20();
	afx_msg void OnCHECKbyte21();
	afx_msg void OnCHECKbyte22();
	afx_msg void OnCHECKbyte23();
	afx_msg void OnCHECKbyte24();
	afx_msg void OnCHECKbyte25();
	afx_msg void OnCHECKbyte26();
	afx_msg void OnCHECKbyte27();
	afx_msg void OnCHECKbyte30();
	afx_msg void OnCHECKbyte31();
	afx_msg void OnCHECKbyte32();
	afx_msg void OnCHECKbyte33();
	afx_msg void OnCHECKbyte34();
	afx_msg void OnCHECKbyte35();
	afx_msg void OnCHECKbyte36();
	afx_msg void OnCHECKbyte37();
	afx_msg void OnCHECKbyte40();
	afx_msg void OnCHECKbyte41();
	afx_msg void OnCHECKbyte42();
	afx_msg void OnCHECKbyte43();
	afx_msg void OnCHECKbyte44();
	afx_msg void OnCHECKbyte45();
	afx_msg void OnCHECKbyte46();
	afx_msg void OnCHECKbyte47();
	afx_msg void OnCHECKbyte50();
	afx_msg void OnCHECKbyte51();
	afx_msg void OnCHECKbyte52();
	afx_msg void OnCHECKbyte53();
	afx_msg void OnCHECKbyte54();
	afx_msg void OnCHECKbyte55();
	afx_msg void OnCHECKbyte56();
	afx_msg void OnCHECKbyte57();
	afx_msg void OnCHECKbyte60();
	afx_msg void OnCHECKbyte61();
	afx_msg void OnCHECKbyte62();
	afx_msg void OnCHECKbyte63();
	afx_msg void OnCHECKbyte64();
	afx_msg void OnCHECKbyte65();
	afx_msg void OnCHECKbyte66();
	afx_msg void OnCHECKbyte67();
	afx_msg void OnCHECKbyte70();
	afx_msg void OnCHECKbyte71();
	afx_msg void OnCHECKbyte72();
	afx_msg void OnCHECKbyte73();
	afx_msg void OnCHECKbyte74();
	afx_msg void OnCHECKbyte75();
	afx_msg void OnCHECKbyte76();
	afx_msg void OnCHECKbyte77();
	afx_msg void OnBUTTONset();
	afx_msg void OnBUTTONwrite();
	afx_msg void OnBUTTONread();
	afx_msg void OnKillfocusCOMBOcp();
	afx_msg void OnKillfocusCOMBOfreq();
	afx_msg void OnKillfocusCOMBOstep();
	afx_msg void OnKillfocusCOMBOband();
	afx_msg void OnKillfocusCOMBOapplication();
	afx_msg void OnBUTTONup();
	afx_msg void OnBUTTONdown();
	afx_msg void OnSetfocusbyteS();
	afx_msg void OnKillfocusCOMBOagcthreshold();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ 偼慜峴偺捈慜偵捛壛偺愰尵傪憓擖偟傑偡丅

#endif // !defined(AFX_MOP_H__82DCA846_36A4_441F_BD53_96425B1CE667__INCLUDED_)

⌨️ 快捷键说明

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