12#ifndef INCLUDED_FEC_POLAR_COMMON_H
13#define INCLUDED_FEC_POLAR_COMMON_H
19#include <volk/volk_alloc.hh>
67 std::vector<int> frozen_bit_positions,
68 std::vector<uint8_t> frozen_bit_values);
79 const int num_bytes)
const;
81 const unsigned int num_bytes)
const;
93 void volk_encode(
unsigned char* out_buf,
const unsigned char* in_buf);
104 void initialize_info_bit_position_vector();
Converts a byte with k relevant bits to k output bytes with 1 bit in the LSB.
Definition: unpack_k_bits.h:37
POLAR code common operations and attributes.
Definition: polar_common.h:50
volk::vector< unsigned char > d_volk_temp
Definition: polar_common.h:95
void print_packed_bit_array(const unsigned char *printed_array, const int num_bytes) const
long bit_reverse(long value, int active_bits) const
const int block_size() const
Definition: polar_common.h:72
void print_unpacked_bit_array(const unsigned char *bits, const unsigned int num_bytes) const
volk::vector< unsigned char > d_volk_frozen_bits
Definition: polar_common.h:97
const int block_power() const
Definition: polar_common.h:73
void volk_encode_block(unsigned char *out_buf, unsigned char *in_buf)
polar_common(int block_size, int num_info_bits, std::vector< int > frozen_bit_positions, std::vector< uint8_t > frozen_bit_values)
void setup_info_bit_positions_reversed()
const int num_info_bits() const
Definition: polar_common.h:74
void setup_volk_vectors()
volk::vector< unsigned char > d_volk_frozen_bit_mask
Definition: polar_common.h:96
std::vector< int > d_info_bit_positions
Definition: polar_common.h:85
void volk_encode(unsigned char *out_buf, const unsigned char *in_buf)
std::vector< int > d_info_bit_positions_reversed
Definition: polar_common.h:86
std::vector< uint8_t > d_frozen_bit_values
Definition: polar_common.h:84
std::vector< int > d_frozen_bit_positions
Definition: polar_common.h:83
#define FEC_API
Definition: gr-fec/include/gnuradio/fec/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29