11 class SamplerateMeterBlock :
public BlockSimple<T, T>
14 double last_timestamp = 0;
15 double samplecount = 0;
18 double measured_samplerate;
21 SamplerateMeterBlock();
22 ~SamplerateMeterBlock();
24 uint32_t
process(T *input, uint32_t nsamples, T *output);
30 nlohmann::ordered_json p;
34 nlohmann::json
get_cfg(std::string key) {
throw satdump_exception(key); }
38 throw satdump_exception(key);
cfg_res_t
set_cfg status.
Definition block.h:241
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 samplerate_meter.h:36
nlohmann::json get_cfg(std::string key)
Get parameters of the block as JSON.
Definition samplerate_meter.h:34
nlohmann::ordered_json get_cfg_list()
Get parameters LIST of the block's parameters. This does not contain actual values,...
Definition samplerate_meter.h:28
void init()
Applies current parameters to the block. This is called automatically once in start(),...
Definition samplerate_meter.h:26
uint32_t process(T *input, uint32_t nsamples, T *output)
Simplified "work" function, called automatically by work(). This takes away all boilerplate work usua...
Definition samplerate_meter.cpp:22