mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-24 11:12:27 -04:00
LimeSDR input: interim state ()
This commit is contained in:
parent
4322a732be
commit
a9b2e76e15
@ -48,9 +48,37 @@ PlutoSDRInput::~PlutoSDRInput()
|
|||||||
|
|
||||||
bool PlutoSDRInput::start()
|
bool PlutoSDRInput::start()
|
||||||
{
|
{
|
||||||
|
if (!m_deviceShared.m_deviceParams->getBox()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_running) stop();
|
||||||
|
|
||||||
|
applySettings(m_settings, true);
|
||||||
|
|
||||||
|
// start / stop streaming is done in the thread.
|
||||||
|
|
||||||
|
// if ((m_limeSDRInputThread = new LimeSDRInputThread(&m_streamId, &m_sampleFifo)) == 0)
|
||||||
|
// {
|
||||||
|
// qFatal("LimeSDRInput::start: cannot create thread");
|
||||||
|
// stop();
|
||||||
|
// return false;
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// qDebug("LimeSDRInput::start: thread created");
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// m_limeSDRInputThread->setLog2Decimation(m_settings.m_log2SoftDecim);
|
||||||
|
//
|
||||||
|
// m_limeSDRInputThread->startWork();
|
||||||
|
//
|
||||||
|
// m_deviceShared.m_thread = m_limeSDRInputThread;
|
||||||
|
// m_running = true;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
void PlutoSDRInput::stop()
|
void PlutoSDRInput::stop()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@ -139,6 +167,8 @@ bool PlutoSDRInput::openDevice()
|
|||||||
DevicePlutoSDRBox *plutoBox = m_deviceShared.m_deviceParams->getBox();
|
DevicePlutoSDRBox *plutoBox = m_deviceShared.m_deviceParams->getBox();
|
||||||
plutoBox->openRx();
|
plutoBox->openRx();
|
||||||
m_plutoRxBuffer = plutoBox->createRxBuffer(1024*1024, false);
|
m_plutoRxBuffer = plutoBox->createRxBuffer(1024*1024, false);
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void PlutoSDRInput::closeDevice()
|
void PlutoSDRInput::closeDevice()
|
||||||
@ -183,5 +213,9 @@ void PlutoSDRInput::resumeBuddies()
|
|||||||
buddyShared->m_thread->startWork();
|
buddyShared->m_thread->startWork();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
bool PlutoSDRInput::applySettings(const PlutoSDRInputSettings& settings, bool force)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -76,6 +76,7 @@ public:
|
|||||||
void closeDevice();
|
void closeDevice();
|
||||||
void suspendBuddies();
|
void suspendBuddies();
|
||||||
void resumeBuddies();
|
void resumeBuddies();
|
||||||
|
bool applySettings(const PlutoSDRInputSettings& settings, bool force = false);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user