11#ifndef INCLUDED_TPC_DECODER_H
12#define INCLUDED_TPC_DECODER_H
43 int get_input_item_size()
override;
44 int get_output_item_size()
override;
45 const char* get_conversion();
46 void generic_work(
void* inBuffer,
void* outbuffer)
override;
47 int get_output_size()
override;
48 int get_input_size()
override;
99 uint32_t numInitLoadIter;
100 int numInitRemaining;
101 int output_c_col_idx;
108 int mm_row, max_states_row, num_symbols_row;
116 void siso_decode_row();
118 int mm_col, max_states_col, num_symbols_col;
126 void siso_decode_col();
132 float (
tpc_decoder::*max_star)(
const float,
const float);
134 float linear_log_map(
const float delta1,
const float delta2);
135 float max_log_map(
const float delta1,
const float delta2);
136 float constant_log_map(
const float delta1,
const float delta2);
137 float log_map_lut_correction(
const float delta1,
const float delta2);
138 float log_map_cfunction_correction(
const float delta1,
const float delta2);
140 template <
typename T>
141 static int sgn(T val);
153 double rate()
override {
return (1.0 * get_output_size() / get_input_size()); }
Parent class for FECAPI objects.
Definition generic_decoder.h:48
std::shared_ptr< generic_decoder > sptr
Definition generic_decoder.h:62
Definition tpc_decoder.h:29
static generic_decoder::sptr make(std::vector< int > row_poly, std::vector< int > col_poly, int krow, int kcol, int bval, int qval, int max_iter, int decoder_type)
double rate() override
Definition tpc_decoder.h:153
bool set_frame_size(unsigned int frame_size) override
Definition tpc_decoder.h:154
STL class.
Definition vector_docstub.h:11
#define FEC_API
Definition gr-fec/include/gnuradio/fec/api.h:18
FEC_API int get_history(generic_decoder::sptr my_decoder)
FEC_API float get_shift(generic_decoder::sptr my_decoder)
GNU Radio logging wrapper.
Definition basic_block.h:29
float INPUT_DATATYPE
Definition tpc_decoder.h:14
unsigned char OUTPUT_DATATYPE
Definition tpc_decoder.h:15