mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 21:54:55 -04:00
HackRF output: continuous sample rate setting
This commit is contained in:
@@ -247,13 +247,6 @@ void HackRFInputGui::on_iqImbalance_toggled(bool checked)
|
||||
sendSettings();
|
||||
}
|
||||
|
||||
void HackRFInputGui::on_sampleRate_currentIndexChanged(int index)
|
||||
{
|
||||
// int newrate = HackRFSampleRates::getRate(index);
|
||||
// m_settings.m_devOldSampleRate = newrate;
|
||||
// sendSettings();
|
||||
}
|
||||
|
||||
void HackRFInputGui::on_bbFilter_currentIndexChanged(int index)
|
||||
{
|
||||
int newBandwidth = HackRFBandwidths::getBandwidth(index);
|
||||
@@ -279,7 +272,7 @@ void HackRFInputGui::on_centerFrequency_changed(quint64 value)
|
||||
sendSettings();
|
||||
}
|
||||
|
||||
void HackRFInputGui::on_newSampleRate_changed(quint64 value)
|
||||
void HackRFInputGui::on_sampleRate_changed(quint64 value)
|
||||
{
|
||||
m_settings.m_devSampleRate = value;
|
||||
sendSettings();
|
||||
|
||||
@@ -78,11 +78,10 @@ private:
|
||||
private slots:
|
||||
void handleDSPMessages();
|
||||
void on_centerFrequency_changed(quint64 value);
|
||||
void on_newSampleRate_changed(quint64 value);
|
||||
void on_sampleRate_changed(quint64 value);
|
||||
void on_LOppm_valueChanged(int value);
|
||||
void on_dcOffset_toggled(bool checked);
|
||||
void on_iqImbalance_toggled(bool checked);
|
||||
void on_sampleRate_currentIndexChanged(int index);
|
||||
void on_biasT_stateChanged(int state);
|
||||
void on_decim_currentIndexChanged(int index);
|
||||
void on_fcPos_currentIndexChanged(int index);
|
||||
|
||||
@@ -29,7 +29,6 @@ void HackRFInputSettings::resetToDefaults()
|
||||
{
|
||||
m_centerFrequency = 435000 * 1000;
|
||||
m_LOppmTenths = 0;
|
||||
m_devOldSampleRate = 2400000;
|
||||
m_biasT = false;
|
||||
m_log2Decim = 0;
|
||||
m_fcPos = FC_POS_CENTER;
|
||||
@@ -39,6 +38,7 @@ void HackRFInputSettings::resetToDefaults()
|
||||
m_vgaGain = 16;
|
||||
m_dcBlock = false;
|
||||
m_iqCorrection = false;
|
||||
m_devSampleRate = 2400000;
|
||||
}
|
||||
|
||||
QByteArray HackRFInputSettings::serialize() const
|
||||
@@ -46,7 +46,6 @@ QByteArray HackRFInputSettings::serialize() const
|
||||
SimpleSerializer s(1);
|
||||
|
||||
s.writeS32(1, m_LOppmTenths);
|
||||
s.writeU32(2, m_devOldSampleRate);
|
||||
s.writeBool(3, m_biasT);
|
||||
s.writeU32(4, m_log2Decim);
|
||||
s.writeS32(5, m_fcPos);
|
||||
@@ -76,7 +75,6 @@ bool HackRFInputSettings::deserialize(const QByteArray& data)
|
||||
int intval;
|
||||
|
||||
d.readS32(1, &m_LOppmTenths, 0);
|
||||
d.readU32(2, &m_devOldSampleRate, 2400000);
|
||||
d.readBool(3, &m_biasT, false);
|
||||
d.readU32(4, &m_log2Decim, 0);
|
||||
d.readS32(5, &intval, 0);
|
||||
|
||||
@@ -28,7 +28,6 @@ struct HackRFInputSettings {
|
||||
|
||||
quint64 m_centerFrequency;
|
||||
qint32 m_LOppmTenths;
|
||||
quint32 m_devOldSampleRate;
|
||||
quint32 m_bandwidth;
|
||||
quint32 m_lnaGain;
|
||||
quint32 m_vgaGain;
|
||||
|
||||
Reference in New Issue
Block a user