#include <gnuradio/fec/generic_encoder.h>
◆ sptr
◆ generic_encoder() [1/2]
gr::fec::generic_encoder::generic_encoder |
( |
void |
| ) |
|
|
inline |
◆ generic_encoder() [2/2]
gr::fec::generic_encoder::generic_encoder |
( |
std::string |
name | ) |
|
◆ ~generic_encoder()
virtual gr::fec::generic_encoder::~generic_encoder |
( |
| ) |
|
|
virtual |
◆ alias()
std::string gr::fec::generic_encoder::alias |
( |
| ) |
|
◆ generic_work()
virtual void gr::fec::generic_encoder::generic_work |
( |
void * |
in_buffer, |
|
|
void * |
out_buffer |
|
) |
| |
|
pure virtual |
◆ get_input_conversion()
virtual const char * gr::fec::generic_encoder::get_input_conversion |
( |
| ) |
|
|
virtual |
Set up a conversion type required to setup the data properly for this encoder. The encoder itself will not implement the conversion and expects an external wrapper (e.g., fec.extended_encoder) to read this value and "do the right
thing" to format the data.
The default behavior is 'none', which means no conversion is required. Whatever the get_input_item_size() value returns, the input is expected to conform directly to this. Generally, this means unpacked bytes.
If 'pack', the block expects the inputs to be packed bytes. The wrapper should implement a gr::blocks::pack_k_bits_bb(8) block for this.
The child class MAY implement this function. If not reimplemented, it returns "none".
Reimplemented in gr::fec::code::polar_encoder.
◆ get_input_size()
virtual int gr::fec::generic_encoder::get_input_size |
( |
| ) |
|
|
pure virtual |
◆ get_output_conversion()
virtual const char * gr::fec::generic_encoder::get_output_conversion |
( |
| ) |
|
|
virtual |
Set up a conversion type required to understand the output style of this encoder. Generally an encoder will produce unpacked bytes with a bit set in the LSB.
The default behavior is 'none', which means no conversion is required and the encoder produces unpacked bytes.
If 'packed_bits', the block produces packed bits and the wrapper should unpack these (using, for instance, gr::block::unpack_k_bits_bb(8)).
The child class MAY implement this function. If not reimplemented, it returns "none".
Reimplemented in gr::fec::code::polar_encoder.
◆ get_output_size()
virtual int gr::fec::generic_encoder::get_output_size |
( |
| ) |
|
|
pure virtual |
◆ rate()
virtual double gr::fec::generic_encoder::rate |
( |
| ) |
|
|
pure virtual |
Returns the rate of the code. For every 1 input bit, there are r output bits, 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.
Implemented in gr::fec::code::polar_encoder, gr::fec::code::polar_encoder_systematic, gr::fec::tpc_encoder, gr::fec::code::cc_encoder, gr::fec::code::ccsds_encoder, gr::fec::code::dummy_encoder, gr::fec::ldpc_encoder, gr::fec::code::ldpc_gen_mtrx_encoder, gr::fec::code::ldpc_par_mtrx_encoder, and gr::fec::code::repetition_encoder.
◆ set_frame_size()
virtual bool gr::fec::generic_encoder::set_frame_size |
( |
unsigned int |
frame_size | ) |
|
|
pure virtual |
◆ unique_id()
int gr::fec::generic_encoder::unique_id |
( |
| ) |
|
◆ encoder
◆ base_unique_id
int gr::fec::generic_encoder::base_unique_id |
|
static |
◆ d_logger
◆ d_name
std::string gr::fec::generic_encoder::d_name |
◆ my_id
int gr::fec::generic_encoder::my_id |
The documentation for this class was generated from the following file: