2020-08-10 02:30:25 +02:00
|
|
|
#pragma once
|
2020-08-11 18:33:42 +02:00
|
|
|
#include <dsp/vfo.h>
|
|
|
|
#include <waterfall.h>
|
|
|
|
#include <signal_path.h>
|
2020-08-10 02:30:25 +02:00
|
|
|
|
|
|
|
namespace vfoman {
|
2020-08-11 18:33:42 +02:00
|
|
|
struct VFO_t {
|
|
|
|
dsp::VFO* dspVFO;
|
|
|
|
ImGui::WaterfallVFO* wtfVFO;
|
|
|
|
};
|
|
|
|
|
|
|
|
void init(ImGui::WaterFall* wtf, SignalPath* sigPath);
|
|
|
|
|
|
|
|
dsp::stream<dsp::complex_t>* create(std::string name, int reference, float offset, float bandwidth, float sampleRate, int blockSize);
|
|
|
|
void setOffset(std::string name, float offset);
|
|
|
|
void setCenterOffset(std::string name, float offset);
|
|
|
|
void setBandwidth(std::string name, float bandwidth);
|
|
|
|
void setSampleRate(std::string name, float sampleRate, float bandwidth);
|
|
|
|
void setReference(std::string name, int ref);
|
|
|
|
int getOutputBlockSize(std::string name);
|
|
|
|
void remove(std::string name);
|
|
|
|
|
|
|
|
void updateFromWaterfall();
|
2020-08-10 02:30:25 +02:00
|
|
|
};
|