4#include "dsp/block_helpers.h"
14 class AddBlock :
public BlockSimpleMulti<T, T, 2, 1>
17 void process(T **input, uint32_t *nsamples, T **output, uint32_t *nsamples_out);
27 nlohmann::ordered_json p;
31 nlohmann::json
get_cfg(std::string key) {
throw satdump_exception(key); }
35 throw satdump_exception(key);
nlohmann::json get_cfg(std::string key)
Get parameters of the block as JSON.
Definition add.h:31
void init()
Applies current parameters to the block. This is called automatically once in start(),...
Definition add.h:23
nlohmann::ordered_json get_cfg_list()
Get parameters LIST of the block's parameters. This does not contain actual values,...
Definition add.h:25
void process(T **input, uint32_t *nsamples, T **output, uint32_t *nsamples_out)
Simplified "work" function, called automatically by work(). This takes away all boilerplate work usua...
Definition add.cpp:22
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 add.h:33
cfg_res_t
set_cfg status.
Definition block.h:241