GNU Radio Manual and C++ API Reference  3.7.9.2
The Free & Open Software Radio Ecosystem
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
tpc_common.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2015 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
7  * GNU Radio is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3, or (at your option)
10  * any later version.
11  *
12  * GNU Radio is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with GNU Radio; see the file COPYING. If not, write to
19  * the Free Software Foundation, Inc., 51 Franklin Street,
20  * Boston, MA 02110-1301, USA.
21  */
22 
23 #ifndef INCLUDED_TPC_COMMON_H
24 #define INCLUDED_TPC_COMMON_H
25 
26 #include <vector>
27 
28 namespace gr {
29 namespace fec {
30 
31 class tpc_common {
32 public:
33  static int parity_counter( int symbol, int length );
34  static void rsc_enc_bit(int input, int state_in, std::vector<int> g, int KK, int nn,
35  std::vector< std::vector<int> > &output, std::vector< std::vector<int> > &nextStates);
37  int numStates,
38  std::vector<int> g,
39  int KK,
40  int nn,
41  std::vector< std::vector<int> > &output,
42  std::vector< std::vector<int> > &nextStates);
43  static void rsc_tail( std::vector<int> &tail_p, std::vector<int> g, int max_states, int mm );
44  static void itob(std::vector<int> &binVec, int symbol, int length);
45 };
46 
47 }
48 }
49 
50 #endif /* INCLUDED_TPC_COMMON_H */
Definition: tpc_common.h:31
static void precomputeStateTransitionMatrix_RSCPoly(int numStates, std::vector< int > g, int KK, int nn, std::vector< std::vector< int > > &output, std::vector< std::vector< int > > &nextStates)
static void rsc_enc_bit(int input, int state_in, std::vector< int > g, int KK, int nn, std::vector< std::vector< int > > &output, std::vector< std::vector< int > > &nextStates)
static void rsc_tail(std::vector< int > &tail_p, std::vector< int > g, int max_states, int mm)
static void itob(std::vector< int > &binVec, int symbol, int length)
Include this header to use the message passing features.
Definition: logger.h:131
static int parity_counter(int symbol, int length)
PMT_API size_t length(const pmt_t &v)
Return the number of elements in v.