sqr_pll_bp.h
上传用户:jtjnyq9001
上传日期:2014-11-21
资源大小:3974k
文件大小:1k
源码类别:

3G开发

开发平台:

Visual C++

  1. //
  2. //  File = sqr_pll_bp.h
  3. //
  4. #ifndef _SQR_PLL_BP_H_
  5. #define _SQR_PLL_BP_H_
  6. #include "signal_T.h"
  7. #include "anlg_filt_iir.h"
  8. class BandpassSquaringPLL : public PracSimModel
  9. {
  10. public:
  11. BandpassSquaringPLL( char* instance_nam,
  12.             PracSimModel *outer_model,
  13.             Signal<float> *in_signal,
  14.             Signal<float>* fsig_square_of_input,
  15.             Signal<float> *err_signal,
  16.             Signal<float> *filt_err_signal,
  17.             Signal<float> *ref_signal,
  18.             Signal<float> *vco_freq_sig,
  19.             Signal<float> *ref_phase_sig,
  20.             Signal<float> *out_signal );
  21.    ~BandpassSquaringPLL(void);
  22.    void Initialize(void);
  23.    int Execute(void);
  24. private:
  25.    double Samp_Intvl;
  26.    Signal<float> *fsig_Input;
  27.    Signal<float> *fsig_Phase_Error;
  28.    Signal<float> *fsig_Filtered_Error;
  29.    Signal<float> *fsig_Osc_Output;
  30.    Signal<float> *fsig_Osc_Freq;
  31.    Signal<float> *fsig_Osc_Phase;
  32.    Signal<float> *fsig_Output;
  33.    Signal<float> *fsig_Square_Of_Input;
  34.    bool m_UsingDco;
  35.    double K_Sub_D;
  36.    double K_Sub_0;
  37.    double OscOutput;
  38.    double Phi_Sub_2;
  39.    double Omega_Sub_0;
  40.    double Center_Freq_Hz;
  41.    float Osc_Output_Prev_Val;
  42.   AnalogFilterByIir<float> *Filter_Core;
  43.   
  44. };
  45. #endif