3#include "common/dsp/filter/firdes.h"
5#include "dsp/filter/fir.h"
16 double samplerate = 6e6;
17 double symbolrate = 2e6;
24 nlohmann::ordered_json p;
25 add_param_simple(p,
"gain",
"float",
"Gain");
26 add_param_simple(p,
"samplerate",
"float",
"Samplerate");
27 add_param_simple(p,
"symbolrate",
"float",
"Symbolrate");
28 add_param_simple(p,
"alpha",
"float",
"Alpha");
29 add_param_simple(p,
"ntaps",
"int",
"NTaps");
37 else if (key ==
"samplerate")
39 else if (key ==
"symbolrate")
41 else if (key ==
"alpha")
43 else if (key ==
"ntaps")
53 else if (key ==
"samplerate")
55 else if (key ==
"symbolrate")
57 else if (key ==
"alpha")
59 else if (key ==
"ntaps")
62 if (key ==
"buffer_size")
66 auto taps = dsp::firdes::root_raised_cosine(gain, samplerate, symbolrate, alpha, ntaps);
cfg_res_t
set_cfg status.
Definition block.h:227
nlohmann::json get_cfg()
Get parameters of the block as JSON. Unlike get_cfg(key), this returns every single available paramet...
Definition block.h:263
cfg_res_t set_cfg(std::string key, nlohmann::json v)
Set parameters of the block from JSON, including potentially IO configurations for blocks that may ha...
Definition fir.h:81
Block::cfg_res_t set_cfg(std::string key, nlohmann::json v)
Set parameters of the block from JSON, including potentially IO configurations for blocks that may ha...
Definition rrc.h:49
nlohmann::json get_cfg(std::string key)
Get parameters of the block as JSON.
Definition rrc.h:33
nlohmann::ordered_json get_cfg_list()
Get parameters LIST of the block's parameters. This does not contain actual values,...
Definition rrc.h:22