LibreVNA/Software/VNA_embedded/Application/VNA.hpp

27 lines
661 B
C++
Raw Normal View History

#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);
2020-09-14 00:01:32 +08:00
bool ConfigureGenerator(Protocol::GeneratorSettings g);
2020-09-12 18:17:35 +08:00
// Only call the following function when the sweep is inactive
bool GetTemps(uint8_t *source, uint8_t *lo);
2020-09-12 18:17:35 +08:00
void fillDeviceInfo(Protocol::DeviceInfo *info);
namespace Ref {
bool available();
bool applySettings(Protocol::ReferenceSettings s);
}
}