SatDump 2.0.0-alpha-76a915210
Loading...
Searching...
No Matches
cyclostationary_analysis.h
1#pragma once
2
3#include "common/dsp/complex.h"
4#include "dsp/block.h"
5
6namespace satdump
7{
8 namespace ndsp
9 {
10 class CyclostationaryAnalysis : public Block
11 {
12 public:
13 //
14
15 private:
16 bool work();
17
18 public:
19 CyclostationaryAnalysis();
20 ~CyclostationaryAnalysis();
21
22 void init() {}
23
24 nlohmann::json get_cfg(std::string key)
25 {
26 throw satdump_exception(key);
27 }
28
29 cfg_res_t set_cfg(std::string key, nlohmann::json v)
30 {
31 throw satdump_exception(key);
32 return RES_OK;
33 // setValFromJSONIfExists(p_loop_bw, v["loop_bw"]);
34 }
35 };
36 } // namespace ndsp
37} // namespace satdump
cfg_res_t
set_cfg status.
Definition block.h:227
virtual bool work()=0
The actual looping work function meant to handle all the DSP (well, in most blocks)
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 cyclostationary_analysis.h:24
void init()
Applies current parameters to the block. This is called automatically once in start(),...
Definition cyclostationary_analysis.h:22
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 cyclostationary_analysis.h:29