GNU Radio 3.7.1 C++ API
fractional_resampler_cc.h
Go to the documentation of this file.
00001 /* -*- c++ -*- */
00002 /*
00003  * Copyright 2004,2007,2012-2013 Free Software Foundation, Inc.
00004  *
00005  * This file is part of GNU Radio
00006  *
00007  * GNU Radio is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 3, or (at your option)
00010  * any later version.
00011  *
00012  * GNU Radio is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with GNU Radio; see the file COPYING.  If not, write to
00019  * the Free Software Foundation, Inc., 51 Franklin Street,
00020  * Boston, MA 02110-1301, USA.
00021  */
00022 
00023 #ifndef INCLUDED_FRACTIONAL_RESAMPLER_CC_H
00024 #define INCLUDED_FRACTIONAL_RESAMPLER_CC_H
00025 
00026 #include <gnuradio/filter/api.h>
00027 #include <gnuradio/block.h>
00028 
00029 namespace gr {
00030   namespace filter {
00031     
00032     /*!
00033      * \brief resampling MMSE filter with complex input, complex output
00034      * \ingroup resamplers_blk
00035      */
00036     class FILTER_API fractional_resampler_cc : virtual public block
00037     {
00038     public:
00039       // gr::filter::fractional_resampler_cc::sptr
00040       typedef boost::shared_ptr<fractional_resampler_cc> sptr;
00041 
00042       /*!
00043        * \brief Build the resampling MMSE filter (complex input, complex output)
00044        *
00045        * \param phase_shift The phase shift of the output signal to the input
00046        * \param resamp_ratio The resampling ratio = input_rate / output_rate.
00047        */
00048       static sptr make(float phase_shift,
00049                        float resamp_ratio);
00050 
00051       virtual float mu() const = 0;
00052       virtual float resamp_ratio() const = 0;
00053       virtual void set_mu (float mu) = 0;
00054       virtual void set_resamp_ratio(float resamp_ratio) = 0;
00055     };
00056 
00057   } /* namespace filter */
00058 } /* namespace gr */
00059 
00060 #endif /* INCLUDED_FRACTIONAL_RESAMPLER_FF_H */