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