24 #ifndef INCLUDED_FEC_POLAR_ENCODER_H
25 #define INCLUDED_FEC_POLAR_ENCODER_H
66 std::vector<int> frozen_bit_positions,
67 std::vector<char> frozen_bit_values,
68 bool is_packed =
false);
72 void generic_work(
void *in_buffer,
void *out_buffer);
73 double rate(){
return (1.0 * get_input_size() / get_output_size());};
82 std::vector<int>& frozen_bit_positions,
83 std::vector<char>& frozen_bit_values,
bool is_packed);
87 void setup_frozen_bit_inserter();
90 unsigned char* d_frozen_bit_prototype;
91 void insert_packed_frozen_bits_and_reverse(
unsigned char* target,
92 const unsigned char* input)
const;
93 void insert_unpacked_bit_into_packed_array_at_position(
unsigned char* target,
94 const unsigned char bit,
96 void insert_packet_bit_into_packed_array_at_position(
unsigned char* target,
97 const unsigned char bit,
99 const int bit_pos)
const;
102 void encode_vector_packed(
unsigned char* target)
const;
103 void encode_vector_packed_subbyte(
unsigned char* target)
const;
104 void encode_packed_byte(
unsigned char* target)
const;
105 void encode_vector_packed_interbyte(
unsigned char* target)
const;
double rate()
Definition: polar_encoder.h:73
const char * get_input_conversion()
Definition: polar_encoder.h:77
int get_input_size()
Definition: polar_encoder.h:74
Include this header to use the message passing features.
Definition: logger.h:131
bool set_frame_size(unsigned int frame_size)
Definition: polar_encoder.h:76
Definition: generic_encoder.h:34
boost::shared_ptr< generic_encoder > sptr
Definition: generic_encoder.h:49
#define FEC_API
Definition: gr-fec/include/gnuradio/fec/api.h:30
POLAR encoder for basic details see 'polar_common' class.
Definition: polar_encoder.h:44
const char * get_output_conversion()
Definition: polar_encoder.h:78
POLAR code common operations and attributes.
Definition: polar_common.h:55
int get_output_size()
Definition: polar_encoder.h:75