GNU Radio 3.6.5 C++ API
|
00001 /* -*- c++ -*- */ 00002 /* 00003 * Copyright 2002,2004,2012 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 3, 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., 51 Franklin Street, 00020 * Boston, MA 02110-1301, USA. 00021 */ 00022 00023 /* 00024 * WARNING: This file is automatically generated by cmake. 00025 * Any changes made to this file will be overwritten. 00026 */ 00027 00028 #ifndef INCLUDED_FILTER_FREQ_XLATING_FIR_FILTER_CCF_IMPL_H 00029 #define INCLUDED_FILTER_FREQ_XLATING_FIR_FILTER_CCF_IMPL_H 00030 00031 #include <filter/api.h> 00032 #include <filter/fir_filter.h> 00033 #include <filter/freq_xlating_fir_filter_ccf.h> 00034 00035 namespace gr { 00036 namespace filter { 00037 00038 class FILTER_API freq_xlating_fir_filter_ccf_impl : public freq_xlating_fir_filter_ccf 00039 { 00040 protected: 00041 std::vector<float> d_proto_taps; 00042 kernel::fir_filter_ccc *d_composite_fir; 00043 gr_rotator d_r; 00044 double d_center_freq; 00045 double d_sampling_freq; 00046 bool d_updated; 00047 00048 virtual void build_composite_fir(); 00049 public: 00050 00051 freq_xlating_fir_filter_ccf_impl(int decimation, 00052 const std::vector<float> &taps, 00053 double center_freq, 00054 double sampling_freq); 00055 virtual ~freq_xlating_fir_filter_ccf_impl(); 00056 00057 void set_center_freq(double center_freq); 00058 double center_freq() const; 00059 00060 void set_taps(const std::vector<float> &taps); 00061 std::vector<float> taps() const; 00062 00063 int work(int noutput_items, 00064 gr_vector_const_void_star &input_items, 00065 gr_vector_void_star &output_items); 00066 }; 00067 00068 } /* namespace filter */ 00069 } /* namespace gr */ 00070 00071 #endif /* INCLUDED_FILTER_FREQ_XLATING_FIR_FILTER_CCF_IMPL_H */