GNU Radio 3.6.5 C++ API
|
00001 /* -*- c++ -*- */ 00002 /* 00003 * Copyright 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 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 // WARNING: this file is machine generated. Edits will be over written 00024 00025 #ifndef INCLUDED_TRELLIS_SCCC_DECODER_S_H 00026 #define INCLUDED_TRELLIS_SCCC_DECODER_S_H 00027 00028 #include <trellis_api.h> 00029 #include "fsm.h" 00030 #include "interleaver.h" 00031 #include <gr_block.h> 00032 #include <vector> 00033 #include "siso_type.h" 00034 00035 class trellis_sccc_decoder_s; 00036 typedef boost::shared_ptr<trellis_sccc_decoder_s> trellis_sccc_decoder_s_sptr; 00037 00038 TRELLIS_API trellis_sccc_decoder_s_sptr trellis_make_sccc_decoder_s ( 00039 const fsm &FSMo, int STo0, int SToK, 00040 const fsm &FSMi, int STi0, int STiK, 00041 const interleaver &INTERLEAVER, 00042 int blocklength, 00043 int repetitions, 00044 trellis_siso_type_t SISO_TYPE // perform "min-sum" or "sum-product" combining 00045 ); 00046 00047 00048 /*! 00049 * \ingroup trellis_coding_blk 00050 */ 00051 class TRELLIS_API trellis_sccc_decoder_s : public gr_block 00052 { 00053 fsm d_FSMo; 00054 int d_STo0; 00055 int d_SToK; 00056 fsm d_FSMi; 00057 int d_STi0; 00058 int d_STiK; 00059 interleaver d_INTERLEAVER; 00060 int d_blocklength; 00061 int d_repetitions; 00062 trellis_siso_type_t d_SISO_TYPE; 00063 std::vector<float> d_buffer; 00064 00065 friend TRELLIS_API trellis_sccc_decoder_s_sptr trellis_make_sccc_decoder_s ( 00066 const fsm &FSMo, int STo0, int SToK, 00067 const fsm &FSMi, int STi0, int STiK, 00068 const interleaver &INTERLEAVER, 00069 int blocklength, 00070 int repetitions, 00071 trellis_siso_type_t SISO_TYPE 00072 ); 00073 00074 trellis_sccc_decoder_s ( 00075 const fsm &FSMo, int STo0, int SToK, 00076 const fsm &FSMi, int STi0, int STiK, 00077 const interleaver &INTERLEAVER, 00078 int blocklength, 00079 int repetitions, 00080 trellis_siso_type_t SISO_TYPE 00081 ); 00082 00083 public: 00084 fsm FSMo () const { return d_FSMo; } 00085 fsm FSMi () const { return d_FSMi; } 00086 int STo0 () const { return d_STo0; } 00087 int SToK () const { return d_SToK; } 00088 int STi0 () const { return d_STi0; } 00089 int STiK () const { return d_STiK; } 00090 interleaver INTERLEAVER () const { return d_INTERLEAVER; } 00091 int blocklength () const { return d_blocklength; } 00092 int repetitions () const { return d_repetitions; } 00093 trellis_siso_type_t SISO_TYPE () const { return d_SISO_TYPE; } 00094 00095 void forecast (int noutput_items, 00096 gr_vector_int &ninput_items_required); 00097 int general_work (int noutput_items, 00098 gr_vector_int &ninput_items, 00099 gr_vector_const_void_star &input_items, 00100 gr_vector_void_star &output_items); 00101 }; 00102 00103 #endif