GNU Radio's LORA Package
|
Return the DecoderState as string for debugging purposes. More...
#include <decoder_impl.h>
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. More... | |
~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. More... | |
virtual void | set_sf (const uint8_t sf) |
Set th current spreading factor. Currently not supported, restart GNU Radio with different settings instead. More... | |
virtual void | set_samp_rate (const float samp_rate) |
Set the current sample rate. Currently not supported, restart GNU Radio with different settings instead. More... | |
virtual void | set_sf (uint8_t sf)=0 |
virtual void | set_samp_rate (float samp_rate)=0 |
Additional Inherited Members | |
![]() | |
typedef boost::shared_ptr< decoder > | sptr |
![]() | |
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. More... | |
Return the DecoderState as string for debugging purposes.
s | The 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.
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.
samp_rate | The sample rate of the input signal given to work later. |
sf | The expected spreqding factor. |
gr::lora::decoder_impl::~decoder_impl | ( | ) |
Default destructor.
|
virtual |
Set the current sample rate.
Currently not supported, restart GNU Radio with different settings instead.
samp_rate | The new sample rate. |
Implements gr::lora::decoder.
|
virtual |
Set th current spreading factor.
Currently not supported, restart GNU Radio with different settings instead.
sf | The new spreading factor. |
Implements gr::lora::decoder.
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.
noutput_items | The requested amoutn of output items. |
input_items | An array with samples to process. |
output_items | An array to return processed samples. |