diff options
author | Piotr Krysik <ptrkrysik@gmail.com> | 2016-07-04 21:23:51 +0200 |
---|---|---|
committer | Piotr Krysik <ptrkrysik@gmail.com> | 2016-07-04 21:23:51 +0200 |
commit | 47ab20e45ea6bf30dcde61f359db517a25834aaa (patch) | |
tree | e6e0fb9d61b21a81df81ce1b88aad99dc368562d /include/grgsm | |
parent | 799133a2e63253480fd5ec7d2a8092595687a90f (diff) |
Added a controlled fractional resampler
Diffstat (limited to 'include/grgsm')
-rw-r--r-- | include/grgsm/controlled_fractional_resampler_cc.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/include/grgsm/controlled_fractional_resampler_cc.h b/include/grgsm/controlled_fractional_resampler_cc.h new file mode 100644 index 0000000..9eeb393 --- /dev/null +++ b/include/grgsm/controlled_fractional_resampler_cc.h @@ -0,0 +1,64 @@ +/* -*- c++ -*- */ +/* @file + * @author Piotr Krysik <ptrkrysik@gmail.com> + * @section LICENSE + * + * Gr-gsm is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3, or (at your option) + * any later version. + * + * Gr-gsm is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gr-gsm; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, + * Boston, MA 02110-1301, USA. + * + */ + + +#ifndef INCLUDED_GRGSM_CONTROLLED_FRACTIONAL_RESAMPLER_CC_H +#define INCLUDED_GRGSM_CONTROLLED_FRACTIONAL_RESAMPLER_CC_H + +#include <grgsm/api.h> +#include <gnuradio/block.h> +//#include <gnuradio/filter/fractional_resampler_cc.h> + +namespace gr { + namespace gsm { + + /*! + * \brief <+description of block+> + * \ingroup grgsm + * + */ + class GRGSM_API controlled_fractional_resampler_cc : virtual public block + { + public: + typedef boost::shared_ptr<controlled_fractional_resampler_cc> sptr; + + /*! + * \brief Return a shared_ptr to a new instance of grgsm::controlled_fractional_resampler_cc. + * + * To avoid accidental use of raw pointers, grgsm::controlled_fractional_resampler_cc's + * constructor is in a private implementation + * class. grgsm::controlled_fractional_resampler_cc::make is the public interface for + * creating new instances. + */ + static sptr make(float phase_shift, float resamp_ratio); + + virtual float mu() const = 0; + virtual float resamp_ratio() const = 0; + virtual void set_mu (float mu) = 0; + virtual void set_resamp_ratio(float resamp_ratio) = 0; + }; + + } // namespace grgsm +} // namespace gr + +#endif /* INCLUDED_GRGSM_CONTROLLED_FRACTIONAL_RESAMPLER_CC_H */ + |