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

#include <frame_src.h>

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

Public Types

typedef std::shared_ptr< frame_srcsptr
 

Static Public Member Functions

static sptr make (uint8_t sf, int pay_len, int delay, int offset, float cfo, int n_frames, int os_factor, bool rand_sto)
 Produce frames at a regular interval.
 

Member Typedef Documentation

◆ sptr

typedef std::shared_ptr<frame_src> gr::lora_sdr::frame_src::sptr

Member Function Documentation

◆ make()

static sptr gr::lora_sdr::frame_src::make ( uint8_t  sf,
int  pay_len,
int  delay,
int  offset,
float  cfo,
int  n_frames,
int  os_factor,
bool  rand_sto 
)
static

Produce frames at a regular interval.

Output frames are composed of 8 upchirps, 2 sync words (8 and 16), 2.25 downchirps and 'pay_len' symbols. The first frame is output after 'offset' samples and each frame after is spaced of 'delay' samples. If rand_sto is true, the sto will vary for each frame, with a value uniformly distributed in [0, os_factor*2^sf). Zeros are output between frames. If a file_sink is connected, the payload will be random for each frame and saved to the file selected. Else a fix payload defined in frame_src_impl.cc will be used.

Parameters
sfSpreading factor
pay_lenlength of the payload in number of symbols
delaynumber of samples between two frames
offsetnumber of samples before the first frame (used to emulate the sampling frequency offset).! The offset of the first user should be smaller than 2^'sf'*'os_factor'!
cfoCarrier frequency offset
n_framesNumber of frames to send
os_factorOversampling factor
rand_stoIndicate to use a random sto for each frame

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