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

3G开发

开发平台:

Visual C++

  1. //
  2. //  File = quadmod.h
  3. //
  4. #ifndef _QUADMOD_H_
  5. #define _QUADMOD_H_
  6. #include "signal_T.h"
  7. #include "psmodel.h"
  8. class QuadratureModulator : public PracSimModel
  9. {
  10. public:
  11.   QuadratureModulator(  char* instance_nam,
  12.                   PracSimModel* outer_model,
  13.                   Signal<float>* i_in_sig,
  14.                   Signal<float>* q_in_sig,
  15.                   Signal< std::complex<float> >* cmpx_out_sig,
  16.                   Signal<float>* mag_out_sig,
  17.                   Signal<float>* phase_out_sig );
  18.   QuadratureModulator(  char* instance_nam,
  19.                   PracSimModel* outer_model,
  20.                   Signal<float>* i_in_sig,
  21.                   Signal<float>* q_in_sig,
  22.                   Signal< std::complex<float> >* cmpx_out_sig );
  23.   void Constructor_Common_Tasks( char* instance_name,
  24.                             Signal<float>* i_in_sig,
  25.                             Signal<float>* q_in_sig,
  26.                             Signal< std::complex<float> >* cmpx_out_sig);
  27.   ~QuadratureModulator(void);
  28.   void Initialize(void);
  29.   int Execute(void);
  30. private:
  31.   double Phase_Unbal;
  32.   double Amp_Unbal;
  33.   double Real_Unbal;
  34.   double Imag_Unbal;
  35.   int Block_Size;
  36.   bool Polar_Outputs_Enabled;
  37.   Signal<float> *I_In_Sig;
  38.   Signal<float> *Q_In_Sig;
  39.   Signal< std::complex<float> > *Cmpx_Out_Sig;  
  40.   Signal<float> *Mag_Out_Sig;
  41.   Signal<float> *Phase_Out_Sig;
  42. };
  43. #endif