GNU Radio 3.7.1 C++ API
|
00001 /* -*- c++ -*- */ 00002 /* 00003 * Copyright 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_FEC_DECODE_CCSDS_27_FB_H 00024 #define INCLUDED_FEC_DECODE_CCSDS_27_FB_H 00025 00026 #include <gnuradio/fec/api.h> 00027 #include <gnuradio/sync_decimator.h> 00028 00029 namespace gr { 00030 namespace fec { 00031 00032 /*! \brief A rate 1/2, k=7 convolutional decoder for the CCSDS standard 00033 * \ingroup error_coding_blk 00034 * 00035 * \details 00036 * This block performs soft-decision convolutional decoding using the Viterbi 00037 * algorithm. 00038 * 00039 * The input is a stream of (possibly noise corrupted) floating point values 00040 * nominally spanning [-1.0, 1.0], representing the encoded channel symbols 00041 * 0 (-1.0) and 1 (1.0), with erased symbols at 0.0. 00042 * 00043 * The output is MSB first packed bytes of decoded values. 00044 * 00045 * As a rate 1/2 code, there will be one output byte for every 16 input symbols. 00046 * 00047 * This block is designed for continuous data streaming, not packetized data. 00048 * The first 32 bits out will be zeroes, with the output delayed four bytes 00049 * from the corresponding inputs. 00050 */ 00051 00052 class FEC_API decode_ccsds_27_fb : virtual public sync_decimator 00053 { 00054 public: 00055 00056 // gr::fec::decode_ccsds_27_fb::sptr 00057 typedef boost::shared_ptr<decode_ccsds_27_fb> sptr; 00058 00059 static sptr make(); 00060 }; 00061 00062 } /* namespace fec */ 00063 } /* namespace gr */ 00064 00065 #endif /* INCLUDED_FEC_DECODE_CCSDS_27_FB_H */