SoapySDR support: input and output: display mapped setting elements after applying settings

pull/263/head
f4exb 2018-11-15 14:14:49 +01:00
rodzic 69cd5645eb
commit dbbabd4b57
2 zmienionych plików z 64 dodań i 0 usunięć

Wyświetl plik

@ -1193,6 +1193,38 @@ bool SoapySDROutput::applySettings(const SoapySDROutputSettings& settings, bool
<< " m_globalGain: " << m_settings.m_globalGain
<< " force: " << force;
QMap<QString, double>::const_iterator doubleIt = m_settings.m_individualGains.begin();
for(; doubleIt != m_settings.m_individualGains.end(); ++doubleIt) {
qDebug("SoapySDROutput::applySettings: m_individualGains[%s]: %lf", doubleIt.key().toStdString().c_str(), doubleIt.value());
}
doubleIt = m_settings.m_tunableElements.begin();
for(; doubleIt != m_settings.m_tunableElements.end(); ++doubleIt) {
qDebug("SoapySDROutput::applySettings: m_tunableElements[%s]: %lf", doubleIt.key().toStdString().c_str(), doubleIt.value());
}
QMap<QString, QVariant>::const_iterator varIt = m_settings.m_deviceArgSettings.begin();
for(; varIt != m_settings.m_deviceArgSettings.end(); ++varIt)
{
qDebug("SoapySDROutput::applySettings: m_deviceArgSettings[%s] (type %d): %s",
varIt.key().toStdString().c_str(),
(int) varIt.value().type(), // bool: 1, int: 2, double: 6, string: 10 (http://doc.qt.io/archives/qt-4.8/qvariant.html)
varIt.value().toString().toStdString().c_str());
}
varIt = m_settings.m_streamArgSettings.begin();
for(; varIt != m_settings.m_streamArgSettings.end(); ++varIt)
{
qDebug("SoapySDROutput::applySettings: m_streamArgSettings[%s] (type %d): %s",
varIt.key().toStdString().c_str(),
(int) varIt.value().type(),
varIt.value().toString().toStdString().c_str());
}
return true;
}

Wyświetl plik

@ -1245,6 +1245,38 @@ bool SoapySDRInput::applySettings(const SoapySDRInputSettings& settings, bool fo
<< " m_globalGain: " << m_settings.m_globalGain
<< " force: " << force;
QMap<QString, double>::const_iterator doubleIt = m_settings.m_individualGains.begin();
for(; doubleIt != m_settings.m_individualGains.end(); ++doubleIt) {
qDebug("SoapySDRInput::applySettings: m_individualGains[%s]: %lf", doubleIt.key().toStdString().c_str(), doubleIt.value());
}
doubleIt = m_settings.m_tunableElements.begin();
for(; doubleIt != m_settings.m_tunableElements.end(); ++doubleIt) {
qDebug("SoapySDRInput::applySettings: m_tunableElements[%s]: %lf", doubleIt.key().toStdString().c_str(), doubleIt.value());
}
QMap<QString, QVariant>::const_iterator varIt = m_settings.m_deviceArgSettings.begin();
for(; varIt != m_settings.m_deviceArgSettings.end(); ++varIt)
{
qDebug("SoapySDRInput::applySettings: m_deviceArgSettings[%s] (type %d): %s",
varIt.key().toStdString().c_str(),
(int) varIt.value().type(), // bool: 1, int: 2, double: 6, string: 10 (http://doc.qt.io/archives/qt-4.8/qvariant.html)
varIt.value().toString().toStdString().c_str());
}
varIt = m_settings.m_streamArgSettings.begin();
for(; varIt != m_settings.m_streamArgSettings.end(); ++varIt)
{
qDebug("SoapySDRInput::applySettings: m_streamArgSettings[%s] (type %d): %s",
varIt.key().toStdString().c_str(),
(int) varIt.value().type(),
varIt.value().toString().toStdString().c_str());
}
return true;
}