gr-baz Package
baz_fractional_resampler_cc.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_CC_H
24 #define INCLUDED_FRACTIONAL_RESAMPLER_CC_H
25 
26 #include <gnuradio/block.h>
27 
28 namespace 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_cc : virtual public block
36  {
37  public:
38  // gr::baz::fractional_resampler_cc::sptr
39  typedef boost::shared_ptr<fractional_resampler_cc> 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  unsigned long long resamp_ratio_num = 0,
50  unsigned long long resamp_ratio_denom = 0);
51 
52  virtual long double mu() const = 0;
53  virtual long double resamp_ratio() const = 0;
54  virtual void set_mu (long double mu) = 0;
55  virtual void set_resamp_ratio(long double resamp_ratio) = 0;
56  virtual void set_resamp_ratio(double resamp_ratio) = 0;
57  virtual void set_resamp_ratio(unsigned long long resamp_ratio_num, unsigned long long resamp_ratio_denom) = 0;
58  };
59 
60  } /* namespace baz */
61 } /* namespace gr */
62 
63 #endif /* INCLUDED_FRACTIONAL_RESAMPLER_FF_H */
boost::shared_ptr< fractional_resampler_cc > sptr
Definition: baz_fractional_resampler_cc.h:39
resampling MMSE filter with complex input, complex output
Definition: baz_fractional_resampler_cc.h:35
Definition: baz_additive_scrambler_bb.h:28
#define BAZ_API
Definition: config.h:8