4#include "dsp/block_helpers.h"
14 class SubtractBlock :
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);
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 subtract.h:25
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 subtract.h:33
void init()
Applies current parameters to the block. This is called automatically once in start(),...
Definition subtract.h:23
nlohmann::json get_cfg(std::string key)
Get parameters of the block as JSON.
Definition subtract.h:31
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 subtract.cpp:22