GNU Radio's LORA_SDR Package
gr::lora_sdr::header_impl Class Reference

#include <header_impl.h>

Inheritance diagram for gr::lora_sdr::header_impl:
[legend]

Public Member Functions

 header_impl (bool impl_head, bool has_crc, uint8_t cr)
 Construct a new header impl object.
 
 ~header_impl ()
 Destroy the header impl object.
 
void forecast (int noutput_items, gr_vector_int &ninput_items_required)
 Gnuradio forecast function which tells the gnuradio system how many items are needed before it can continue to the work function.
 
int general_work (int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
 Main function where the actual computation is done. If impl_head is set to true the output will be the payload added with an header.
 

Additional Inherited Members

- Public Types inherited from gr::lora_sdr::header
typedef std::shared_ptr< headersptr
 
- Static Public Member Functions inherited from gr::lora_sdr::header
static sptr make (bool impl_head, bool has_crc, uint8_t cr)
 Return a shared_ptr to a new instance of lora_sdr::header.
 

Constructor & Destructor Documentation

◆ header_impl()

gr::lora_sdr::header_impl::header_impl ( bool  impl_head,
bool  has_crc,
uint8_t  cr 
)

Construct a new header impl object.

Parameters
impl_headboolean variable to indicate implicit header mode is used
has_crcboolean variable to indicate the presence of a payload crc
crTransmission coding rate

◆ ~header_impl()

gr::lora_sdr::header_impl::~header_impl ( )

Destroy the header impl object.

Member Function Documentation

◆ forecast()

void gr::lora_sdr::header_impl::forecast ( int  noutput_items,
gr_vector_int &  ninput_items_required 
)

Gnuradio forecast function which tells the gnuradio system how many items are needed before it can continue to the work function.

Parameters
noutput_items: number of output items
ninput_items_required: number of required output items before

◆ general_work()

int gr::lora_sdr::header_impl::general_work ( int  noutput_items,
gr_vector_int &  ninput_items,
gr_vector_const_void_star &  input_items,
gr_vector_void_star &  output_items 
)

Main function where the actual computation is done. If impl_head is set to true the output will be the payload added with an header.

Parameters
noutput_items: number of ouput items
ninput_items: number of input items
input_items: input items (output of whitening stage)
output_items: output items (added header if applicable)
Returns
int

The documentation for this class was generated from the following file: