GNU Radio Manual and C++ API Reference  3.8.1.0
The Free & Open Software Radio Ecosystem
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 
32 {
33 public:
34  static int parity_counter(int symbol, int length);
35  static void rsc_enc_bit(int input,
36  int state_in,
37  std::vector<int> g,
38  int KK,
39  int nn,
40  std::vector<std::vector<int>>& output,
41  std::vector<std::vector<int>>& nextStates);
42  static void
44  std::vector<int> g,
45  int KK,
46  int nn,
47  std::vector<std::vector<int>>& output,
48  std::vector<std::vector<int>>& nextStates);
49  static void
50  rsc_tail(std::vector<int>& tail_p, std::vector<int> g, int max_states, int mm);
51  static void itob(std::vector<int>& binVec, int symbol, int length);
52 };
53 
54 } // namespace fec
55 } // namespace gr
56 
57 #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_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)
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:43
static int parity_counter(int symbol, int length)
PMT_API size_t length(const pmt_t &v)
Return the number of elements in v.
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)