3#include "common/dsp/complex.h"
12 class VCOBlock :
public BlockSimple<float, complex_t>
23 uint32_t
process(
float *input, uint32_t nsamples, complex_t *output);
29 nlohmann::ordered_json p;
30 add_param_simple(p,
"k",
"float");
31 add_param_simple(p,
"amp",
"float");
39 else if (key ==
"amp")
42 throw satdump_exception(key);
49 else if (key ==
"amp")
52 throw satdump_exception(key);
cfg_res_t
set_cfg status.
Definition block.h:241
void init()
Applies current parameters to the block. This is called automatically once in start(),...
Definition vco.h:25
uint32_t process(float *input, uint32_t nsamples, complex_t *output)
Simplified "work" function, called automatically by work(). This takes away all boilerplate work usua...
Definition vco.cpp:12
nlohmann::json get_cfg(std::string key)
Get parameters of the block as JSON.
Definition vco.h:35
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 vco.h:45
nlohmann::ordered_json get_cfg_list()
Get parameters LIST of the block's parameters. This does not contain actual values,...
Definition vco.h:27