4#include "dsp/block_helpers.h"
8#include <volk/volk_complex.h>
14 class ExponentiateBlock :
public BlockSimple<complex_t, complex_t>
18 bool needs_reinit =
false;
27 void init() { d_expo = p_expo; }
29 uint32_t
process(complex_t *input, uint32_t nsamples, complex_t *output);
33 nlohmann::ordered_json p;
34 add_param_simple(p,
"expo",
"uint");
43 throw satdump_exception(key);
54 throw satdump_exception(key);
cfg_res_t
set_cfg status.
Definition block.h:241
nlohmann::ordered_json get_cfg_list()
Get parameters LIST of the block's parameters. This does not contain actual values,...
Definition exponentiate.h:31
void init()
Applies current parameters to the block. This is called automatically once in start(),...
Definition exponentiate.h:27
nlohmann::json get_cfg(std::string key)
Get parameters of the block as JSON.
Definition exponentiate.h:38
uint32_t process(complex_t *input, uint32_t nsamples, complex_t *output)
Simplified "work" function, called automatically by work(). This takes away all boilerplate work usua...
Definition exponentiate.cpp:17
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 exponentiate.h:46