Return the DecoderState as string for debugging purposes.
More...
#include <decoder_impl.h>
|
| 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.
|
|
|
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.
|
|
Return the DecoderState as string for debugging purposes.
- Parameters
-
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.
◆ 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_rate | The sample rate of the input signal given to work later. |
sf | The expected spreqding factor. |
◆ ~decoder_impl()
gr::lora::decoder_impl::~decoder_impl |
( |
| ) |
|
◆ 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_rate | The 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
-
sf | The 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_items | The requested amoutn of output items. |
input_items | An array with samples to process. |
output_items | An array to return processed samples. |
- Returns
- Returns the number of output items generated.
The documentation for this class was generated from the following file: