LibreVNA/Software/VNA_embedded/Application/VNA.hpp
2020-09-13 18:01:32 +02:00

27 lines
661 B
C++

#pragma once
#include <cstdint>
#include "Protocol.hpp"
#include "FPGA/FPGA.hpp"
namespace VNA {
using SweepCallback = void(*)(Protocol::Datapoint);
using StatusCallback = void(*)(FPGA::SamplingResult);
bool Init();
bool ConfigureSweep(Protocol::SweepSettings s, SweepCallback cb);
bool ConfigureManual(Protocol::ManualControl m, StatusCallback cb);
bool ConfigureGenerator(Protocol::GeneratorSettings g);
// Only call the following function when the sweep is inactive
bool GetTemps(uint8_t *source, uint8_t *lo);
void fillDeviceInfo(Protocol::DeviceInfo *info);
namespace Ref {
bool available();
bool applySettings(Protocol::ReferenceSettings s);
}
}