GNU Radio 3.6.5 C++ API
|
00001 /* -*- c++ -*- */ 00002 /* Copyright 2012 Free Software Foundation, Inc. 00003 * 00004 * This file is part of GNU Radio 00005 * 00006 * GNU Radio is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 3, or (at your option) 00009 * any later version. 00010 * 00011 * GNU Radio is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with GNU Radio; see the file COPYING. If not, write to 00018 * the Free Software Foundation, Inc., 51 Franklin Street, 00019 * Boston, MA 02110-1301, USA. 00020 */ 00021 00022 00023 #ifndef INCLUDED_OFDM_FRAME_EQUALIZER_VCVC_H 00024 #define INCLUDED_OFDM_FRAME_EQUALIZER_VCVC_H 00025 00026 #include <digital_ofdm_equalizer_base.h> 00027 #include <digital/api.h> 00028 #include <gr_tagged_stream_block.h> 00029 00030 namespace gr { 00031 namespace digital { 00032 00033 /*! 00034 * \brief OFDM frame equalizer 00035 * \ingroup ofdm_blk 00036 * 00037 * This does two things: 00038 * First, it removes the coarse carrier offset. If a tag is found on the first 00039 * item with the key 'ofdm_sync_carr_offset', this is interpreted as the coarse 00040 * frequency offset in number of carriers. 00041 * Next, it performs equalization in one or two dimensions on a tagged OFDM frame. 00042 * The actual equalization is done by a ofdm_frame_equalizer object, outside of 00043 * the block. 00044 * 00045 * Note that the tag with the coarse carrier offset is not removed. Blocks 00046 * downstream from this block must not attempt to also correct this offset. 00047 * 00048 * Input: a tagged series of OFDM symbols. 00049 * Output: The same as the input, but equalized and frequency-corrected. 00050 */ 00051 class DIGITAL_API ofdm_frame_equalizer_vcvc : virtual public gr_tagged_stream_block 00052 { 00053 public: 00054 typedef boost::shared_ptr<ofdm_frame_equalizer_vcvc> sptr; 00055 00056 /*! 00057 * \param equalizer The equalizer object that will do the actual work 00058 * \param cp_len Length of the cyclic prefix in samples (required to correct the frequency offset) 00059 * \param len_tag_key Length tag key 00060 * \param propagate_channel_state If true, the channel state after the last symbol 00061 * will be added to the first symbol as a tag 00062 * \param fixed_frame_len Set if the frame length is fixed throughout, 00063 * helps with book keeping. 00064 */ 00065 static sptr make( 00066 digital_ofdm_equalizer_base_sptr equalizer, 00067 int cp_len, 00068 const std::string &len_tag_key="frame_len", 00069 bool propagate_channel_state=false, 00070 int fixed_frame_len=0 00071 ); 00072 }; 00073 00074 } // namespace digital 00075 } // namespace gr 00076 00077 #endif /* INCLUDED_OFDM_FRAME_EQUALIZER_VCVC_H */ 00078