gr::fec::ldpc_decoder
gr::fec::generic_decoder
gnuradio/fec/ldpc_decoder.h
float float gr::fec::ldpc_decoder::d_iterations d_iterations gr::fec::ldpc_decoder::d_iterations
int int gr::fec::ldpc_decoder::d_input_size d_input_size gr::fec::ldpc_decoder::d_input_size
int int gr::fec::ldpc_decoder::d_output_size d_output_size gr::fec::ldpc_decoder::d_output_size
double double gr::fec::ldpc_decoder::d_rate d_rate gr::fec::ldpc_decoder::d_rate
alist alist gr::fec::ldpc_decoder::d_list d_list gr::fec::ldpc_decoder::d_list
cldpc cldpc gr::fec::ldpc_decoder::d_code d_code gr::fec::ldpc_decoder::d_code
awgn_bp awgn_bp gr::fec::ldpc_decoder::d_spa d_spa gr::fec::ldpc_decoder::d_spa
gr::fec::ldpc_decoder::ldpc_decoder
(std::string alist_file, int max_iterations)
ldpc_decoder
gr::fec::ldpc_decoder::ldpc_decoder
std::string alist_file
int max_iterations
int int gr::fec::ldpc_decoder::get_history () override get_history gr::fec::ldpc_decoder::get_history get_history

Sets up history for the decoder when the decoder is required to look ahead in the data stream in order to finish its processing.

The child class MAY implement this function. If not reimplemented, it returns 0.

float float gr::fec::ldpc_decoder::get_shift () override get_shift gr::fec::ldpc_decoder::get_shift get_shift

Some decoders require the input items to float around a particular soft value. We can set that floating value by setting this value to return some non-zero number.

The fec.extended_decoder block will use this to create an add_const_ff block before the decoder block to adjust all input samples appropriately.

The child class MAY implement this function. If not reimplemented, it returns 0.

const char * const char * gr::fec::ldpc_decoder::get_conversion () get_conversion gr::fec::ldpc_decoder::get_conversion
void void gr::fec::ldpc_decoder::generic_work (const void *inBuffer, void *outbuffer) override generic_work gr::fec::ldpc_decoder::generic_work generic_work const void * inBuffer void * outbuffer
gr::fec::ldpc_decoder::~ldpc_decoder
() override
~ldpc_decoder
gr::fec::ldpc_decoder::~ldpc_decoder
double double gr::fec::ldpc_decoder::rate () override rate gr::fec::ldpc_decoder::rate rate

Returns the rate of the code. For every r input bits, there is 1 output bit, so the rate is 1/r. Used for setting things like the encoder block's relative rate.

This function MUST be reimplemented by the child class.

bool bool gr::fec::ldpc_decoder::set_frame_size (unsigned int frame_size) override set_frame_size gr::fec::ldpc_decoder::set_frame_size set_frame_size unsigned int frame_size

Updates the size of a decoded frame.

The child class MUST implement this function and interpret how the `frame_size` information affects the block's behavior. It should also provide bounds checks.

int int gr::fec::ldpc_decoder::get_output_size () override get_output_size gr::fec::ldpc_decoder::get_output_size get_output_size

Returns the output size in items that the decoder object produces after decoding a full frame. Often, this number is the number of bits in the outputted frame if the input format is unpacked. If the block produces packed bytes, then this value should be the number of bytes (number of bits / 8) per frame produced. This value is generally something like get_input_size()/R for a 1/R rate code.

The child class MUST implement this function.

int int gr::fec::ldpc_decoder::get_input_size () override get_input_size gr::fec::ldpc_decoder::get_input_size get_input_size

Returns the input size in items that the decoder object uses to decode a full frame. Often, this number is the number of bits per frame if the input format is unpacked. If the block expects packed bytes, then this value should be the number of bytes (number of bits / 8) per input frame.

The child class MUST implement this function.

int int gr::fec::ldpc_decoder::get_input_item_size () override get_input_item_size gr::fec::ldpc_decoder::get_input_item_size get_input_item_size

Sets the size of an input item, as in the size of a char or float item.

The child class SHOULD implement this function. If not reimplemented, it returns sizeof(float) as the decoders typically expect floating point input types.

int int gr::fec::ldpc_decoder::get_output_item_size () override get_output_item_size gr::fec::ldpc_decoder::get_output_item_size get_output_item_size

Sets the size of an output item, as in the size of a char or float item.

The child class SHOULD implement this function. If not reimplemented, it returns sizeof(char) as the decoders typically expect to produce bits or bytes.

float float gr::fec::ldpc_decoder::get_iterations () override get_iterations gr::fec::ldpc_decoder::get_iterations get_iterations

Get repetitions to decode.

The child class should implement this function and return the number of iterations required to decode.

generic_decoder::sptr static generic_decoder::sptr gr::fec::ldpc_decoder::make (std::string alist_file, int max_iterations=50) make gr::fec::ldpc_decoder::make std::string alist_file int max_iterations 50
gr::fec::generic_decoder
gr::fec::ldpc_decoder
gr::fec::generic_decoder
d_logger
d_name
gr::fec::ldpc_decoder
std::basic_string< Char >
std::shared_ptr< logger >
std::string
- gr::fec::ldpc_decoder
  alias
- gr::fec::ldpc_decoder
  base_unique_id
- gr::fec::ldpc_decoder
  d_code
- gr::fec::ldpc_decoder
  d_input_size
- gr::fec::ldpc_decoder
  d_iterations
- gr::fec::ldpc_decoder
  d_list
- gr::fec::ldpc_decoder
  d_logger
- gr::fec::ldpc_decoder
  d_name
- gr::fec::ldpc_decoder
  d_output_size
- gr::fec::ldpc_decoder
  d_rate
- gr::fec::ldpc_decoder
  d_spa
- gr::fec::ldpc_decoder
  generic_decoder
- gr::fec::ldpc_decoder
  generic_decoder
- gr::fec::ldpc_decoder
  generic_work
- gr::fec::ldpc_decoder
  get_conversion
- gr::fec::ldpc_decoder
  get_history
- gr::fec::ldpc_decoder
  get_input_conversion
- gr::fec::ldpc_decoder
  get_input_item_size
- gr::fec::ldpc_decoder
  get_input_size
- gr::fec::ldpc_decoder
  get_iterations
- gr::fec::ldpc_decoder
  get_output_conversion
- gr::fec::ldpc_decoder
  get_output_item_size
- gr::fec::ldpc_decoder
  get_output_size
- gr::fec::ldpc_decoder
  get_shift
- gr::fec::ldpc_decoder
  ldpc_decoder
- gr::fec::ldpc_decoder
  make
- gr::fec::ldpc_decoder
  my_id
- gr::fec::ldpc_decoder
  rate
- gr::fec::ldpc_decoder
  set_frame_size
- gr::fec::ldpc_decoder
  sptr
- gr::fec::ldpc_decoder
  unique_id
- gr::fec::ldpc_decoder
  ~generic_decoder
- gr::fec::ldpc_decoder
  ~ldpc_decoder