SatDump 2.0.0-alpha-76a915210
Loading...
Searching...
No Matches
hist_disp.h
1#pragma once
2
3#include "common/dsp/complex.h"
4#include "common/widgets/histogram.h"
5#include "dsp/block.h"
6
7namespace satdump
8{
9 namespace ndsp
10 {
11 class HistogramDisplayBlock : public Block
12 {
13 public:
14 widgets::HistoViewer histo;
15
16 public:
17 HistogramDisplayBlock();
18 ~HistogramDisplayBlock();
19
20 bool work();
21
22 nlohmann::json get_cfg(std::string key)
23 {
24 throw satdump_exception(key);
25 }
26
27 cfg_res_t set_cfg(std::string key, nlohmann::json v)
28 {
29 throw satdump_exception(key);
30 return RES_OK;
31 }
32 };
33 } // namespace ndsp
34} // namespace satdump
cfg_res_t
set_cfg status.
Definition block.h:227
Block(std::string id, std::vector< BlockIO > in={}, std::vector< BlockIO > out={})
Generic constructor, to be overloaded.
Definition block.h:206
nlohmann::json get_cfg(std::string key)
Get parameters of the block as JSON.
Definition hist_disp.h:22
bool work()
The actual looping work function meant to handle all the DSP (well, in most blocks)
Definition hist_disp.cpp:11
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 hist_disp.h:27