GNU Radio 3.6.5 C++ API

trellis_pccc_decoder_i.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_I_H
00026 #define INCLUDED_TRELLIS_PCCC_DECODER_I_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_pccc_decoder_i;
00036 typedef boost::shared_ptr<trellis_pccc_decoder_i> trellis_pccc_decoder_i_sptr;
00037 
00038 TRELLIS_API trellis_pccc_decoder_i_sptr trellis_make_pccc_decoder_i (
00039   const fsm &FSM1, int ST10, int ST1K,
00040   const fsm &FSM2, int ST20, int ST2K,
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_pccc_decoder_i : public gr_block
00052 {
00053   fsm d_FSM1;
00054   int d_ST10;
00055   int d_ST1K;
00056   fsm d_FSM2;
00057   int d_ST20;
00058   int d_ST2K;
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_pccc_decoder_i_sptr trellis_make_pccc_decoder_i (
00066     const fsm &FSM1, int ST10, int ST1K,
00067     const fsm &FSM2, int ST20, int ST2K,
00068     const interleaver &INTERLEAVER,
00069     int blocklength,
00070     int repetitions,
00071     trellis_siso_type_t SISO_TYPE
00072   );
00073 
00074   trellis_pccc_decoder_i (
00075     const fsm &FSM1, int ST10, int ST1K,
00076     const fsm &FSM2, int ST20, int ST2K,
00077     const interleaver &INTERLEAVER,
00078     int blocklength,
00079     int repetitions,
00080     trellis_siso_type_t SISO_TYPE
00081   );
00082 
00083 public:
00084   fsm FSM1 () const { return d_FSM1; }
00085   fsm FSM2 () const { return d_FSM2; }
00086   int ST10 () const { return d_ST10; }
00087   int ST1K () const { return d_ST1K; }
00088   int ST20 () const { return d_ST20; }
00089   int ST2K () const { return d_ST2K; }
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