/* -*- c++ -*- */
/*
 * Copyright 2004,2007,2012-2013 Free Software Foundation, Inc.
 *
 * This file is part of GNU Radio
 *
 * GNU Radio 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.
 *
 * GNU Radio 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 GNU Radio; see the file COPYING.  If not, write to
 * the Free Software Foundation, Inc., 51 Franklin Street,
 * Boston, MA 02110-1301, USA.
 */

#ifndef INCLUDED_FRACTIONAL_RESAMPLER_CC_H
#define	INCLUDED_FRACTIONAL_RESAMPLER_CC_H

#include <gnuradio/block.h>

namespace gr {
  namespace baz {

    /*!
     * \brief resampling MMSE filter with complex input, complex output
     * \ingroup resamplers_blk
     */
    class BAZ_API fractional_resampler_cc : virtual public block
    {
    public:
      // gr::baz::fractional_resampler_cc::sptr
      typedef boost::shared_ptr<fractional_resampler_cc> sptr;

      /*!
       * \brief Build the resampling MMSE filter (complex input, complex output)
       *
       * \param phase_shift The phase shift of the output signal to the input
       * \param resamp_ratio The resampling ratio = input_rate / output_rate.
       */
      static sptr make(/*long */double phase_shift,
                       /*long */double resamp_ratio,
                       unsigned long long resamp_ratio_num = 0,
                       unsigned long long resamp_ratio_denom = 0);

      virtual long double mu() const = 0;
      virtual long double resamp_ratio() const = 0;
      virtual void set_mu (long double mu) = 0;
      virtual void set_resamp_ratio(long double resamp_ratio) = 0;
      virtual void set_resamp_ratio(double resamp_ratio) = 0;
      virtual void set_resamp_ratio(unsigned long long resamp_ratio_num, unsigned long long resamp_ratio_denom) = 0;
    };

  } /* namespace baz */
} /* namespace gr */

#endif /* INCLUDED_FRACTIONAL_RESAMPLER_FF_H */
