GNU Radio 2.x: gr_freq_xlating_fir_filter_fcc.h Source File

Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

# gr_freq_xlating_fir_filter_fcc.h

Go to the documentation of this file.

    00001 /* -*- c++ -*- */
    00002 /*
    00003  * Copyright 2002,2004 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 2, 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., 59 Temple Place - Suite 330,
    00020  * Boston, MA 02111-1307, USA.
    00021  */
    00022
    00023 /*
    00024  * WARNING: This file is automatically generated by
    00025  * generate_gr_freq_xlating_fir_filter_XXX.py  Any changes made to this file
    00026  * will be overwritten.
    00027  */
    00028
    00029 #ifndef INCLUDED_GR_FREQ_XLATING_FIR_FILTER_FCC_H
    00030 #define INCLUDED_GR_FREQ_XLATING_FIR_FILTER_FCC_H
    00031
    00032 #include <gr_sync_decimator.h>
    00033 #include <gr_rotator.h>
    00034
    00035 class gr_freq_xlating_fir_filter_fcc;
    00036 typedef boost::shared_ptr<gr_freq_xlating_fir_filter_fcc> gr_freq_xlating_fir_filter_fcc_sptr;
    00037
    00043 gr_freq_xlating_fir_filter_fcc_sptr
    00044 gr_make_freq_xlating_fir_filter_fcc (int decimation, const std::vector<gr_complex> &taps,
    00045                      double center_freq, double sampling_freq);
    00046
    00047
    00048 class gr_fir_fcc;
    00049
    00063 class gr_freq_xlating_fir_filter_fcc : public gr_sync_decimator
    00064 {
    00065  public:
    00066   virtual ~gr_freq_xlating_fir_filter_fcc ();
    00067
    00068   void set_center_freq (double center_freq);
    00069   void set_taps (const std::vector<gr_complex> &taps);
    00070
    00071   int work (int noutput_items,
    00072             gr_vector_const_void_star &input_items,
    00073             gr_vector_void_star &output_items);
    00074
    00075  private:
    00076   friend gr_freq_xlating_fir_filter_fcc_sptr
    00077   gr_make_freq_xlating_fir_filter_fcc (int decimation, const std::vector<gr_complex> &taps,
    00078                        double center_freq, double sampling_freq);
    00079
    00080  protected:
    00081   std::vector<gr_complex>       d_proto_taps;
    00082   gr_fir_fcc                   *d_composite_fir;
    00083   gr_rotator                    d_r;
    00084   double                        d_center_freq;
    00085   double                        d_sampling_freq;
    00086   bool                          d_updated;
    00087
    00088   virtual void build_composite_fir ();
    00089
    00095   gr_freq_xlating_fir_filter_fcc (int decimation,
    00096                           const std::vector<gr_complex> &taps,
    00097                           double center_freq, double sampling_freq);
    00098 };
    00099
    00100 #endif /* _gr_freq_xlating_fir_filter_fcc_H_ */