24 #ifndef INCLUDED_FEC_POLAR_COMMON_H 25 #define INCLUDED_FEC_POLAR_COMMON_H 76 std::vector<int> frozen_bit_positions,
77 std::vector<char> frozen_bit_values);
86 long bit_reverse(
long value,
int active_bits)
const;
87 void print_packed_bit_array(
const unsigned char* printed_array,
88 const int num_bytes)
const;
89 void print_unpacked_bit_array(
const unsigned char* bits,
90 const unsigned int num_bytes)
const;
96 void setup_info_bit_positions_reversed();
101 void setup_volk_vectors();
102 void volk_encode(
unsigned char* out_buf,
const unsigned char* in_buf);
103 void volk_encode_block(
unsigned char* out_buf,
unsigned char* in_buf);
113 void initialize_info_bit_position_vector();
std::vector< int > d_info_bit_positions_reversed
Definition: polar_common.h:95
const int num_info_bits() const
Definition: polar_common.h:83
std::vector< int > d_info_bit_positions
Definition: polar_common.h:94
unsigned char * d_volk_frozen_bits
Definition: polar_common.h:106
Converts a byte with k relevant bits to k output bytes with 1 bit in the LSB.
Definition: unpack_k_bits.h:48
const int block_size() const
Definition: polar_common.h:81
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:43
std::vector< char > d_frozen_bit_values
Definition: polar_common.h:93
const int block_power() const
Definition: polar_common.h:82
#define FEC_API
Definition: gr-fec/include/gnuradio/fec/api.h:30
unsigned char * d_volk_temp
Definition: polar_common.h:104
POLAR code common operations and attributes.
Definition: polar_common.h:58
unsigned char * d_volk_frozen_bit_mask
Definition: polar_common.h:105
std::vector< int > d_frozen_bit_positions
Definition: polar_common.h:92