GNU Radio 3.4.2 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_PCCC_DECODER_B_H 00026 #define INCLUDED_TRELLIS_PCCC_DECODER_B_H 00027 00028 #include "fsm.h" 00029 #include "interleaver.h" 00030 #include <gr_block.h> 00031 #include <vector> 00032 #include "siso_type.h" 00033 00034 class trellis_pccc_decoder_b; 00035 typedef boost::shared_ptr<trellis_pccc_decoder_b> trellis_pccc_decoder_b_sptr; 00036 00037 trellis_pccc_decoder_b_sptr trellis_make_pccc_decoder_b ( 00038 const fsm &FSM1, int ST10, int ST1K, 00039 const fsm &FSM2, int ST20, int ST2K, 00040 const interleaver &INTERLEAVER, 00041 int blocklength, 00042 int repetitions, 00043 trellis_siso_type_t SISO_TYPE // perform "min-sum" or "sum-product" combining 00044 ); 00045 00046 00047 /*! 00048 * \ingroup coding_blk 00049 */ 00050 class trellis_pccc_decoder_b : public gr_block 00051 { 00052 fsm d_FSM1; 00053 int d_ST10; 00054 int d_ST1K; 00055 fsm d_FSM2; 00056 int d_ST20; 00057 int d_ST2K; 00058 interleaver d_INTERLEAVER; 00059 int d_blocklength; 00060 int d_repetitions; 00061 trellis_siso_type_t d_SISO_TYPE; 00062 std::vector<float> d_buffer; 00063 00064 friend trellis_pccc_decoder_b_sptr trellis_make_pccc_decoder_b ( 00065 const fsm &FSM1, int ST10, int ST1K, 00066 const fsm &FSM2, int ST20, int ST2K, 00067 const interleaver &INTERLEAVER, 00068 int blocklength, 00069 int repetitions, 00070 trellis_siso_type_t SISO_TYPE 00071 ); 00072 00073 trellis_pccc_decoder_b ( 00074 const fsm &FSM1, int ST10, int ST1K, 00075 const fsm &FSM2, int ST20, int ST2K, 00076 const interleaver &INTERLEAVER, 00077 int blocklength, 00078 int repetitions, 00079 trellis_siso_type_t SISO_TYPE 00080 ); 00081 00082 public: 00083 fsm FSM1 () const { return d_FSM1; } 00084 fsm FSM2 () const { return d_FSM2; } 00085 int ST10 () const { return d_ST10; } 00086 int ST1K () const { return d_ST1K; } 00087 int ST20 () const { return d_ST20; } 00088 int ST2K () const { return d_ST2K; } 00089 interleaver INTERLEAVER () const { return d_INTERLEAVER; } 00090 int blocklength () const { return d_blocklength; } 00091 int repetitions () const { return d_repetitions; } 00092 trellis_siso_type_t SISO_TYPE () const { return d_SISO_TYPE; } 00093 00094 void forecast (int noutput_items, 00095 gr_vector_int &ninput_items_required); 00096 int general_work (int noutput_items, 00097 gr_vector_int &ninput_items, 00098 gr_vector_const_void_star &input_items, 00099 gr_vector_void_star &output_items); 00100 }; 00101 00102 #endif