satdump/src-core/dsp/utils/delay_one_imag.h
2025-05-04 06:33:02 -03:00

37 lines
849 B
C++

#pragma once
#include "common/dsp/complex.h"
#include "dsp/block.h"
#include "dsp/block_simple.h"
#include <cstdint>
namespace satdump
{
namespace ndsp
{
class DelayOneImagBlock : public BlockSimple<complex_t, complex_t>
{
private:
float lastSamp;
public:
DelayOneImagBlock();
~DelayOneImagBlock();
uint32_t process(complex_t *input, uint32_t nsamples, complex_t *output);
void init() {}
nlohmann::json get_cfg(std::string key)
{
throw satdump_exception(key);
}
cfg_res_t set_cfg(std::string key, nlohmann::json v)
{
throw satdump_exception(key);
return RES_OK;
}
};
} // namespace ndsp
} // namespace satdump