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

📄 pll.h

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

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

/////////////////////////////////////////////////////////////////////////////
// Cpll 僟僀傾儘僌

class Cpll : public CDialog
{
// 僐儞僗僩儔僋僔儑儞
public:
	BOOL tun_setbw(long baud_, int *byte_);
	void bus_close();
	void bus_open();
	double calculate_pll_xtal();
	double calculate_pll_step(int byte4);
	void calculate_pll_byte(double cutoff,int *byte_);
	void pll_setdata(int *byte_);
	void calculate_pll_vco(long freq, int *byte_);
	void calculate_pll_lpf_cutoff(long baud, int *byte_);
	void calculate_pll_divider_byte(long freq, int *byte_);
	void init_pll_ic(int *byte_);
	void tun_setfreq(long freq, long baud, int *byte_);
	long tun_getfreq(int *byte_);
	// double tun_getfreq(int *byte_);
	int pll_getdata(int *byte_);
	long calculate_LPF_from_baud(long baud);
	void calculate_pll_lpf_bw_from_baud_QM1D1B0004(long baud, int *byte);
	void get_dialog_byte();
	void calculate_pll_lpf_to_byte(long LPF, int *byte);
	void calculate_combo_to_byte();
	long calculate_pll_lpf(int *byte);
	void get_dialog();
	void set_dialog();
	long calculate_pll_lpf(int PD2345);
	void init_combo();
	double calculate_pll_xtal_QM1D1B0004();
	void pll_setdata_QM1D1B0004(int *byte_);
	int calculate_dividing_factor_of_prescaler(int *byte_);
	double calculate_pll_step_QM1D1B0004(int byte4);
	void calculate_pll_divider_byte_QM1D1B0004(long freq, int *byte_);
	void calculate_band_to_byte(int band, int *byte_);
	int calculate_local_frequency_band(long freq);
	void calculate_pll_vco_QM1D1B0004(long freq, int *byte_);
	void tun_setfreq_QM1D1B0004(long freq,long baud, int *byte_);
//	void tun_setfreq_QM1D1B0004(long freq,int *byte_);
	void i2c_write(int *data, int num);
	BOOL Create();
	Cpll(CWnd* pParent = NULL);   // 昗弨偺僐儞僗僩儔僋僞

// 僟僀傾儘僌 僨乕僞
	//{{AFX_DATA(Cpll)
	enum { IDD = IDD_DIALOG_pll };
	CString	m_freq;
	CString	m_byte1;
	CString	m_byte2;
	CString	m_byte3;
	CString	m_byte4;
	CString	m_byte5;
	CString	m_lpf;
	//}}AFX_DATA


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

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

	// 惗惉偝傟偨儊僢僙乕僕 儅僢僾娭悢
	//{{AFX_MSG(Cpll)
	virtual void OnOK();
	virtual void OnCancel();
	afx_msg void OnBUTTONtest();
	afx_msg void OnCHECKbyte10();
	afx_msg void OnBUTTONfreqset();
	virtual BOOL OnInitDialog();
	afx_msg void OnKillfocusCOMBOfreq();
	afx_msg void OnKillfocusComboLpf();
	afx_msg void OnKillfocusEDITbyte1();
	afx_msg void OnKillfocusEDITbyte2();
	afx_msg void OnKillfocusEDITbyte3();
	afx_msg void OnKillfocusEDITbyte4();
	afx_msg void OnKillfocusEDITbyte5();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_PLL_H__0FA78B21_0981_4FC9_88A8_C3BC7CFAE35E__INCLUDED_)

⌨️ 快捷键说明

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