#include <frame_src.h>
|
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.
|
|
◆ sptr
◆ 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
-
sf | Spreading factor |
pay_len | length of the payload in number of symbols |
delay | number of samples between two frames |
offset | number 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'! |
cfo | Carrier frequency offset |
n_frames | Number of frames to send |
os_factor | Oversampling factor |
rand_sto | Indicate to use a random sto for each frame |
The documentation for this class was generated from the following file: