23 #ifndef INCLUDED_TPC_DECODER_H 24 #define INCLUDED_TPC_DECODER_H 44 std::vector<int> col_polys,
55 int get_input_item_size();
56 int get_output_item_size();
57 const char* get_conversion();
58 void generic_work(
void* inBuffer,
void* outbuffer);
59 int get_output_size();
62 std::vector<int> d_rowpolys;
63 std::vector<int> d_colpolys;
76 std::vector<std::vector<int>> rowOutputs;
77 std::vector<std::vector<int>> rowNextStates;
79 std::vector<std::vector<int>> colOutputs;
80 std::vector<std::vector<int>> colNextStates;
99 std::vector<std::vector<float>> channel_llr;
100 std::vector<std::vector<float>> Z;
101 std::vector<float> extrinsic_info;
102 std::vector<float> input_u_rows;
103 std::vector<float> input_u_cols;
104 std::vector<float> input_c_rows;
105 std::vector<float> input_c_cols;
106 std::vector<float> output_u_rows;
107 std::vector<float> output_u_cols;
108 std::vector<float> output_c_rows;
109 std::vector<float> output_c_cols;
111 uint32_t numInitLoadIter;
112 int numInitRemaining;
113 int output_c_col_idx;
120 int mm_row, max_states_row, num_symbols_row;
121 std::vector<std::vector<float>> beta_row;
122 std::vector<float> alpha_prime_row;
123 std::vector<float> alpha_row;
124 std::vector<float> metric_c_row;
125 std::vector<float> rec_array_row;
126 std::vector<float> num_llr_c_row;
127 std::vector<float> den_llr_c_row;
128 void siso_decode_row();
130 int mm_col, max_states_col, num_symbols_col;
131 std::vector<std::vector<float>> beta_col;
132 std::vector<float> alpha_prime_col;
133 std::vector<float> alpha_col;
134 std::vector<float> metric_c_col;
135 std::vector<float> rec_array_col;
136 std::vector<float> num_llr_c_col;
137 std::vector<float> den_llr_c_col;
138 void siso_decode_col();
142 float gamma(
const std::vector<float> rec_array,
const int symbol);
144 float (tpc_decoder::*max_star)(
const float,
const float);
146 float linear_log_map(
const float delta1,
const float delta2);
147 float max_log_map(
const float delta1,
const float delta2);
148 float constant_log_map(
const float delta1,
const float delta2);
149 float log_map_lut_correction(
const float delta1,
const float delta2);
150 float log_map_cfunction_correction(
const float delta1,
const float delta2);
152 template <
typename T>
153 static int sgn(T val);
157 std::vector<int> col_poly,
165 double rate() {
return (1.0 * get_output_size() / get_input_size()); }
Parent class for FECAPI objects.
Definition: generic_decoder.h:60
float INPUT_DATATYPE
Definition: tpc_decoder.h:26
bool set_frame_size(unsigned int frame_size)
Definition: tpc_decoder.h:166
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:43
unsigned char OUTPUT_DATATYPE
Definition: tpc_decoder.h:27
#define FEC_API
Definition: gr-fec/include/gnuradio/fec/api.h:30
FEC_API int get_history(generic_decoder::sptr my_decoder)
FEC_API float get_shift(generic_decoder::sptr my_decoder)
boost::shared_ptr< generic_decoder > sptr
Definition: generic_decoder.h:75
double rate()
Definition: tpc_decoder.h:165
Definition: tpc_decoder.h:40