GNU Radio 3.6.5 C++ API

trellis_pccc_decoder_combined_cs.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_PCCC_DECODER_COMBINED_CS_H
00026 #define INCLUDED_TRELLIS_PCCC_DECODER_COMBINED_CS_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 "calc_metric.h"
00034 #include "siso_type.h"
00035 
00036 class trellis_pccc_decoder_combined_cs;
00037 typedef boost::shared_ptr<trellis_pccc_decoder_combined_cs> trellis_pccc_decoder_combined_cs_sptr;
00038 
00039 TRELLIS_API trellis_pccc_decoder_combined_cs_sptr trellis_make_pccc_decoder_combined_cs (
00040   const fsm &FSMo, int STo0, int SToK,
00041   const fsm &FSMi, int STi0, int STiK,
00042   const interleaver &INTERLEAVER,
00043   int blocklength,
00044   int repetitions,
00045   trellis_siso_type_t SISO_TYPE, // perform "min-sum" or "sum-product" combining
00046   int D,
00047   const std::vector<gr_complex> &TABLE,
00048   trellis_metric_type_t METRIC_TYPE,
00049   float scaling
00050 );
00051 
00052 
00053 /*!
00054  *  \ingroup trellis_coding_blk
00055  */
00056 class TRELLIS_API trellis_pccc_decoder_combined_cs : public gr_block
00057 {
00058   fsm d_FSMo;
00059   int d_STo0;
00060   int d_SToK;
00061   fsm d_FSMi;
00062   int d_STi0;
00063   int d_STiK;
00064   interleaver d_INTERLEAVER;
00065   int d_blocklength;
00066   int d_repetitions;
00067   trellis_siso_type_t d_SISO_TYPE;
00068   int d_D;
00069   std::vector<gr_complex> d_TABLE;
00070   trellis_metric_type_t d_METRIC_TYPE;
00071   float d_scaling;
00072   std::vector<float> d_buffer;
00073 
00074   friend TRELLIS_API trellis_pccc_decoder_combined_cs_sptr trellis_make_pccc_decoder_combined_cs (
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     int D,
00082     const std::vector<gr_complex> &TABLE,
00083     trellis_metric_type_t METRIC_TYPE,
00084     float scaling
00085   );
00086 
00087   trellis_pccc_decoder_combined_cs (
00088     const fsm &FSMo, int STo0, int SToK,
00089     const fsm &FSMi, int STi0, int STiK,
00090     const interleaver &INTERLEAVER,
00091     int blocklength,
00092     int repetitions,
00093     trellis_siso_type_t SISO_TYPE,
00094     int D,
00095     const std::vector<gr_complex> &TABLE,
00096     trellis_metric_type_t METRIC_TYPE,
00097     float scaling
00098   );
00099 
00100 public:
00101   fsm FSM1 () const { return d_FSMo; }
00102   fsm FSM2 () const { return d_FSMi; }
00103   int ST10 () const { return d_STo0; }
00104   int ST1K () const { return d_SToK; }
00105   int ST20 () const { return d_STi0; }
00106   int ST2K () const { return d_STiK; }
00107   interleaver INTERLEAVER () const { return d_INTERLEAVER; }
00108   int blocklength () const { return d_blocklength; }
00109   int repetitions () const { return d_repetitions; }
00110   int D () const { return d_D; }
00111   std::vector<gr_complex> TABLE () const { return d_TABLE; }
00112   trellis_metric_type_t METRIC_TYPE () const { return d_METRIC_TYPE; }
00113   trellis_siso_type_t SISO_TYPE () const { return d_SISO_TYPE; }
00114   float scaling () const { return d_scaling; }
00115   void set_scaling (float scaling);
00116 
00117   void forecast (int noutput_items,
00118                  gr_vector_int &ninput_items_required);
00119   int general_work (int noutput_items,
00120                     gr_vector_int &ninput_items,
00121                     gr_vector_const_void_star &input_items,
00122                     gr_vector_void_star &output_items);
00123 };
00124 
00125 #endif