GNU Radio 3.4.2 C++ API
trellis_sccc_decoder_b.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_B_H
00026 #define INCLUDED_TRELLIS_SCCC_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_sccc_decoder_b;
00035 typedef boost::shared_ptr<trellis_sccc_decoder_b> trellis_sccc_decoder_b_sptr;
00036 
00037 trellis_sccc_decoder_b_sptr trellis_make_sccc_decoder_b (
00038   const fsm &FSMo, int STo0, int SToK,
00039   const fsm &FSMi, int STi0, int STiK,
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_sccc_decoder_b : public gr_block
00051 {
00052   fsm d_FSMo;
00053   int d_STo0;
00054   int d_SToK;
00055   fsm d_FSMi;
00056   int d_STi0;
00057   int d_STiK;
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_sccc_decoder_b_sptr trellis_make_sccc_decoder_b (
00065     const fsm &FSMo, int STo0, int SToK,
00066     const fsm &FSMi, int STi0, int STiK,
00067     const interleaver &INTERLEAVER,
00068     int blocklength,
00069     int repetitions,
00070     trellis_siso_type_t SISO_TYPE
00071   );
00072 
00073   trellis_sccc_decoder_b (
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   );
00081 
00082 public:
00083   fsm FSMo () const { return d_FSMo; }
00084   fsm FSMi () const { return d_FSMi; }
00085   int STo0 () const { return d_STo0; }
00086   int SToK () const { return d_SToK; }
00087   int STi0 () const { return d_STi0; }
00088   int STiK () const { return d_STiK; }
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