GNU Radio's LORA Package
gr::lora::decoder_impl Class Reference

Return the DecoderState as string for debugging purposes. More...

#include <decoder_impl.h>

Inheritance diagram for gr::lora::decoder_impl:

Public Member Functions

 decoder_impl (float samp_rate, uint32_t bandwidth, uint8_t sf, bool implicit, uint8_t cr, bool crc, bool reduced_rate, bool disable_drift_correction)
 Default constructor.
 
 ~decoder_impl ()
 
int work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
 The main method called by GNU Radio to perform tasks on the given input.
 
virtual void set_sf (const uint8_t sf)
 Set th current spreading factor.
Currently not supported, restart GNU Radio with different settings instead.
 
virtual void set_samp_rate (const float samp_rate)
 Set the current sample rate.
Currently not supported, restart GNU Radio with different settings instead.
 

Additional Inherited Members

- Public Types inherited from gr::lora::decoder
typedef boost::shared_ptr< decodersptr
 
- Static Public Member Functions inherited from gr::lora::decoder
static sptr make (float samp_rate, uint32_t bandwidth, uint8_t sf, bool implicit, uint8_t cr, bool crc, bool reduced_rate, bool disable_drift_correction)
 Return a shared_ptr to a new instance of lora::decoder.
 

Detailed Description

Return the DecoderState as string for debugging purposes.

Parameters
sThe state to return to string.

LoRa Decoder
The main class for the LoRa decoder. Contains all variables and methods necessary for succesfully decoding LoRa PHY.
Only the sample rate and spreading factor are needed. The other settings, like packet length and coding rate, are extracted from the (explicit) HDR.

Constructor & Destructor Documentation

◆ decoder_impl()

gr::lora::decoder_impl::decoder_impl ( float  samp_rate,
uint32_t  bandwidth,
uint8_t  sf,
bool  implicit,
uint8_t  cr,
bool  crc,
bool  reduced_rate,
bool  disable_drift_correction 
)

Default constructor.

Parameters
samp_rateThe sample rate of the input signal given to work later.
sfThe expected spreqding factor.

◆ ~decoder_impl()

gr::lora::decoder_impl::~decoder_impl ( )

Default destructor.

Member Function Documentation

◆ set_samp_rate()

virtual void gr::lora::decoder_impl::set_samp_rate ( const float  samp_rate)
virtual

Set the current sample rate.
Currently not supported, restart GNU Radio with different settings instead.

Parameters
samp_rateThe new sample rate.

Implements gr::lora::decoder.

◆ set_sf()

virtual void gr::lora::decoder_impl::set_sf ( const uint8_t  sf)
virtual

Set th current spreading factor.
Currently not supported, restart GNU Radio with different settings instead.

Parameters
sfThe new spreading factor.

Implements gr::lora::decoder.

◆ work()

int gr::lora::decoder_impl::work ( int  noutput_items,
gr_vector_const_void_star &  input_items,
gr_vector_void_star &  output_items 
)

The main method called by GNU Radio to perform tasks on the given input.

Parameters
noutput_itemsThe requested amoutn of output items.
input_itemsAn array with samples to process.
output_itemsAn array to return processed samples.
Returns
Returns the number of output items generated.

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