From 54599c12312b7ac39a45a50622ef11877f672486 Mon Sep 17 00:00:00 2001 From: f4exb Date: Mon, 17 Apr 2017 11:24:56 +0200 Subject: [PATCH] LimeSDR input: debug (1) --- .../samplesource/limesdrinput/limesdrinput.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/plugins/samplesource/limesdrinput/limesdrinput.cpp b/plugins/samplesource/limesdrinput/limesdrinput.cpp index 326a497cc..f06d0d137 100644 --- a/plugins/samplesource/limesdrinput/limesdrinput.cpp +++ b/plugins/samplesource/limesdrinput/limesdrinput.cpp @@ -28,6 +28,7 @@ #include "limesdr/devicelimesdrparam.h" MESSAGE_CLASS_DEFINITION(LimeSDRInput::MsgConfigureLimeSDR, Message) +MESSAGE_CLASS_DEFINITION(LimeSDRInput::MsgSetReferenceConfig, Message) MESSAGE_CLASS_DEFINITION(LimeSDRInput::MsgReportLimeSDRToGUI, Message) @@ -208,6 +209,22 @@ void LimeSDRInput::stop() m_running = false; } +const QString& LimeSDRInput::getDeviceDescription() const +{ + return m_deviceDescription; +} + +int LimeSDRInput::getSampleRate() const +{ + int rate = m_settings.m_devSampleRate; + return (rate / (1<<(m_settings.m_log2HardDecim + m_settings.m_log2SoftDecim))); +} + +quint64 LimeSDRInput::getCenterFrequency() const +{ + return m_settings.m_centerFrequency; +} + std::size_t LimeSDRInput::getChannelIndex() { return m_deviceShared.m_channel;