GNU Radio 3.4.2 C++ API
trellis_sccc_decoder_combined_ci.h
Go to the documentation of this file.
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_COMBINED_CI_H
00026 #define INCLUDED_TRELLIS_SCCC_DECODER_COMBINED_CI_H
00027 
00028 #include "fsm.h"
00029 #include "interleaver.h"
00030 #include <gr_block.h>
00031 #include <vector>
00032 #include "calc_metric.h"
00033 #include "siso_type.h"
00034 
00035 class trellis_sccc_decoder_combined_ci;
00036 typedef boost::shared_ptr<trellis_sccc_decoder_combined_ci> trellis_sccc_decoder_combined_ci_sptr;
00037 
00038 trellis_sccc_decoder_combined_ci_sptr trellis_make_sccc_decoder_combined_ci (
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   int D,
00046   const std::vector<gr_complex> &TABLE,
00047   trellis_metric_type_t METRIC_TYPE,
00048   float scaling
00049 );
00050 
00051 
00052 /*!
00053  *  \ingroup coding_blk
00054  */
00055 class trellis_sccc_decoder_combined_ci : public gr_block
00056 {
00057   fsm d_FSMo;
00058   int d_STo0;
00059   int d_SToK;
00060   fsm d_FSMi;
00061   int d_STi0;
00062   int d_STiK;
00063   interleaver d_INTERLEAVER;
00064   int d_blocklength;
00065   int d_repetitions;
00066   trellis_siso_type_t d_SISO_TYPE;
00067   int d_D;
00068   std::vector<gr_complex> d_TABLE;
00069   trellis_metric_type_t d_METRIC_TYPE;
00070   float d_scaling;
00071   std::vector<float> d_buffer;
00072 
00073   friend trellis_sccc_decoder_combined_ci_sptr trellis_make_sccc_decoder_combined_ci (
00074     const fsm &FSMo, int STo0, int SToK,
00075     const fsm &FSMi, int STi0, int STiK,
00076     const interleaver &INTERLEAVER,
00077     int blocklength,
00078     int repetitions,
00079     trellis_siso_type_t SISO_TYPE,
00080     int D,
00081     const std::vector<gr_complex> &TABLE,
00082     trellis_metric_type_t METRIC_TYPE,
00083     float scaling
00084   );
00085 
00086   trellis_sccc_decoder_combined_ci (
00087     const fsm &FSMo, int STo0, int SToK,
00088     const fsm &FSMi, int STi0, int STiK,
00089     const interleaver &INTERLEAVER,
00090     int blocklength,
00091     int repetitions,
00092     trellis_siso_type_t SISO_TYPE, 
00093     int D,
00094     const std::vector<gr_complex> &TABLE,
00095     trellis_metric_type_t METRIC_TYPE,
00096     float scaling
00097   );
00098 
00099 public:
00100   fsm FSMo () const { return d_FSMo; }
00101   fsm FSMi () const { return d_FSMi; }
00102   int STo0 () const { return d_STo0; }
00103   int SToK () const { return d_SToK; }
00104   int STi0 () const { return d_STi0; }
00105   int STiK () const { return d_STiK; }
00106   interleaver INTERLEAVER () const { return d_INTERLEAVER; }
00107   int blocklength () const { return d_blocklength; }
00108   int repetitions () const { return d_repetitions; }
00109   int D () const { return d_D; }
00110   std::vector<gr_complex> TABLE () const { return d_TABLE; }
00111   trellis_metric_type_t METRIC_TYPE () const { return d_METRIC_TYPE; }
00112   trellis_siso_type_t SISO_TYPE () const { return d_SISO_TYPE; }
00113   float scaling () const { return d_scaling; }
00114   void set_scaling (float scaling);
00115 
00116   void forecast (int noutput_items,
00117                  gr_vector_int &ninput_items_required);
00118   int general_work (int noutput_items,
00119                     gr_vector_int &ninput_items,
00120                     gr_vector_const_void_star &input_items,
00121                     gr_vector_void_star &output_items);
00122 };
00123 
00124 #endif