gr::fec::code::repetition_encoder
gr::fec::generic_encoder
gnuradio/fec/repetition_encoder.h
generic_encoder::sptr static generic_encoder::sptr gr::fec::code::repetition_encoder::make (int frame_size, int rep) make gr::fec::code::repetition_encoder::make int frame_size int rep

Build a repetition encoding FEC API object.

frame_size

Number of bits per frame. If using in the tagged stream style, this is the maximum allowable number of bits per frame.

rep

Repetition rate; encoder rate is rep bits out for each input bit.

bool bool gr::fec::code::repetition_encoder::set_frame_size (unsigned int frame_size) override=0 set_frame_size gr::fec::code::repetition_encoder::set_frame_size set_frame_size unsigned int frame_size

Sets the uncoded frame size to `frame_size`. If `frame_size` is greater than the value given to the constructor, the frame size will be capped by that initial value and this function will return false. Otherwise, it returns true.

double double gr::fec::code::repetition_encoder::rate () override=0 rate gr::fec::code::repetition_encoder::rate rate

Returns the coding rate of this encoder.

Repetition Encoding class.

A repetition encoder class that repeats each input bit `rep` times. To decode, take a majority vote over the number of repetitions.

gr::fec::code::repetition_encoder
gr::fec::generic_encoder
gr::fec::code::repetition_encoder
gr::fec::generic_encoder
d_logger
d_name
std::basic_string< Char >
std::shared_ptr< logger >
std::string
- gr::fec::code::repetition_encoder
  alias
- gr::fec::code::repetition_encoder
  base_unique_id
- gr::fec::code::repetition_encoder
  d_logger
- gr::fec::code::repetition_encoder
  d_name
- gr::fec::code::repetition_encoder
  generic_encoder
- gr::fec::code::repetition_encoder
  generic_encoder
- gr::fec::code::repetition_encoder
  generic_work
- gr::fec::code::repetition_encoder
  get_input_conversion
- gr::fec::code::repetition_encoder
  get_input_size
- gr::fec::code::repetition_encoder
  get_output_conversion
- gr::fec::code::repetition_encoder
  get_output_size
- gr::fec::code::repetition_encoder
  make
- gr::fec::code::repetition_encoder
  my_id
- gr::fec::code::repetition_encoder
  rate
- gr::fec::code::repetition_encoder
  set_frame_size
- gr::fec::code::repetition_encoder
  sptr
- gr::fec::code::repetition_encoder
  unique_id
- gr::fec::code::repetition_encoder
  ~generic_encoder