SatDump 2.0.0-alpha-520736c72
Loading...
Searching...
No Matches
float_to_complex.h
1#pragma once
2
3#include "common/dsp/complex.h"
5
6namespace satdump
7{
8 namespace ndsp
9 {
10 class FloatToComplexBlock : public BlockSimpleMulti<float, complex_t, 2, 1>
11 {
12 public:
13 void process(float **input, uint32_t *nsamples, complex_t **output, uint32_t *nsamples_out);
14
15 public:
16 FloatToComplexBlock();
17 ~FloatToComplexBlock();
18
19 void init() {}
20
21 nlohmann::ordered_json get_cfg_list()
22 {
23 nlohmann::ordered_json p;
24 return p;
25 }
26
27 nlohmann::json get_cfg(std::string key) { throw satdump_exception(key); }
28
29 cfg_res_t set_cfg(std::string key, nlohmann::json v)
30 {
31 throw satdump_exception(key);
32 return RES_OK;
33 }
34 };
35 } // namespace ndsp
36} // namespace satdump
cfg_res_t
set_cfg status.
Definition block.h:241
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 float_to_complex.h:29
nlohmann::ordered_json get_cfg_list()
Get parameters LIST of the block's parameters. This does not contain actual values,...
Definition float_to_complex.h:21
void init()
Applies current parameters to the block. This is called automatically once in start(),...
Definition float_to_complex.h:19
void process(float **input, uint32_t *nsamples, complex_t **output, uint32_t *nsamples_out)
Simplified "work" function, called automatically by work(). This takes away all boilerplate work usua...
Definition float_to_complex.cpp:15
nlohmann::json get_cfg(std::string key)
Get parameters of the block as JSON.
Definition float_to_complex.h:27