gr-baz Package
baz_fractional_resampler_ff.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2004,2007,2012-2013 Free Software Foundation, Inc.
4 *
5 * This file is part of GNU Radio
6 *
7 * GNU Radio is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3, or (at your option)
10 * any later version.
11 *
12 * GNU Radio is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with GNU Radio; see the file COPYING. If not, write to
19 * the Free Software Foundation, Inc., 51 Franklin Street,
20 * Boston, MA 02110-1301, USA.
21 */
22
23#ifndef INCLUDED_FRACTIONAL_RESAMPLER_FF_H
24#define INCLUDED_FRACTIONAL_RESAMPLER_FF_H
25
26#include <gnuradio/block.h>
27
28namespace gr {
29 namespace baz {
30
31 /*!
32 * \brief resampling MMSE filter with complex input, complex output
33 * \ingroup resamplers_blk
34 */
35 class BAZ_API fractional_resampler_ff : virtual public block
36 {
37 public:
38 // gr::baz::fractional_resampler_ff::sptr
39 typedef boost::shared_ptr<fractional_resampler_ff> sptr;
40
41 /*!
42 * \brief Build the resampling MMSE filter (complex input, complex output)
43 *
44 * \param phase_shift The phase shift of the output signal to the input
45 * \param resamp_ratio The resampling ratio = input_rate / output_rate.
46 */
47 static sptr make(/*long */double phase_shift,
48 /*long */double resamp_ratio);
49
50 virtual long double mu() const = 0;
51 virtual long double resamp_ratio() const = 0;
52 virtual void set_mu (long double mu) = 0;
53 virtual void set_resamp_ratio(long double resamp_ratio) = 0;
54 virtual void set_resamp_ratio(double resamp_ratio) = 0;
55 };
56
57 } /* namespace baz */
58} /* namespace gr */
59
60#endif /* INCLUDED_FRACTIONAL_RESAMPLER_FF_H */
#define BAZ_API
Definition api.h:19
resampling MMSE filter with complex input, complex output
Definition baz_fractional_resampler_ff.h:36
virtual long double mu() const =0
virtual void set_mu(long double mu)=0
static sptr make(double phase_shift, double resamp_ratio)
Build the resampling MMSE filter (complex input, complex output)
virtual void set_resamp_ratio(double resamp_ratio)=0
boost::shared_ptr< fractional_resampler_ff > sptr
Definition baz_fractional_resampler_ff.h:39
virtual void set_resamp_ratio(long double resamp_ratio)=0
virtual long double resamp_ratio() const =0
Definition baz_additive_scrambler_bb.h:28