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

#include <frame_detector_timeout_impl.h>

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

Public Member Functions

 frame_detector_timeout_impl (uint8_t sf, uint32_t smap_rate, uint32_t bw, uint8_t n_bytes, bool detect_second_packet)
 Construct a new frame detector impl object.
 
 ~frame_detector_timeout_impl ()
 Destroy the frame detector impl object.
 
void forecast (int noutput_items, gr_vector_int &ninput_items_required)
 
int general_work (int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
 General work function. Main gnuradio function that does the heavy lifting.
 

Additional Inherited Members

- Public Types inherited from gr::lora_sdr::frame_detector_timeout
typedef std::shared_ptr< frame_detector_timeoutsptr
 
- Static Public Member Functions inherited from gr::lora_sdr::frame_detector_timeout
static sptr make (uint8_t sf, uint32_t samp_rate, uint32_t bw, uint8_t n_bytes, bool detect_second_packet)
 Return a shared_ptr to a new instance of lora_sdr::frame_detector_timeout.
 

Constructor & Destructor Documentation

◆ frame_detector_timeout_impl()

gr::lora_sdr::frame_detector_timeout_impl::frame_detector_timeout_impl ( uint8_t  sf,
uint32_t  smap_rate,
uint32_t  bw,
uint8_t  n_bytes,
bool  detect_second_packet 
)

Construct a new frame detector impl object.

Parameters
samp_rate: sampling rate
bandwidth: bandwith
sf: spreading factor
n_bytes: number of bytes to send after preamble detection
detect_second_packet: if systems needs to detect second frame inside the window

◆ ~frame_detector_timeout_impl()

gr::lora_sdr::frame_detector_timeout_impl::~frame_detector_timeout_impl ( )

Destroy the frame detector impl object.

Member Function Documentation

◆ forecast()

void gr::lora_sdr::frame_detector_timeout_impl::forecast ( int  noutput_items,
gr_vector_int &  ninput_items_required 
)
Parameters
noutput_items: number of output items
ninput_items_required: required input items (how many items must we have for we can do something)

◆ general_work()

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

General work function. Main gnuradio function that does the heavy lifting.

Parameters
noutput_items: number of output items
ninput_items: number of input items
input_items: input items
output_items: output items
Returns
int

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