2018-10-29 11:39:25 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Copyright (C) 2018 Edouard Griffiths, F4EXB //
|
|
|
|
// //
|
|
|
|
// This program is free software; you can redistribute it and/or modify //
|
|
|
|
// it under the terms of the GNU General Public License as published by //
|
|
|
|
// the Free Software Foundation as version 3 of the License, or //
|
|
|
|
// //
|
|
|
|
// This program is distributed in the hope that it will be useful, //
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
|
|
|
// GNU General Public License V3 for more details. //
|
|
|
|
// //
|
|
|
|
// You should have received a copy of the GNU General Public License //
|
|
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "util/simpleserializer.h"
|
|
|
|
|
|
|
|
#include "soapysdrinput.h"
|
|
|
|
|
2018-10-29 13:27:58 -04:00
|
|
|
SoapySDRInput::SoapySDRInput(DeviceSourceAPI *deviceAPI __attribute__((unused))) :
|
|
|
|
m_deviceDescription("SoapySDRInput")
|
2018-10-29 11:39:25 -04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
SoapySDRInput::~SoapySDRInput()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void SoapySDRInput::destroy()
|
|
|
|
{
|
|
|
|
delete this;
|
|
|
|
}
|
|
|
|
|
|
|
|
void SoapySDRInput::init()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
bool SoapySDRInput::start()
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
void SoapySDRInput::stop()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray SoapySDRInput::serialize() const
|
|
|
|
{
|
|
|
|
SimpleSerializer s(1);
|
|
|
|
return s.final();
|
|
|
|
}
|
|
|
|
|
2018-10-29 13:27:58 -04:00
|
|
|
bool SoapySDRInput::deserialize(const QByteArray& data __attribute__((unused)))
|
2018-10-29 11:39:25 -04:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
const QString& SoapySDRInput::getDeviceDescription() const
|
|
|
|
{
|
|
|
|
return m_deviceDescription;
|
|
|
|
}
|
|
|
|
|
|
|
|
int SoapySDRInput::getSampleRate() const
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
quint64 SoapySDRInput::getCenterFrequency() const
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2018-10-29 13:27:58 -04:00
|
|
|
void SoapySDRInput::setCenterFrequency(qint64 centerFrequency __attribute__((unused)))
|
2018-10-29 11:39:25 -04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2018-10-29 13:27:58 -04:00
|
|
|
bool SoapySDRInput::handleMessage(const Message& message __attribute__((unused)))
|
2018-10-29 11:39:25 -04:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|