12 #ifndef INCLUDED_FEC_POLAR_DECODER_COMMON_H
13 #define INCLUDED_FEC_POLAR_DECODER_COMMON_H
45 std::vector<int> frozen_bit_positions,
46 std::vector<uint8_t> frozen_bit_values);
50 double rate()
override {
return (1.0 * get_output_size() / get_input_size()); };
56 static const float D_LLR_FACTOR;
57 unsigned int d_frozen_bit_counter;
61 float llr_odd(
const float la,
const float lb)
const;
62 float llr_even(
const float la,
const float lb,
const unsigned char f)
const;
65 return (llr < 0.0f) ? 1 : 0;
77 float* llrs,
unsigned char* u,
const int stage,
const int u_num,
const int row);
79 float* llrs,
unsigned char* u,
const int stage,
const int u_num,
const int row);
81 float* llrs,
unsigned char* u,
const int stage,
const int u_num,
const int row);
82 void even_u_values(
unsigned char* u_even,
const unsigned char* u,
const int u_num);
POLAR code common operations and attributes.
Definition: polar_common.h:50
Class holds common methods and attributes for different decoder implementations.
Definition: polar_decoder_common.h:28
bool set_frame_size(unsigned int frame_size) override
Definition: polar_decoder_common.h:53
int get_input_size() override
Definition: polar_decoder_common.h:51
void initialize_decoder(unsigned char *u, float *llrs, const float *input)
void print_pretty_llr_vector(const float *llr_vec) const
polar_decoder_common(int block_size, int num_info_bits, std::vector< int > frozen_bit_positions, std::vector< uint8_t > frozen_bit_values)
double rate() override
Definition: polar_decoder_common.h:50
int get_output_size() override
Definition: polar_decoder_common.h:52
void butterfly(float *llrs, unsigned char *u, const int stage, const int u_num, const int row)
void even_u_values(unsigned char *u_even, const unsigned char *u, const int u_num)
void extract_info_bits(unsigned char *output, const unsigned char *input) const
void butterfly_generic(float *llrs, unsigned char *u, const int stage, const int u_num, const int row)
const bool is_frozen_bit(const int u_num) const
void butterfly_volk(float *llrs, unsigned char *u, const int stage, const int u_num, const int row)
unsigned char llr_bit_decision(const float llr) const
Definition: polar_decoder_common.h:63
const unsigned char next_frozen_bit()
void odd_xor_even_values(unsigned char *u_xor, const unsigned char *u, const int u_num)
~polar_decoder_common() override
float llr_even(const float la, const float lb, const unsigned char f) const
float llr_odd(const float la, const float lb) const
Parent class for FECAPI objects.
Definition: generic_decoder.h:48
#define FEC_API
Definition: gr-fec/include/gnuradio/fec/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29