mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-07-26 12:04:13 -04:00
Merge pull request #2814 from rgetz/rgetz-pluto-gain-updates
plutosdr: Update RX gain limits dynamically from hardware
This commit is contained in:
@@ -732,6 +732,19 @@ void PlutoSDRInput::getbbLPRange(quint32& minLimit, quint32& maxLimit)
|
||||
maxLimit = max;
|
||||
}
|
||||
|
||||
void PlutoSDRInput::getGainRange(qint64& minGain, qint64& stepGain, qint64& maxGain)
|
||||
{
|
||||
if (!m_open)
|
||||
{
|
||||
qDebug("PlutoSDRInput::getGainRange: device not open");
|
||||
return;
|
||||
}
|
||||
|
||||
DevicePlutoSDRBox *plutoBox = m_deviceShared.m_deviceParams->getBox();
|
||||
|
||||
plutoBox->getGainRange(minGain, stepGain, maxGain);
|
||||
}
|
||||
|
||||
void PlutoSDRInput::getGain(int& gaindB)
|
||||
{
|
||||
if (!m_open)
|
||||
|
||||
Reference in New Issue
Block a user