upsampler_T.h
上传用户:jtjnyq9001
上传日期:2014-11-21
资源大小:3974k
文件大小:1k
- //
- // File = upsampler_T.h
- //
- #ifndef _UPSAMPLER_T_H_
- #define _UPSAMPLER_T_H_
- #include "signal_T.h"
- #include "control_T.h"
- #include "psmodel.h"
- template <class T>
- class Upsampler : public PracSimModel
- {
- public:
- Upsampler< T >( char* instance_name,
- PracSimModel* outer_model,
- Signal<T>* in_signal,
- Signal<T>* out_signal);
- ~Upsampler<T>(void);
- void Initialize(void);
- int Execute(void);
- private:
- //---------------------------------------------
- // user-specified static parameters
- int Interp_Rate;
- //--------------------------------------------
- // state variables and derived parameters
- //int Block_Size;
- //double Samp_Intvl;
- //int Max_Buffer_Len; // numb of locs needed for Max_Delay
- //int Active_Buffer_Len; // numb of locs needed for Active_Delay
- //T *Start_Of_Buffer;
- //T *End_Of_Buffer;
- //T *Read_Ptr;
- //T *Write_Ptr;
- //--------------------------
- // Signals
- Signal<T> *In_Sig;
- Signal<T> *Out_Sig;
- };
- #endif