summaryrefslogtreecommitdiff
path: root/plugins/samplesource
diff options
context:
space:
mode:
authorJon Beniston <jon@beniston.com>2021-02-01 16:40:23 +0000
committerJon Beniston <jon@beniston.com>2021-02-01 16:40:23 +0000
commit43d71251bfe403bb0a1b832bd62d29cb572db96a (patch)
tree8da58a40f4cd0e1234f58ab53b94b17d96393802 /plugins/samplesource
parent91f07948220a6b797052bcd1573fd77a573cfbf9 (diff)
Add 128 and 256 decimation for AirspyHF
Diffstat (limited to 'plugins/samplesource')
-rw-r--r--plugins/samplesource/airspyhf/airspyhfgui.cpp2
-rw-r--r--plugins/samplesource/airspyhf/airspyhfgui.ui20
-rw-r--r--plugins/samplesource/airspyhf/airspyhfworker.cpp12
-rw-r--r--plugins/samplesource/airspyhf/readme.md2
4 files changed, 29 insertions, 7 deletions
diff --git a/plugins/samplesource/airspyhf/airspyhfgui.cpp b/plugins/samplesource/airspyhf/airspyhfgui.cpp
index 791569a2c..93da0660d 100644
--- a/plugins/samplesource/airspyhf/airspyhfgui.cpp
+++ b/plugins/samplesource/airspyhf/airspyhfgui.cpp
@@ -292,7 +292,7 @@ void AirspyHFGui::on_sampleRate_currentIndexChanged(int index)
void AirspyHFGui::on_decim_currentIndexChanged(int index)
{
- if ((index < 0) || (index > 6))
+ if ((index < 0) || (index > 8))
return;
m_settings.m_log2Decim = index;
sendSettings();
diff --git a/plugins/samplesource/airspyhf/airspyhfgui.ui b/plugins/samplesource/airspyhf/airspyhfgui.ui
index 1d0e2455a..40463d73b 100644
--- a/plugins/samplesource/airspyhf/airspyhfgui.ui
+++ b/plugins/samplesource/airspyhf/airspyhfgui.ui
@@ -395,6 +395,16 @@
<string>64</string>
</property>
</item>
+ <item>
+ <property name="text">
+ <string>128</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>256</string>
+ </property>
+ </item>
</widget>
</item>
<item>
@@ -592,17 +602,17 @@
</widget>
<customwidgets>
<customwidget>
+ <class>ButtonSwitch</class>
+ <extends>QToolButton</extends>
+ <header>gui/buttonswitch.h</header>
+ </customwidget>
+ <customwidget>
<class>ValueDial</class>
<extends>QWidget</extends>
<header>gui/valuedial.h</header>
<container>1</container>
</customwidget>
<customwidget>
- <class>ButtonSwitch</class>
- <extends>QToolButton</extends>
- <header>gui/buttonswitch.h</header>
- </customwidget>
- <customwidget>
<class>TransverterButton</class>
<extends>QPushButton</extends>
<header>gui/transverterbutton.h</header>
diff --git a/plugins/samplesource/airspyhf/airspyhfworker.cpp b/plugins/samplesource/airspyhf/airspyhfworker.cpp
index a7227528a..22fdc1b1b 100644
--- a/plugins/samplesource/airspyhf/airspyhfworker.cpp
+++ b/plugins/samplesource/airspyhf/airspyhfworker.cpp
@@ -111,6 +111,12 @@ void AirspyHFWorker::callbackIQ(const float* buf, qint32 len)
case 6:
m_decimatorsIQ.decimate64_cen(&it, buf, len);
break;
+ case 7:
+ m_decimatorsIQ.decimate128_cen(&it, buf, len);
+ break;
+ case 8:
+ m_decimatorsIQ.decimate256_cen(&it, buf, len);
+ break;
default:
break;
}
@@ -145,6 +151,12 @@ void AirspyHFWorker::callbackQI(const float* buf, qint32 len)
case 6:
m_decimatorsQI.decimate64_cen(&it, buf, len);
break;
+ case 7:
+ m_decimatorsQI.decimate128_cen(&it, buf, len);
+ break;
+ case 8:
+ m_decimatorsQI.decimate256_cen(&it, buf, len);
+ break;
default:
break;
}
diff --git a/plugins/samplesource/airspyhf/readme.md b/plugins/samplesource/airspyhf/readme.md
index d43807468..b4df31de0 100644
--- a/plugins/samplesource/airspyhf/readme.md
+++ b/plugins/samplesource/airspyhf/readme.md
@@ -71,7 +71,7 @@ Although the combo box is there to present a choice of sample rates at present t
<h3>8: Decimation factor</h3>
-The I/Q stream from the AirspyHF to host is downsampled by a power of two before being sent to the passband. Possible values are increasing powers of two: 1 (no decimation), 2, 4, 8, 16, 32, 64. When using audio channel plugins (AM, DSD, NFM, SSB...) please make sure that the sample rate is not less than the audio sample rate.
+The I/Q stream from the AirspyHF to host is downsampled by a power of two before being sent to the passband. Possible values are increasing powers of two: 1 (no decimation), 2, 4, 8, 16, 32, 64, 128, 256. When using audio channel plugins (AM, DSD, NFM, SSB...) please make sure that the sample rate is not less than the audio sample rate.
<h3>9: Transverter mode open dialog</h3>