GNU Radio Manual and C++ API Reference  3.10.9.1
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  * SPDX-License-Identifier: GPL-3.0-or-later
8  *
9  */
10 
11 #ifndef INCLUDED_TPC_COMMON_H
12 #define INCLUDED_TPC_COMMON_H
13 
14 #include <vector>
15 
16 namespace gr {
17 namespace fec {
18 
20 {
21 public:
22  static int parity_counter(int symbol, int length);
23  static void rsc_enc_bit(int input,
24  int state_in,
25  std::vector<int> g,
26  int KK,
27  int nn,
28  std::vector<std::vector<int>>& output,
29  std::vector<std::vector<int>>& nextStates);
30  static void
32  std::vector<int> g,
33  int KK,
34  int nn,
35  std::vector<std::vector<int>>& output,
36  std::vector<std::vector<int>>& nextStates);
37  static void
38  rsc_tail(std::vector<int>& tail_p, std::vector<int> g, int max_states, int mm);
39  static void itob(std::vector<int>& binVec, int symbol, int length);
40 };
41 
42 } // namespace fec
43 } // namespace gr
44 
45 #endif /* INCLUDED_TPC_COMMON_H */
Definition: tpc_common.h:20
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 int parity_counter(int symbol, int length)
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)
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)
GNU Radio logging wrapper.
Definition: basic_block.h:29
PMT_API size_t length(const pmt_t &v)
Return the number of elements in v.