1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 06:04:39 -04:00

BladerRF2 input support (7). GUI and Plugin

This commit is contained in:
f4exb
2018-09-25 00:38:38 +02:00
parent cdeb6e6c42
commit b20feec1fd
10 changed files with 573 additions and 302 deletions
@@ -417,6 +417,34 @@ void BladeRF2Input::setCenterFrequency(qint64 centerFrequency)
}
}
void BladeRF2Input::getFrequencyRange(uint64_t& min, uint64_t& max, int& step)
{
if (m_deviceShared.m_dev) {
m_deviceShared.m_dev->getFrequencyRangeRx(min, max, step);
}
}
void BladeRF2Input::getSampleRateRange(int& min, int& max, int& step)
{
if (m_deviceShared.m_dev) {
m_deviceShared.m_dev->getSampleRateRangeRx(min, max, step);
}
}
void BladeRF2Input::getBandwidthRange(int& min, int& max, int& step)
{
if (m_deviceShared.m_dev) {
m_deviceShared.m_dev->getBandwidthRangeRx(min, max, step);
}
}
void BladeRF2Input::getGlobalGainRange(int& min, int& max, int& step)
{
if (m_deviceShared.m_dev) {
m_deviceShared.m_dev->getGlobalGainRangeRx(min, max, step);
}
}
bool BladeRF2Input::handleMessage(const Message& message)
{
if (MsgConfigureBladeRF2::match(message))
@@ -930,4 +958,4 @@ int BladeRF2Input::webapiRun(
}
return 200;
}
}