GNU Radio 3.6.5 C++ API
|
00001 /* -*- c++ -*- */ 00002 /* 00003 * Copyright 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 #ifndef INCLUDED_FILTER_FILTER_DELAY_FC_H 00024 #define INCLUDED_FILTER_FILTER_DELAY_FC_H 00025 00026 #include <filter/api.h> 00027 #include <gr_sync_block.h> 00028 00029 namespace gr { 00030 namespace filter { 00031 00032 /*! 00033 * \brief Filter-Delay Combination Block. 00034 * \ingroup filter_blk 00035 * 00036 * \details 00037 * The block takes one or two float stream and outputs a complex 00038 * stream. 00039 * 00040 * If only one float stream is input, the real output is a delayed 00041 * version of this input and the imaginary output is the filtered 00042 * output. 00043 * 00044 * If two floats are connected to the input, then the real output 00045 * is the delayed version of the first input, and the imaginary 00046 * output is the filtered output. 00047 * 00048 * The delay in the real path accounts for the group delay 00049 * introduced by the filter in the imaginary path. The filter taps 00050 * needs to be calculated before initializing this block. 00051 */ 00052 class FILTER_API filter_delay_fc : virtual public gr_sync_block 00053 { 00054 public: 00055 00056 // gr::filter::filter_delay_fc::sptr 00057 typedef boost::shared_ptr<filter_delay_fc> sptr; 00058 00059 /*! 00060 * Build a filter with delay block. 00061 */ 00062 static sptr make(const std::vector<float> &taps); 00063 }; 00064 00065 } /* namespace filter */ 00066 } /* namespace gr */ 00067 00068 #endif /* INCLUDED_FILTER_FILTER_DELAY_FC_H */