sqr_pll_bp.h
上传用户:jtjnyq9001
上传日期:2014-11-21
资源大小:3974k
文件大小:1k
- //
- // File = sqr_pll_bp.h
- //
- #ifndef _SQR_PLL_BP_H_
- #define _SQR_PLL_BP_H_
- #include "signal_T.h"
- #include "anlg_filt_iir.h"
- class BandpassSquaringPLL : public PracSimModel
- {
- public:
- BandpassSquaringPLL( char* instance_nam,
- PracSimModel *outer_model,
- Signal<float> *in_signal,
- Signal<float>* fsig_square_of_input,
- Signal<float> *err_signal,
- Signal<float> *filt_err_signal,
- Signal<float> *ref_signal,
- Signal<float> *vco_freq_sig,
- Signal<float> *ref_phase_sig,
- Signal<float> *out_signal );
- ~BandpassSquaringPLL(void);
- void Initialize(void);
- int Execute(void);
- private:
- double Samp_Intvl;
- Signal<float> *fsig_Input;
- Signal<float> *fsig_Phase_Error;
- Signal<float> *fsig_Filtered_Error;
- Signal<float> *fsig_Osc_Output;
- Signal<float> *fsig_Osc_Freq;
- Signal<float> *fsig_Osc_Phase;
- Signal<float> *fsig_Output;
- Signal<float> *fsig_Square_Of_Input;
- bool m_UsingDco;
- double K_Sub_D;
- double K_Sub_0;
- double OscOutput;
- double Phi_Sub_2;
- double Omega_Sub_0;
- double Center_Freq_Hz;
- float Osc_Output_Prev_Val;
- AnalogFilterByIir<float> *Filter_Core;
-
- };
- #endif