24 #ifndef INCLUDED_FEC_POLAR_COMMON_H
25 #define INCLUDED_FEC_POLAR_COMMON_H
72 std::vector<int> frozen_bit_positions,
73 std::vector<char> frozen_bit_values);
82 long bit_reverse(
long value,
int active_bits)
const;
83 void print_packed_bit_array(
const unsigned char* printed_array,
84 const int num_bytes)
const;
85 void print_unpacked_bit_array(
const unsigned char* bits,
86 const unsigned int num_bytes)
const;
92 void setup_info_bit_positions_reversed();
97 void setup_volk_vectors();
98 void volk_encode(
unsigned char* out_buf,
const unsigned char* in_buf);
99 void volk_encode_block(
unsigned char* out_buf,
unsigned char* in_buf);
109 void initialize_info_bit_position_vector();
std::vector< int > d_info_bit_positions_reversed
Definition: polar_common.h:91
std::vector< int > d_info_bit_positions
Definition: polar_common.h:90
const int block_power() const
Definition: polar_common.h:78
unsigned char * d_volk_frozen_bits
Definition: polar_common.h:102
Converts a byte with k relevent bits to k output bytes with 1 bit in the LSB.
Definition: unpack_k_bits.h:48
Include this header to use the message passing features.
Definition: logger.h:131
std::vector< char > d_frozen_bit_values
Definition: polar_common.h:89
#define FEC_API
Definition: gr-fec/include/gnuradio/fec/api.h:30
const int num_info_bits() const
Definition: polar_common.h:79
const int block_size() const
Definition: polar_common.h:77
unsigned char * d_volk_temp
Definition: polar_common.h:100
POLAR code common operations and attributes.
Definition: polar_common.h:55
unsigned char * d_volk_frozen_bit_mask
Definition: polar_common.h:101
std::vector< int > d_frozen_bit_positions
Definition: polar_common.h:88