diff --git a/plugins/samplemimo/limesdrmimo/limesdrmimo.cpp b/plugins/samplemimo/limesdrmimo/limesdrmimo.cpp index 98d68e7fe..0d7abb475 100644 --- a/plugins/samplemimo/limesdrmimo/limesdrmimo.cpp +++ b/plugins/samplemimo/limesdrmimo/limesdrmimo.cpp @@ -20,6 +20,13 @@ #include #include +#include "SWGDeviceSettings.h" +#include "SWGLimeSdrMIMOSettings.h" +#include "SWGDeviceState.h" +#include "SWGDeviceReport.h" +#include "SWGDeviceActions.h" +#include "SWGLimeSdrMIMOReport.h" + #include "device/deviceapi.h" #include "dsp/dspcommands.h" #include "dsp/dspengine.h" @@ -1712,13 +1719,159 @@ void LimeSDRMIMO::getTxLPFRange(int& min, int& max, int& step) step = m_deviceParams->m_lpfRangeTx.step; } +int LimeSDRMIMO::webapiSettingsGet( + SWGSDRangel::SWGDeviceSettings& response, + QString& errorMessage) +{ + (void) errorMessage; + response.setLimeSdrMimoSettings(new SWGSDRangel::SWGLimeSdrMIMOSettings()); + response.getLimeSdrMimoSettings()->init(); + webapiFormatDeviceSettings(response, m_settings); + return 200; +} + +int LimeSDRMIMO::webapiSettingsPutPatch( + bool force, + const QStringList& deviceSettingsKeys, + SWGSDRangel::SWGDeviceSettings& response, // query + response + QString& errorMessage) +{ + (void) errorMessage; + LimeSDRMIMOSettings settings = m_settings; + webapiUpdateDeviceSettings(settings, deviceSettingsKeys, response); + + MsgConfigureLimeSDRMIMO *msg = MsgConfigureLimeSDRMIMO::create(settings, force); + m_inputMessageQueue.push(msg); + + if (getMessageQueueToGUI()) // forward to GUI if any + { + MsgConfigureLimeSDRMIMO *msgToGUI = MsgConfigureLimeSDRMIMO::create(settings, force); + getMessageQueueToGUI()->push(msgToGUI); + } + + webapiFormatDeviceSettings(response, settings); + return 200; +} + +int LimeSDRMIMO::webapiReportGet( + SWGSDRangel::SWGDeviceReport& response, + QString& errorMessage) +{ + (void) errorMessage; + response.setLimeSdrMimoReport(new SWGSDRangel::SWGLimeSdrMIMOReport()); + response.getLimeSdrMimoReport()->init(); + webapiFormatDeviceReport(response); + return 200; +} + +int LimeSDRMIMO::webapiRunGet( + int subsystemIndex, + SWGSDRangel::SWGDeviceState& response, + QString& errorMessage) +{ + (void) errorMessage; + m_deviceAPI->getDeviceEngineStateStr(*response.getState()); + return 200; +} + +int LimeSDRMIMO::webapiRun( + bool run, + int subsystemIndex, + SWGSDRangel::SWGDeviceState& response, + QString& errorMessage) +{ + (void) errorMessage; + m_deviceAPI->getDeviceEngineStateStr(*response.getState()); + MsgStartStop *message = MsgStartStop::create(run, subsystemIndex == 0); + m_inputMessageQueue.push(message); + + if (getMessageQueueToGUI()) // forward to GUI if any + { + MsgStartStop *msgToGUI = MsgStartStop::create(run, subsystemIndex == 0); + getMessageQueueToGUI()->push(msgToGUI); + } + + return 200; +} + void LimeSDRMIMO::webapiFormatDeviceSettings( SWGSDRangel::SWGDeviceSettings& response, const LimeSDRMIMOSettings& settings) { - // TODO - (void) response; - (void) settings; + // Common + response.getLimeSdrMimoSettings()->setDevSampleRate(settings.m_devSampleRate); + response.getLimeSdrMimoSettings()->setExtClock(settings.m_extClock ? 1 : 0); + response.getLimeSdrMimoSettings()->setExtClockFreq(settings.m_extClockFreq); + + if (response.getLimeSdrMimoSettings()->getFileRecordName()) { + *response.getLimeSdrMimoSettings()->getFileRecordName() = settings.m_fileRecordName; + } else { + response.getLimeSdrMimoSettings()->setFileRecordName(new QString(settings.m_fileRecordName)); + } + + response.getLimeSdrMimoSettings()->setGpioDir(settings.m_gpioDir); + response.getLimeSdrMimoSettings()->setGpioPins(settings.m_gpioPins); + response.getLimeSdrMimoSettings()->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0); + + if (response.getLimeSdrMimoSettings()->getReverseApiAddress()) { + *response.getLimeSdrMimoSettings()->getReverseApiAddress() = settings.m_reverseAPIAddress; + } else { + response.getLimeSdrMimoSettings()->setReverseApiAddress(new QString(settings.m_reverseAPIAddress)); + } + + response.getLimeSdrMimoSettings()->setReverseApiPort(settings.m_reverseAPIPort); + response.getLimeSdrMimoSettings()->setReverseApiDeviceIndex(settings.m_reverseAPIDeviceIndex); + + // Rx + response.getLimeSdrMimoSettings()->setRxCenterFrequency(settings.m_rxCenterFrequency); + response.getLimeSdrMimoSettings()->setDcBlock(settings.m_dcBlock ? 1 : 0); + response.getLimeSdrMimoSettings()->setIqCorrection(settings.m_iqCorrection ? 1 : 0); + response.getLimeSdrMimoSettings()->setLog2HardDecim(settings.m_log2HardDecim); + response.getLimeSdrMimoSettings()->setLog2SoftDecim(settings.m_log2SoftDecim); + response.getLimeSdrMimoSettings()->setNcoEnableRx(settings.m_ncoEnableRx ? 1 : 0); + response.getLimeSdrMimoSettings()->setNcoFrequencyRx(settings.m_ncoFrequencyRx); + response.getLimeSdrMimoSettings()->setRxTransverterDeltaFrequency(settings.m_rxTransverterDeltaFrequency); + response.getLimeSdrMimoSettings()->setRxTransverterMode(settings.m_rxTransverterMode ? 1 : 0); + // Rx0 + response.getLimeSdrMimoSettings()->setAntennaPathRx0((int) settings.m_antennaPathRx0); + response.getLimeSdrMimoSettings()->setGainRx0(settings.m_gainRx0); + response.getLimeSdrMimoSettings()->setGainModeRx0((int) settings.m_gainModeRx0); + response.getLimeSdrMimoSettings()->setLnaGainRx0(settings.m_lnaGainRx0); + response.getLimeSdrMimoSettings()->setTiaGainRx0(settings.m_tiaGainRx0); + response.getLimeSdrMimoSettings()->setPgaGainRx0(settings.m_pgaGainRx0); + response.getLimeSdrMimoSettings()->setLpfBwRx0(settings.m_lpfBWRx0); + response.getLimeSdrMimoSettings()->setLpfFirEnableRx0(settings.m_lpfFIREnableRx0 ? 1 : 0); + response.getLimeSdrMimoSettings()->setLpfFirbwRx0(settings.m_lpfFIRBWRx0); + // Rx1 + response.getLimeSdrMimoSettings()->setAntennaPathRx1((int) settings.m_antennaPathRx1); + response.getLimeSdrMimoSettings()->setGainRx1(settings.m_gainRx1); + response.getLimeSdrMimoSettings()->setGainModeRx1((int) settings.m_gainModeRx1); + response.getLimeSdrMimoSettings()->setLnaGainRx1(settings.m_lnaGainRx1); + response.getLimeSdrMimoSettings()->setTiaGainRx1(settings.m_tiaGainRx1); + response.getLimeSdrMimoSettings()->setPgaGainRx1(settings.m_pgaGainRx1); + response.getLimeSdrMimoSettings()->setLpfBwRx1(settings.m_lpfBWRx1); + response.getLimeSdrMimoSettings()->setLpfFirEnableRx1(settings.m_lpfFIREnableRx1 ? 1 : 0); + response.getLimeSdrMimoSettings()->setLpfFirbwRx1(settings.m_lpfFIRBWRx1); + // Tx + response.getLimeSdrMimoSettings()->setTxCenterFrequency(settings.m_txCenterFrequency); + response.getLimeSdrMimoSettings()->setLog2HardInterp(settings.m_log2HardInterp); + response.getLimeSdrMimoSettings()->setLog2SoftInterp(settings.m_log2SoftInterp); + response.getLimeSdrMimoSettings()->setNcoEnableTx(settings.m_ncoEnableTx ? 1 : 0); + response.getLimeSdrMimoSettings()->setNcoFrequencyTx(settings.m_ncoFrequencyTx); + response.getLimeSdrMimoSettings()->setTxTransverterDeltaFrequency(settings.m_txTransverterDeltaFrequency); + response.getLimeSdrMimoSettings()->setTxTransverterMode(settings.m_txTransverterMode ? 1 : 0); + // Tx0 + response.getLimeSdrMimoSettings()->setAntennaPathTx0((int) settings.m_antennaPathTx0); + response.getLimeSdrMimoSettings()->setGainTx0(settings.m_gainTx0); + response.getLimeSdrMimoSettings()->setLpfBwTx0(settings.m_lpfBWTx0); + response.getLimeSdrMimoSettings()->setLpfFirEnableTx0(settings.m_lpfFIREnableTx0 ? 1 : 0); + response.getLimeSdrMimoSettings()->setLpfFirbwTx0(settings.m_lpfFIRBWTx0); + // Tx1 + response.getLimeSdrMimoSettings()->setAntennaPathTx1((int) settings.m_antennaPathTx1); + response.getLimeSdrMimoSettings()->setGainTx1(settings.m_gainTx1); + response.getLimeSdrMimoSettings()->setLpfBwTx1(settings.m_lpfBWTx1); + response.getLimeSdrMimoSettings()->setLpfFirEnableTx1(settings.m_lpfFIREnableTx1 ? 1 : 0); + response.getLimeSdrMimoSettings()->setLpfFirbwTx1(settings.m_lpfFIRBWTx1); } void LimeSDRMIMO::webapiUpdateDeviceSettings( @@ -1726,8 +1879,480 @@ void LimeSDRMIMO::webapiUpdateDeviceSettings( const QStringList& deviceSettingsKeys, SWGSDRangel::SWGDeviceSettings& response) { - // TODO - (void) settings; - (void) deviceSettingsKeys; - (void) response; + // Common + if (deviceSettingsKeys.contains("devSampleRate")) { + settings.m_devSampleRate = response.getLimeSdrMimoSettings()->getDevSampleRate(); + } + if (deviceSettingsKeys.contains("extClock")) { + settings.m_extClock = response.getLimeSdrMimoSettings()->getExtClock() != 0; + } + if (deviceSettingsKeys.contains("extClockFreq")) { + settings.m_extClockFreq = response.getLimeSdrMimoSettings()->getExtClockFreq(); + } + if (deviceSettingsKeys.contains("fileRecordName")) { + settings.m_fileRecordName = *response.getLimeSdrMimoSettings()->getFileRecordName(); + } + if (deviceSettingsKeys.contains("gpioDir")) { + settings.m_gpioDir = response.getLimeSdrMimoSettings()->getGpioDir() & 0xFF; + } + if (deviceSettingsKeys.contains("gpioPins")) { + settings.m_gpioPins = response.getLimeSdrMimoSettings()->getGpioPins() & 0xFF; + } + if (deviceSettingsKeys.contains("useReverseAPI")) { + settings.m_useReverseAPI = response.getLimeSdrMimoSettings()->getUseReverseApi() != 0; + } + if (deviceSettingsKeys.contains("reverseAPIAddress")) { + settings.m_reverseAPIAddress = *response.getLimeSdrMimoSettings()->getReverseApiAddress(); + } + if (deviceSettingsKeys.contains("reverseAPIPort")) { + settings.m_reverseAPIPort = response.getLimeSdrMimoSettings()->getReverseApiPort(); + } + if (deviceSettingsKeys.contains("reverseAPIDeviceIndex")) { + settings.m_reverseAPIDeviceIndex = response.getLimeSdrMimoSettings()->getReverseApiDeviceIndex(); + } + + // Rx + if (deviceSettingsKeys.contains("rxCenterFrequency")) { + settings.m_rxCenterFrequency = response.getLimeSdrMimoSettings()->getRxCenterFrequency(); + } + if (deviceSettingsKeys.contains("dcBlock")) { + settings.m_dcBlock = response.getLimeSdrMimoSettings()->getDcBlock() != 0; + } + if (deviceSettingsKeys.contains("iqCorrection")) { + settings.m_iqCorrection = response.getLimeSdrMimoSettings()->getIqCorrection() != 0; + } + if (deviceSettingsKeys.contains("log2HardDecim")) { + settings.m_log2HardDecim = response.getLimeSdrMimoSettings()->getLog2HardDecim(); + } + if (deviceSettingsKeys.contains("log2SoftDecim")) { + settings.m_log2SoftDecim = response.getLimeSdrMimoSettings()->getLog2SoftDecim(); + } + if (deviceSettingsKeys.contains("ncoEnableRx")) { + settings.m_ncoEnableRx = response.getLimeSdrMimoSettings()->getNcoEnableRx() != 0; + } + if (deviceSettingsKeys.contains("ncoFrequencyRx")) { + settings.m_ncoFrequencyRx = response.getLimeSdrMimoSettings()->getNcoFrequencyRx(); + } + if (deviceSettingsKeys.contains("rxTransverterDeltaFrequency")) { + settings.m_rxTransverterDeltaFrequency = response.getLimeSdrMimoSettings()->getRxTransverterDeltaFrequency(); + } + if (deviceSettingsKeys.contains("rxTransverterMode")) { + settings.m_rxTransverterMode = response.getLimeSdrMimoSettings()->getRxTransverterMode() != 0; + } + + // Rx0 + if (deviceSettingsKeys.contains("antennaPathRx0")) { + settings.m_antennaPathRx0 = (LimeSDRMIMOSettings::PathRxRFE) response.getLimeSdrMimoSettings()->getAntennaPathRx0(); + } + if (deviceSettingsKeys.contains("gainModeRx0")) { + settings.m_gainModeRx0 = (LimeSDRMIMOSettings::RxGainMode) response.getLimeSdrMimoSettings()->getGainModeRx0(); + } + if (deviceSettingsKeys.contains("gainRx0")) { + settings.m_gainRx0 = response.getLimeSdrMimoSettings()->getGainRx0(); + } + if (deviceSettingsKeys.contains("lnaGainRx0")) { + settings.m_lnaGainRx0 = response.getLimeSdrMimoSettings()->getLnaGainRx0(); + } + if (deviceSettingsKeys.contains("tiaGainRx0")) { + settings.m_tiaGainRx0 = response.getLimeSdrMimoSettings()->getTiaGainRx0(); + } + if (deviceSettingsKeys.contains("pgaGainRx0")) { + settings.m_pgaGainRx0 = response.getLimeSdrMimoSettings()->getPgaGainRx0(); + } + if (deviceSettingsKeys.contains("lpfBWRx0")) { + settings.m_lpfBWRx0 = response.getLimeSdrMimoSettings()->getLpfBwRx0(); + } + if (deviceSettingsKeys.contains("lpfFIREnableRx0")) { + settings.m_lpfFIREnableRx0 = response.getLimeSdrMimoSettings()->getLpfFirEnableRx0() != 0; + } + if (deviceSettingsKeys.contains("lpfFIRBWRx0")) { + settings.m_lpfFIRBWRx0 = response.getLimeSdrMimoSettings()->getLpfFirbwRx0(); + } + + // Rx1 + if (deviceSettingsKeys.contains("antennaPathRx1")) { + settings.m_antennaPathRx1 = (LimeSDRMIMOSettings::PathRxRFE) response.getLimeSdrMimoSettings()->getAntennaPathRx1(); + } + if (deviceSettingsKeys.contains("gainModeRx1")) { + settings.m_gainModeRx1 = (LimeSDRMIMOSettings::RxGainMode) response.getLimeSdrMimoSettings()->getGainModeRx1(); + } + if (deviceSettingsKeys.contains("gainRx1")) { + settings.m_gainRx1 = response.getLimeSdrMimoSettings()->getGainRx1(); + } + if (deviceSettingsKeys.contains("lnaGainRx1")) { + settings.m_lnaGainRx1 = response.getLimeSdrMimoSettings()->getLnaGainRx1(); + } + if (deviceSettingsKeys.contains("tiaGainRx1")) { + settings.m_tiaGainRx1 = response.getLimeSdrMimoSettings()->getTiaGainRx1(); + } + if (deviceSettingsKeys.contains("pgaGainRx1")) { + settings.m_pgaGainRx1 = response.getLimeSdrMimoSettings()->getPgaGainRx1(); + } + if (deviceSettingsKeys.contains("lpfBWRx1")) { + settings.m_lpfBWRx1 = response.getLimeSdrMimoSettings()->getLpfBwRx1(); + } + if (deviceSettingsKeys.contains("lpfFIREnableRx1")) { + settings.m_lpfFIREnableRx1 = response.getLimeSdrMimoSettings()->getLpfFirEnableRx1() != 0; + } + if (deviceSettingsKeys.contains("lpfFIRBWRx1")) { + settings.m_lpfFIRBWRx1 = response.getLimeSdrMimoSettings()->getLpfFirbwRx1(); + } + + // Tx + if (deviceSettingsKeys.contains("txCenterFrequency")) { + settings.m_txCenterFrequency = response.getLimeSdrMimoSettings()->getTxCenterFrequency(); + } + if (deviceSettingsKeys.contains("log2HardInterp")) { + settings.m_log2HardInterp = response.getLimeSdrMimoSettings()->getLog2HardInterp(); + } + if (deviceSettingsKeys.contains("log2SoftInterp")) { + settings.m_log2SoftInterp = response.getLimeSdrMimoSettings()->getLog2SoftInterp(); + } + if (deviceSettingsKeys.contains("ncoEnableTx")) { + settings.m_ncoEnableTx = response.getLimeSdrMimoSettings()->getNcoEnableTx() != 0; + } + if (deviceSettingsKeys.contains("ncoFrequencyTx")) { + settings.m_ncoFrequencyTx = response.getLimeSdrMimoSettings()->getNcoFrequencyTx(); + } + if (deviceSettingsKeys.contains("txTransverterDeltaFrequency")) { + settings.m_txTransverterDeltaFrequency = response.getLimeSdrMimoSettings()->getTxTransverterDeltaFrequency(); + } + if (deviceSettingsKeys.contains("txTransverterMode")) { + settings.m_txTransverterMode = response.getLimeSdrMimoSettings()->getTxTransverterMode() != 0; + } + + // Tx0 + if (deviceSettingsKeys.contains("antennaPathTx0")) { + settings.m_antennaPathTx0 = (LimeSDRMIMOSettings::PathTxRFE) response.getLimeSdrMimoSettings()->getAntennaPathTx0(); + } + if (deviceSettingsKeys.contains("gainTx0")) { + settings.m_gainTx0 = response.getLimeSdrMimoSettings()->getGainTx0(); + } + if (deviceSettingsKeys.contains("lpfBWTx0")) { + settings.m_lpfBWTx0 = response.getLimeSdrMimoSettings()->getLpfBwTx0(); + } + if (deviceSettingsKeys.contains("lpfFIREnableTx0")) { + settings.m_lpfFIREnableTx0 = response.getLimeSdrMimoSettings()->getLpfFirEnableTx0() != 0; + } + if (deviceSettingsKeys.contains("lpfFIRBWTx0")) { + settings.m_lpfFIRBWTx0 = response.getLimeSdrMimoSettings()->getLpfFirbwTx0(); + } + + // Tx1 + if (deviceSettingsKeys.contains("antennaPathTx1")) { + settings.m_antennaPathTx1 = (LimeSDRMIMOSettings::PathTxRFE) response.getLimeSdrMimoSettings()->getAntennaPathTx0(); + } + if (deviceSettingsKeys.contains("gainTx1")) { + settings.m_gainTx1 = response.getLimeSdrMimoSettings()->getGainTx1(); + } + if (deviceSettingsKeys.contains("lpfBWTx1")) { + settings.m_lpfBWTx1 = response.getLimeSdrMimoSettings()->getLpfBwTx1(); + } + if (deviceSettingsKeys.contains("lpfFIREnableTx1")) { + settings.m_lpfFIREnableTx1 = response.getLimeSdrMimoSettings()->getLpfFirEnableTx1() != 0; + } + if (deviceSettingsKeys.contains("lpfFIRBWTx1")) { + settings.m_lpfFIRBWTx1 = response.getLimeSdrMimoSettings()->getLpfFirbwTx1(); + } } + +void LimeSDRMIMO::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& response) +{ + bool success = false; + double temp = 0.0; + uint8_t gpioDir = 0; + uint8_t gpioPins = 0; + lms_stream_status_t status; + status.active = false; + status.fifoFilledCount = 0; + status.fifoSize = 1; + status.underrun = 0; + status.overrun = 0; + status.droppedPackets = 0; + status.linkRate = 0.0; + status.timestamp = 0; + + if (m_rxStreams[0].handle) { + success = (m_rxStreams[0].handle && (LMS_GetStreamStatus(&m_rxStreams[0], &status) == 0)); + } + + response.getLimeSdrMimoReport()->setSuccessRx(success ? 1 : 0); + response.getLimeSdrMimoReport()->setStreamActiveRx(status.active ? 1 : 0); + response.getLimeSdrMimoReport()->setFifoSizeRx(status.fifoSize); + response.getLimeSdrMimoReport()->setFifoFillRx(status.fifoFilledCount); + response.getLimeSdrMimoReport()->setUnderrunCountRx(status.underrun); + response.getLimeSdrMimoReport()->setOverrunCountRx(status.overrun); + response.getLimeSdrMimoReport()->setDroppedPacketsCountRx(status.droppedPackets); + response.getLimeSdrMimoReport()->setLinkRateRx(status.linkRate); + response.getLimeSdrMimoReport()->setHwTimestamp(status.timestamp); + + if (m_deviceParams->getDevice()) + { + LMS_GetChipTemperature(m_deviceParams->getDevice(), 0, &temp); + LMS_GPIODirRead(m_deviceParams->getDevice(), &gpioDir, 1); + LMS_GPIORead(m_deviceParams->getDevice(), &gpioPins, 1); + } + + response.getLimeSdrMimoReport()->setTemperature(temp); + response.getLimeSdrMimoReport()->setGpioDir(gpioDir); + response.getLimeSdrMimoReport()->setGpioPins(gpioPins); + + success = false; + status.active = false; + status.fifoFilledCount = 0; + status.fifoSize = 1; + status.underrun = 0; + status.overrun = 0; + status.droppedPackets = 0; + status.linkRate = 0.0; + + if (m_txStreams[0].handle) { + success = (m_txStreams[0].handle && (LMS_GetStreamStatus(&m_txStreams[0], &status) == 0)); + } + + response.getLimeSdrMimoReport()->setSuccessTx(success ? 1 : 0); + response.getLimeSdrMimoReport()->setStreamActiveTx(status.active ? 1 : 0); + response.getLimeSdrMimoReport()->setFifoSizeTx(status.fifoSize); + response.getLimeSdrMimoReport()->setFifoFillTx(status.fifoFilledCount); + response.getLimeSdrMimoReport()->setUnderrunCountTx(status.underrun); + response.getLimeSdrMimoReport()->setOverrunCountTx(status.overrun); + response.getLimeSdrMimoReport()->setDroppedPacketsCountTx(status.droppedPackets); + response.getLimeSdrMimoReport()->setLinkRateTx(status.linkRate); +} + +void LimeSDRMIMO::webapiReverseSendSettings(QList& deviceSettingsKeys, const LimeSDRMIMOSettings& settings, bool force) +{ + SWGSDRangel::SWGDeviceSettings *swgDeviceSettings = new SWGSDRangel::SWGDeviceSettings(); + swgDeviceSettings->setDirection(2); // MIMO + swgDeviceSettings->setOriginatorIndex(m_deviceAPI->getDeviceSetIndex()); + swgDeviceSettings->setDeviceHwType(new QString("LimeSDR")); + swgDeviceSettings->setLimeSdrMimoSettings(new SWGSDRangel::SWGLimeSdrMIMOSettings()); + SWGSDRangel::SWGLimeSdrMIMOSettings *swgLimeSdrMIMOSettings = swgDeviceSettings->getLimeSdrMimoSettings(); + + // Common + if (deviceSettingsKeys.contains("devSampleRate") || force) { + swgLimeSdrMIMOSettings->setDevSampleRate(settings.m_devSampleRate); + } + if (deviceSettingsKeys.contains("extClock") || force) { + swgLimeSdrMIMOSettings->setExtClock(settings.m_extClock ? 1 : 0); + } + if (deviceSettingsKeys.contains("extClockFreq") || force) { + swgLimeSdrMIMOSettings->setExtClockFreq(settings.m_extClockFreq); + } + if (deviceSettingsKeys.contains("fileRecordName") || force) { + swgLimeSdrMIMOSettings->setFileRecordName(new QString(settings.m_fileRecordName)); + } + if (deviceSettingsKeys.contains("gpioDir") || force) { + swgLimeSdrMIMOSettings->setGpioDir(settings.m_gpioDir & 0xFF); + } + if (deviceSettingsKeys.contains("gpioPins") || force) { + swgLimeSdrMIMOSettings->setGpioPins(settings.m_gpioPins & 0xFF); + } + if (deviceSettingsKeys.contains("useReverseAPI") || force) { + swgLimeSdrMIMOSettings->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0); + } + if (deviceSettingsKeys.contains("reverseAPIAddress") || force) { + swgLimeSdrMIMOSettings->setReverseApiAddress(new QString(settings.m_reverseAPIAddress)); + } + if (deviceSettingsKeys.contains("reverseAPIPort") || force) { + swgLimeSdrMIMOSettings->setReverseApiPort(settings.m_reverseAPIPort); + } + if (deviceSettingsKeys.contains("reverseAPIDeviceIndex") || force) { + swgLimeSdrMIMOSettings->setReverseApiDeviceIndex(settings.m_reverseAPIDeviceIndex); + } + + // Rx + if (deviceSettingsKeys.contains("rxCenterFrequency") || force) { + swgLimeSdrMIMOSettings->setRxCenterFrequency(settings.m_rxCenterFrequency); + } + if (deviceSettingsKeys.contains("dcBlock") || force) { + swgLimeSdrMIMOSettings->setDcBlock(settings.m_dcBlock ? 1 : 0); + } + if (deviceSettingsKeys.contains("iqCorrection") || force) { + swgLimeSdrMIMOSettings->setIqCorrection(settings.m_iqCorrection ? 1 : 0); + } + if (deviceSettingsKeys.contains("log2HardDecim") || force) { + swgLimeSdrMIMOSettings->setLog2HardDecim(settings.m_log2HardDecim); + } + if (deviceSettingsKeys.contains("log2SoftDecim") || force) { + swgLimeSdrMIMOSettings->setLog2SoftDecim(settings.m_log2SoftDecim); + } + if (deviceSettingsKeys.contains("ncoEnableRx") || force) { + swgLimeSdrMIMOSettings->setNcoEnableRx(settings.m_ncoEnableRx ? 1 : 0); + } + if (deviceSettingsKeys.contains("ncoFrequencyRx") || force) { + swgLimeSdrMIMOSettings->setNcoFrequencyRx(settings.m_ncoFrequencyRx); + } + if (deviceSettingsKeys.contains("rxTransverterDeltaFrequency") || force) { + swgLimeSdrMIMOSettings->setRxTransverterDeltaFrequency(settings.m_rxTransverterDeltaFrequency); + } + if (deviceSettingsKeys.contains("rxTransverterMode") || force) { + swgLimeSdrMIMOSettings->setRxTransverterMode(settings.m_rxTransverterMode ? 1 : 0); + } + + // Rx0 + if (deviceSettingsKeys.contains("antennaPathRx0") || force) { + swgLimeSdrMIMOSettings->setAntennaPathRx0((int) settings.m_antennaPathRx0); + } + if (deviceSettingsKeys.contains("gainModeRx0") || force) { + swgLimeSdrMIMOSettings->setGainModeRx0((int) settings.m_gainModeRx0); + } + if (deviceSettingsKeys.contains("gainRx0") || force) { + swgLimeSdrMIMOSettings->setGainRx0(settings.m_gainRx0); + } + if (deviceSettingsKeys.contains("lnaGainRx0") || force) { + swgLimeSdrMIMOSettings->setLnaGainRx0(settings.m_lnaGainRx0); + } + if (deviceSettingsKeys.contains("tiaGainRx0") || force) { + swgLimeSdrMIMOSettings->setTiaGainRx0(settings.m_tiaGainRx0); + } + if (deviceSettingsKeys.contains("pgaGainRx0") || force) { + swgLimeSdrMIMOSettings->setPgaGainRx0(settings.m_pgaGainRx0); + } + if (deviceSettingsKeys.contains("lpfBWRx0") || force) { + swgLimeSdrMIMOSettings->setLpfBwRx0(settings.m_lpfBWRx0); + } + if (deviceSettingsKeys.contains("lpfFIREnableRx0") || force) { + swgLimeSdrMIMOSettings->setLpfFirEnableRx0(settings.m_lpfFIREnableRx0 ? 1 : 0); + } + if (deviceSettingsKeys.contains("lpfFIRBWRx0") || force) { + swgLimeSdrMIMOSettings->setLpfFirbwRx0(settings.m_lpfFIRBWRx0); + } + + // Rx1 + if (deviceSettingsKeys.contains("antennaPathRx1") || force) { + swgLimeSdrMIMOSettings->setAntennaPathRx1((int) settings.m_antennaPathRx1); + } + if (deviceSettingsKeys.contains("gainModeRx1") || force) { + swgLimeSdrMIMOSettings->setGainModeRx1((int) settings.m_gainModeRx1); + } + if (deviceSettingsKeys.contains("gainRx1") || force) { + swgLimeSdrMIMOSettings->setGainRx1(settings.m_gainRx1); + } + if (deviceSettingsKeys.contains("lnaGainRx1") || force) { + swgLimeSdrMIMOSettings->setLnaGainRx1(settings.m_lnaGainRx1); + } + if (deviceSettingsKeys.contains("tiaGainRx1") || force) { + swgLimeSdrMIMOSettings->setTiaGainRx1(settings.m_tiaGainRx1); + } + if (deviceSettingsKeys.contains("pgaGainRx1") || force) { + swgLimeSdrMIMOSettings->setPgaGainRx1(settings.m_pgaGainRx1); + } + if (deviceSettingsKeys.contains("lpfBWRx1") || force) { + swgLimeSdrMIMOSettings->setLpfBwRx1(settings.m_lpfBWRx1); + } + if (deviceSettingsKeys.contains("lpfFIREnableRx1") || force) { + swgLimeSdrMIMOSettings->setLpfFirEnableRx1(settings.m_lpfFIREnableRx1 ? 1 : 0); + } + if (deviceSettingsKeys.contains("lpfFIRBWRx1") || force) { + swgLimeSdrMIMOSettings->setLpfFirbwRx1(settings.m_lpfFIRBWRx1); + } + + // Tx + if (deviceSettingsKeys.contains("txCenterFrequency") || force) { + swgLimeSdrMIMOSettings->setTxCenterFrequency(settings.m_txCenterFrequency); + } + if (deviceSettingsKeys.contains("log2HardInterp") || force) { + swgLimeSdrMIMOSettings->setLog2HardInterp(settings.m_log2HardInterp); + } + if (deviceSettingsKeys.contains("log2SoftInterp") || force) { + swgLimeSdrMIMOSettings->setLog2SoftInterp(settings.m_log2SoftInterp); + } + if (deviceSettingsKeys.contains("ncoEnableTx") || force) { + swgLimeSdrMIMOSettings->setNcoEnableTx(settings.m_ncoEnableTx ? 1 : 0); + } + if (deviceSettingsKeys.contains("ncoFrequencyTx") || force) { + swgLimeSdrMIMOSettings->setNcoFrequencyTx(settings.m_ncoFrequencyTx); + } + if (deviceSettingsKeys.contains("txTransverterDeltaFrequency") || force) { + swgLimeSdrMIMOSettings->setTxTransverterDeltaFrequency(settings.m_txTransverterDeltaFrequency); + } + if (deviceSettingsKeys.contains("txTransverterMode") || force) { + swgLimeSdrMIMOSettings->setTxTransverterMode(settings.m_txTransverterMode ? 1 : 0); + } + + // Tx0 + if (deviceSettingsKeys.contains("antennaPathTx0") || force) { + swgLimeSdrMIMOSettings->setAntennaPathTx0((int) settings.m_antennaPathTx0); + } + if (deviceSettingsKeys.contains("gainTx0") || force) { + swgLimeSdrMIMOSettings->setGainTx0(settings.m_gainTx0); + } + if (deviceSettingsKeys.contains("lpfBWTx0") || force) { + swgLimeSdrMIMOSettings->setLpfBwTx0(settings.m_lpfBWTx0); + } + if (deviceSettingsKeys.contains("lpfFIREnableTx0") || force) { + swgLimeSdrMIMOSettings->setLpfFirEnableTx0(settings.m_lpfFIREnableTx0 ? 1 : 0); + } + if (deviceSettingsKeys.contains("lpfFIRBWTx0") || force) { + swgLimeSdrMIMOSettings->setLpfFirbwTx0(settings.m_lpfFIRBWTx0); + } + + // Tx1 + if (deviceSettingsKeys.contains("antennaPathTx1") || force) { + swgLimeSdrMIMOSettings->setAntennaPathTx1((int) settings.m_antennaPathTx1); + } + if (deviceSettingsKeys.contains("gainTx1") || force) { + swgLimeSdrMIMOSettings->setGainTx1(settings.m_gainTx1); + } + if (deviceSettingsKeys.contains("lpfBWTx1") || force) { + swgLimeSdrMIMOSettings->setLpfBwTx1(settings.m_lpfBWTx1); + } + if (deviceSettingsKeys.contains("lpfFIREnableTx1") || force) { + swgLimeSdrMIMOSettings->setLpfFirEnableTx1(settings.m_lpfFIREnableTx1 ? 1 : 0); + } + if (deviceSettingsKeys.contains("lpfFIRBWTx1") || force) { + swgLimeSdrMIMOSettings->setLpfFirbwTx1(settings.m_lpfFIRBWTx1); + } +} + +void LimeSDRMIMO::webapiReverseSendStartStop(bool start) +{ + SWGSDRangel::SWGDeviceSettings *swgDeviceSettings = new SWGSDRangel::SWGDeviceSettings(); + swgDeviceSettings->setDirection(2); // MIMO + swgDeviceSettings->setOriginatorIndex(m_deviceAPI->getDeviceSetIndex()); + swgDeviceSettings->setDeviceHwType(new QString("LimeSDR")); + + QString deviceSettingsURL = QString("http://%1:%2/sdrangel/deviceset/%3/device/run") + .arg(m_settings.m_reverseAPIAddress) + .arg(m_settings.m_reverseAPIPort) + .arg(m_settings.m_reverseAPIDeviceIndex); + m_networkRequest.setUrl(QUrl(deviceSettingsURL)); + m_networkRequest.setHeader(QNetworkRequest::ContentTypeHeader, "application/json"); + + QBuffer *buffer = new QBuffer(); + buffer->open((QBuffer::ReadWrite)); + buffer->write(swgDeviceSettings->asJson().toUtf8()); + buffer->seek(0); + QNetworkReply *reply; + + if (start) { + reply = m_networkManager->sendCustomRequest(m_networkRequest, "POST", buffer); + } else { + reply = m_networkManager->sendCustomRequest(m_networkRequest, "DELETE", buffer); + } + + buffer->setParent(reply); + delete swgDeviceSettings; +} + +void LimeSDRMIMO::networkManagerFinished(QNetworkReply *reply) +{ + QNetworkReply::NetworkError replyError = reply->error(); + + if (replyError) + { + qWarning() << "LimeSDRMIMO::networkManagerFinished:" + << " error(" << (int) replyError + << "): " << replyError + << ": " << reply->errorString(); + } + else + { + QString answer = reply->readAll(); + answer.chop(1); // remove last \n + qDebug("LimeSDRMIMO::networkManagerFinished: reply:\n%s", answer.toStdString().c_str()); + } + + reply->deleteLater(); +} \ No newline at end of file diff --git a/plugins/samplemimo/limesdrmimo/limesdrmimo.h b/plugins/samplemimo/limesdrmimo/limesdrmimo.h index da834e5e7..23832012b 100644 --- a/plugins/samplemimo/limesdrmimo/limesdrmimo.h +++ b/plugins/samplemimo/limesdrmimo/limesdrmimo.h @@ -251,27 +251,30 @@ public: virtual bool handleMessage(const Message& message); - // TODO - // virtual int webapiSettingsGet( - // SWGSDRangel::SWGDeviceSettings& response, - // QString& errorMessage); + virtual int webapiSettingsGet( + SWGSDRangel::SWGDeviceSettings& response, + QString& errorMessage); - // virtual int webapiSettingsPutPatch( - // bool force, - // const QStringList& deviceSettingsKeys, - // SWGSDRangel::SWGDeviceSettings& response, // query + response - // QString& errorMessage); + virtual int webapiSettingsPutPatch( + bool force, + const QStringList& deviceSettingsKeys, + SWGSDRangel::SWGDeviceSettings& response, // query + response + QString& errorMessage); - // virtual int webapiRunGet( - // int subsystemIndex, - // SWGSDRangel::SWGDeviceState& response, - // QString& errorMessage); + virtual int webapiReportGet( + SWGSDRangel::SWGDeviceReport& response, + QString& errorMessage); - // virtual int webapiRun( - // bool run, - // int subsystemIndex, - // SWGSDRangel::SWGDeviceState& response, - // QString& errorMessage); + virtual int webapiRunGet( + int subsystemIndex, + SWGSDRangel::SWGDeviceState& response, + QString& errorMessage); + + virtual int webapiRun( + bool run, + int subsystemIndex, + SWGSDRangel::SWGDeviceState& response, + QString& errorMessage); static void webapiFormatDeviceSettings( SWGSDRangel::SWGDeviceSettings& response, @@ -350,6 +353,7 @@ private: bool setTxDeviceCenterFrequency(struct bladerf *dev, quint64 freq_hz, int loPpmTenths); void applyTxCalibration(unsigned int channel, qint32 devSampleRate); void applyTxLPCalibration(unsigned int channel, float lpfBW); + void webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& response); void webapiReverseSendSettings(QList& deviceSettingsKeys, const LimeSDRMIMOSettings& settings, bool force); void webapiReverseSendStartStop(bool start); diff --git a/sdrbase/resources/webapi/doc/html2/index.html b/sdrbase/resources/webapi/doc/html2/index.html index 71f8393e2..eac3bc360 100644 --- a/sdrbase/resources/webapi/doc/html2/index.html +++ b/sdrbase/resources/webapi/doc/html2/index.html @@ -3244,6 +3244,9 @@ margin-bottom: 20px; "limeSdrOutputReport" : { "$ref" : "#/definitions/LimeSdrOutputReport" }, + "limeSdrMIMOReport" : { + "$ref" : "#/definitions/LimeSdrMIMOReport" + }, "localInputReport" : { "$ref" : "#/definitions/LocalInputReport" }, @@ -3390,6 +3393,9 @@ margin-bottom: 20px; "limeSdrOutputSettings" : { "$ref" : "#/definitions/LimeSdrOutputSettings" }, + "limeSdrMIMOSettings" : { + "$ref" : "#/definitions/LimeSdrMIMOSettings" + }, "localInputSettings" : { "$ref" : "#/definitions/LocalInputSettings" }, @@ -4822,6 +4828,304 @@ margin-bottom: 20px; } }, "description" : "LimeSDR" +}; + defs.LimeSdrMIMOReport = { + "properties" : { + "hwTimestamp" : { + "type" : "integer", + "format" : "uint64", + "description" : "Hardware timestamp" + }, + "temperature" : { + "type" : "number", + "format" : "float" + }, + "gpioDir" : { + "type" : "integer", + "format" : "int8" + }, + "gpioPins" : { + "type" : "integer", + "format" : "int8" + }, + "successRx" : { + "type" : "integer", + "description" : "1 if Rx info was successfullt retrieved else 0" + }, + "streamActiveRx" : { + "type" : "integer", + "description" : "1 if active else 0" + }, + "fifoSizeRx" : { + "type" : "integer" + }, + "fifoFillRx" : { + "type" : "integer" + }, + "underrunCountRx" : { + "type" : "integer" + }, + "overrunCountRx" : { + "type" : "integer" + }, + "droppedPacketsCountRx" : { + "type" : "integer" + }, + "linkRateRx" : { + "type" : "number", + "format" : "float" + }, + "successTx" : { + "type" : "integer", + "description" : "1 if Tx info was successfullt retrieved else 0" + }, + "streamActiveTx" : { + "type" : "integer", + "description" : "1 if active else 0" + }, + "fifoSizeTx" : { + "type" : "integer" + }, + "fifoFillTx" : { + "type" : "integer" + }, + "underrunCountTx" : { + "type" : "integer" + }, + "overrunCountTx" : { + "type" : "integer" + }, + "droppedPacketsCountTx" : { + "type" : "integer" + }, + "linkRateTx" : { + "type" : "number", + "format" : "float" + } + }, + "description" : "LimeSDR" +}; + defs.LimeSdrMIMOSettings = { + "properties" : { + "devSampleRate" : { + "type" : "integer" + }, + "gpioDir" : { + "type" : "integer", + "format" : "int8", + "description" : "GPIO pin direction LSB first; 0 input, 1 output" + }, + "gpioPins" : { + "type" : "integer", + "format" : "int8", + "description" : "GPIO pins to write; LSB first" + }, + "extClock" : { + "type" : "integer", + "description" : "Boolean 1 if external clock source else 0" + }, + "extClockFreq" : { + "type" : "integer", + "description" : "Frequency (Hz) of external clock source" + }, + "fileRecordName" : { + "type" : "string" + }, + "useReverseAPI" : { + "type" : "integer", + "description" : "Boolean" + }, + "reverseAPIAddress" : { + "type" : "string" + }, + "reverseAPIPort" : { + "type" : "integer" + }, + "reverseAPIDeviceIndex" : { + "type" : "integer" + }, + "rxCenterFrequency" : { + "type" : "integer", + "format" : "int64" + }, + "log2HardDecim" : { + "type" : "integer" + }, + "log2SoftDecim" : { + "type" : "integer" + }, + "dcBlock" : { + "type" : "integer", + "description" : "Boolean" + }, + "iqCorrection" : { + "type" : "integer", + "description" : "Boolean" + }, + "rxTransverterMode" : { + "type" : "integer", + "description" : "Boolean" + }, + "rxTransverterDeltaFrequency" : { + "type" : "integer", + "format" : "int64" + }, + "ncoEnableRx" : { + "type" : "integer", + "description" : "Boolean 1 to enable TSP NCO and mixing else 0" + }, + "ncoFrequencyRx" : { + "type" : "integer", + "description" : "Rx Actual NCO frequency (the resulting frequency with mixing is displayed)" + }, + "lpfBWRx0" : { + "type" : "number", + "format" : "float", + "description" : "Rx[0] LMS analog lowpass filter bandwidth (Hz)" + }, + "lpfFIREnableRx0" : { + "type" : "integer", + "description" : "Boolean 1 to enable Rx[0] LMS digital lowpass FIR filters else 0" + }, + "lpfFIRBWRx0" : { + "type" : "number", + "format" : "float", + "description" : "Rx[0] LMS digital lowpass FIR filters bandwidth (Hz)" + }, + "gainRx0" : { + "type" : "integer", + "description" : "Rx[0] Optimally distributed gain (dB)" + }, + "antennaPathRx0" : { + "type" : "integer", + "description" : "Rx[0] Antenna connection (PathRxRFE):\n * 0 - None\n * 1 - LNA High\n * 2 - LNA low\n * 3 - LNA Wide\n * 4 - LB TX1\n * 5 - LB TX2\n" + }, + "gainModeRx0" : { + "type" : "integer", + "description" : "Rx[0] Gain mode:\n * 0 - auto\n * 1 - manual\n" + }, + "lnaGainRx0" : { + "type" : "integer", + "description" : "Rx[0] Manual LNA gain" + }, + "tiaGainRx0" : { + "type" : "integer", + "description" : "Rx[0] Manual TIA gain" + }, + "pgaGainRx0" : { + "type" : "integer", + "description" : "Rx[0] Manual PGA gain" + }, + "lpfBWRx1" : { + "type" : "number", + "format" : "float", + "description" : "Rx[1] LMS analog lowpass filter bandwidth (Hz)" + }, + "lpfFIREnableRx1" : { + "type" : "integer", + "description" : "Boolean 1 to enable Rx[1] LMS digital lowpass FIR filters else 0" + }, + "lpfFIRBWRx1" : { + "type" : "number", + "format" : "float", + "description" : "Rx[1] LMS digital lowpass FIR filters bandwidth (Hz)" + }, + "gainRx1" : { + "type" : "integer", + "description" : "Rx[1] Optimally distributed gain (dB)" + }, + "antennaPathRx1" : { + "type" : "integer", + "description" : "Rx[1] Antenna connection (PathRxRFE):\n * 0 - None\n * 1 - LNA High\n * 2 - LNA low\n * 3 - LNA Wide\n * 4 - LB TX1\n * 5 - LB TX2\n" + }, + "gainModeRx1" : { + "type" : "integer", + "description" : "Rx[1] Gain mode:\n * 0 - auto\n * 1 - manual\n" + }, + "lnaGainRx1" : { + "type" : "integer", + "description" : "Rx[1] Manual LNA gain" + }, + "tiaGainRx1" : { + "type" : "integer", + "description" : "Rx[1] Manual TIA gain" + }, + "pgaGainRx1" : { + "type" : "integer", + "description" : "Rx[1] Manual PGA gain" + }, + "txCenterFrequency" : { + "type" : "integer", + "format" : "int64" + }, + "log2HardInterp" : { + "type" : "integer" + }, + "log2SoftInterp" : { + "type" : "integer" + }, + "txTransverterMode" : { + "type" : "integer", + "description" : "Boolean" + }, + "txTransverterDeltaFrequency" : { + "type" : "integer", + "format" : "int64" + }, + "ncoEnableTx" : { + "type" : "integer", + "description" : "Boolean 1 to enable TSP NCO and mixing else 0" + }, + "ncoFrequencyTx" : { + "type" : "integer", + "description" : "Tx Actual NCO frequency (the resulting frequency with mixing is displayed)" + }, + "lpfBWTx0" : { + "type" : "number", + "format" : "float", + "description" : "Tx[0] LMS analog lowpass filter bandwidth (Hz)" + }, + "lpfFIREnableTx0" : { + "type" : "integer", + "description" : "Boolean 1 to enable Tx[0] LMS digital lowpass FIR filters else 0" + }, + "lpfFIRBWTx0" : { + "type" : "number", + "format" : "float", + "description" : "Tx[0] LMS digital lowpass FIR filters bandwidth (Hz)" + }, + "gainTx0" : { + "type" : "integer", + "description" : "Tx[0] Optimally distributed gain (dB)" + }, + "antennaPathTx0" : { + "type" : "integer", + "description" : "Tx[0] Antenna connection (PathTxRFE):\n * 0 - None\n * 1 - RF connector 1\n * 2 - RF connector 2\n" + }, + "lpfBWTx1" : { + "type" : "number", + "format" : "float", + "description" : "Tx[1] LMS analog lowpass filter bandwidth (Hz)" + }, + "lpfFIREnableTx1" : { + "type" : "integer", + "description" : "Boolean 1 to enable Tx[1] LMS digital lowpass FIR filters else 0" + }, + "lpfFIRBWTx1" : { + "type" : "number", + "format" : "float", + "description" : "Tx[1] LMS digital lowpass FIR filters bandwidth (Hz)" + }, + "gainTx1" : { + "type" : "integer", + "description" : "Tx[1] Optimally distributed gain (dB)" + }, + "antennaPathTx1" : { + "type" : "integer", + "description" : "Tx[1] Antenna connection (PathTxRFE):\n * 0 - None\n * 1 - RF connector 1\n * 2 - RF connector 2\n" + } + }, + "description" : "LimeSDR" }; defs.LimeSdrOutputReport = { "properties" : { @@ -34181,7 +34485,7 @@ except ApiException as e:
- Generated 2020-04-19T21:52:24.714+02:00 + Generated 2020-04-27T16:54:02.798+02:00
diff --git a/sdrbase/resources/webapi/doc/swagger/include/DeviceSettings.yaml b/sdrbase/resources/webapi/doc/swagger/include/DeviceSettings.yaml index 0cad39193..ba68f4d98 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/DeviceSettings.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/DeviceSettings.yaml @@ -44,6 +44,8 @@ DeviceSettings: $ref: "/doc/swagger/include/LimeSdr.yaml#/LimeSdrInputSettings" limeSdrOutputSettings: $ref: "/doc/swagger/include/LimeSdr.yaml#/LimeSdrOutputSettings" + limeSdrMIMOSettings: + $ref: "/doc/swagger/include/LimeSdr.yaml#/LimeSdrMIMOSettings" localInputSettings: $ref: "/doc/swagger/include/LocalInput.yaml#/LocalInputSettings" localOutputSettings: diff --git a/sdrbase/resources/webapi/doc/swagger/include/LimeSdr.yaml b/sdrbase/resources/webapi/doc/swagger/include/LimeSdr.yaml index 3f7f54b1d..a7f2a7bfb 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/LimeSdr.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/LimeSdr.yaml @@ -114,6 +114,209 @@ LimeSdrOutputSettings: reverseAPIDeviceIndex: type: integer +LimeSdrMIMOSettings: + description: LimeSDR + properties: + # General + devSampleRate: + type: integer + gpioDir: + description: GPIO pin direction LSB first; 0 input, 1 output + type: integer + format: int8 + gpioPins: + description: GPIO pins to write; LSB first + type: integer + format: int8 + extClock: + description: Boolean 1 if external clock source else 0 + type: integer + extClockFreq: + description: Frequency (Hz) of external clock source + type: integer + fileRecordName: + type: string + useReverseAPI: + description: Boolean + type: integer + reverseAPIAddress: + type: string + reverseAPIPort: + type: integer + reverseAPIDeviceIndex: + type: integer + # Rx general + rxCenterFrequency: + type: integer + format: int64 + log2HardDecim: + type: integer + log2SoftDecim: + type: integer + dcBlock: + description: Boolean + type: integer + iqCorrection: + description: Boolean + type: integer + rxTransverterMode: + description: Boolean + type: integer + rxTransverterDeltaFrequency: + type: integer + format: int64 + ncoEnableRx: + description: Boolean 1 to enable TSP NCO and mixing else 0 + type: integer + ncoFrequencyRx: + description: Rx Actual NCO frequency (the resulting frequency with mixing is displayed) + type: integer + # Rx channel 0 + lpfBWRx0: + description: Rx[0] LMS analog lowpass filter bandwidth (Hz) + type: number + format: float + lpfFIREnableRx0: + description: Boolean 1 to enable Rx[0] LMS digital lowpass FIR filters else 0 + type: integer + lpfFIRBWRx0: + description: Rx[0] LMS digital lowpass FIR filters bandwidth (Hz) + type: number + format: float + + gainRx0: + description: Rx[0] Optimally distributed gain (dB) + type: integer + antennaPathRx0: + description: > + Rx[0] Antenna connection (PathRxRFE): + * 0 - None + * 1 - LNA High + * 2 - LNA low + * 3 - LNA Wide + * 4 - LB TX1 + * 5 - LB TX2 + type: integer + gainModeRx0: + description: > + Rx[0] Gain mode: + * 0 - auto + * 1 - manual + type: integer + lnaGainRx0: + description: Rx[0] Manual LNA gain + type: integer + tiaGainRx0: + description: Rx[0] Manual TIA gain + type: integer + pgaGainRx0: + description: Rx[0] Manual PGA gain + type: integer + # Rx channel 1 + lpfBWRx1: + description: Rx[1] LMS analog lowpass filter bandwidth (Hz) + type: number + format: float + lpfFIREnableRx1: + description: Boolean 1 to enable Rx[1] LMS digital lowpass FIR filters else 0 + type: integer + lpfFIRBWRx1: + description: Rx[1] LMS digital lowpass FIR filters bandwidth (Hz) + type: number + format: float + gainRx1: + description: Rx[1] Optimally distributed gain (dB) + type: integer + antennaPathRx1: + description: > + Rx[1] Antenna connection (PathRxRFE): + * 0 - None + * 1 - LNA High + * 2 - LNA low + * 3 - LNA Wide + * 4 - LB TX1 + * 5 - LB TX2 + type: integer + gainModeRx1: + description: > + Rx[1] Gain mode: + * 0 - auto + * 1 - manual + type: integer + lnaGainRx1: + description: Rx[1] Manual LNA gain + type: integer + tiaGainRx1: + description: Rx[1] Manual TIA gain + type: integer + pgaGainRx1: + description: Rx[1] Manual PGA gain + type: integer + # Tx general + txCenterFrequency: + type: integer + format: int64 + log2HardInterp: + type: integer + log2SoftInterp: + type: integer + txTransverterMode: + description: Boolean + type: integer + txTransverterDeltaFrequency: + type: integer + format: int64 + ncoEnableTx: + description: Boolean 1 to enable TSP NCO and mixing else 0 + type: integer + ncoFrequencyTx: + description: Tx Actual NCO frequency (the resulting frequency with mixing is displayed) + type: integer + # Tx channel 0 + lpfBWTx0: + description: Tx[0] LMS analog lowpass filter bandwidth (Hz) + type: number + format: float + lpfFIREnableTx0: + description: Boolean 1 to enable Tx[0] LMS digital lowpass FIR filters else 0 + type: integer + lpfFIRBWTx0: + description: Tx[0] LMS digital lowpass FIR filters bandwidth (Hz) + type: number + format: float + gainTx0: + description: Tx[0] Optimally distributed gain (dB) + type: integer + antennaPathTx0: + description: > + Tx[0] Antenna connection (PathTxRFE): + * 0 - None + * 1 - RF connector 1 + * 2 - RF connector 2 + type: integer + # Tx channel 1 + lpfBWTx1: + description: Tx[1] LMS analog lowpass filter bandwidth (Hz) + type: number + format: float + lpfFIREnableTx1: + description: Boolean 1 to enable Tx[1] LMS digital lowpass FIR filters else 0 + type: integer + lpfFIRBWTx1: + description: Tx[1] LMS digital lowpass FIR filters bandwidth (Hz) + type: number + format: float + gainTx1: + description: Tx[1] Optimally distributed gain (dB) + type: integer + antennaPathTx1: + description: > + Tx[1] Antenna connection (PathTxRFE): + * 0 - None + * 1 - RF connector 1 + * 2 - RF connector 2 + type: integer + LimeSdrInputReport: description: LimeSDR properties: @@ -195,3 +398,58 @@ LimeSdrOutputReport: gpioPins: type: integer format: int8 + +LimeSdrMIMOReport: + description: LimeSDR + properties: + hwTimestamp: + description: Hardware timestamp + type: integer + format: uint64 + temperature: + type: number + format: float + gpioDir: + type: integer + format: int8 + gpioPins: + type: integer + format: int8 + successRx: + description: 1 if Rx info was successfullt retrieved else 0 + type: integer + streamActiveRx: + description: 1 if active else 0 + type: integer + fifoSizeRx: + type: integer + fifoFillRx: + type: integer + underrunCountRx: + type: integer + overrunCountRx: + type: integer + droppedPacketsCountRx: + type: integer + linkRateRx: + type: number + format: float + successTx: + description: 1 if Tx info was successfullt retrieved else 0 + type: integer + streamActiveTx: + description: 1 if active else 0 + type: integer + fifoSizeTx: + type: integer + fifoFillTx: + type: integer + underrunCountTx: + type: integer + overrunCountTx: + type: integer + droppedPacketsCountTx: + type: integer + linkRateTx: + type: number + format: float diff --git a/sdrbase/resources/webapi/doc/swagger/swagger.yaml b/sdrbase/resources/webapi/doc/swagger/swagger.yaml index 28337b447..0e2b0ff46 100644 --- a/sdrbase/resources/webapi/doc/swagger/swagger.yaml +++ b/sdrbase/resources/webapi/doc/swagger/swagger.yaml @@ -2295,6 +2295,8 @@ definitions: $ref: "/doc/swagger/include/KiwiSDR.yaml#/KiwiSDRReport" limeSdrOutputReport: $ref: "/doc/swagger/include/LimeSdr.yaml#/LimeSdrOutputReport" + limeSdrMIMOReport: + $ref: "/doc/swagger/include/LimeSdr.yaml#/LimeSdrMIMOReport" localInputReport: $ref: "/doc/swagger/include/LocalInput.yaml#/LocalInputReport" localOutputReport: diff --git a/swagger/sdrangel/api/swagger/include/DeviceSettings.yaml b/swagger/sdrangel/api/swagger/include/DeviceSettings.yaml index e18b8f479..bfd03a921 100644 --- a/swagger/sdrangel/api/swagger/include/DeviceSettings.yaml +++ b/swagger/sdrangel/api/swagger/include/DeviceSettings.yaml @@ -44,6 +44,8 @@ DeviceSettings: $ref: "http://localhost:8081/api/swagger/include/LimeSdr.yaml#/LimeSdrInputSettings" limeSdrOutputSettings: $ref: "http://localhost:8081/api/swagger/include/LimeSdr.yaml#/LimeSdrOutputSettings" + limeSdrMIMOSettings: + $ref: "http://localhost:8081/api/swagger/include/LimeSdr.yaml#/LimeSdrMIMOSettings" localInputSettings: $ref: "http://localhost:8081/api/swagger/include/LocalInput.yaml#/LocalInputSettings" localOutputSettings: diff --git a/swagger/sdrangel/api/swagger/include/LimeSdr.yaml b/swagger/sdrangel/api/swagger/include/LimeSdr.yaml index 3f7f54b1d..a7f2a7bfb 100644 --- a/swagger/sdrangel/api/swagger/include/LimeSdr.yaml +++ b/swagger/sdrangel/api/swagger/include/LimeSdr.yaml @@ -114,6 +114,209 @@ LimeSdrOutputSettings: reverseAPIDeviceIndex: type: integer +LimeSdrMIMOSettings: + description: LimeSDR + properties: + # General + devSampleRate: + type: integer + gpioDir: + description: GPIO pin direction LSB first; 0 input, 1 output + type: integer + format: int8 + gpioPins: + description: GPIO pins to write; LSB first + type: integer + format: int8 + extClock: + description: Boolean 1 if external clock source else 0 + type: integer + extClockFreq: + description: Frequency (Hz) of external clock source + type: integer + fileRecordName: + type: string + useReverseAPI: + description: Boolean + type: integer + reverseAPIAddress: + type: string + reverseAPIPort: + type: integer + reverseAPIDeviceIndex: + type: integer + # Rx general + rxCenterFrequency: + type: integer + format: int64 + log2HardDecim: + type: integer + log2SoftDecim: + type: integer + dcBlock: + description: Boolean + type: integer + iqCorrection: + description: Boolean + type: integer + rxTransverterMode: + description: Boolean + type: integer + rxTransverterDeltaFrequency: + type: integer + format: int64 + ncoEnableRx: + description: Boolean 1 to enable TSP NCO and mixing else 0 + type: integer + ncoFrequencyRx: + description: Rx Actual NCO frequency (the resulting frequency with mixing is displayed) + type: integer + # Rx channel 0 + lpfBWRx0: + description: Rx[0] LMS analog lowpass filter bandwidth (Hz) + type: number + format: float + lpfFIREnableRx0: + description: Boolean 1 to enable Rx[0] LMS digital lowpass FIR filters else 0 + type: integer + lpfFIRBWRx0: + description: Rx[0] LMS digital lowpass FIR filters bandwidth (Hz) + type: number + format: float + + gainRx0: + description: Rx[0] Optimally distributed gain (dB) + type: integer + antennaPathRx0: + description: > + Rx[0] Antenna connection (PathRxRFE): + * 0 - None + * 1 - LNA High + * 2 - LNA low + * 3 - LNA Wide + * 4 - LB TX1 + * 5 - LB TX2 + type: integer + gainModeRx0: + description: > + Rx[0] Gain mode: + * 0 - auto + * 1 - manual + type: integer + lnaGainRx0: + description: Rx[0] Manual LNA gain + type: integer + tiaGainRx0: + description: Rx[0] Manual TIA gain + type: integer + pgaGainRx0: + description: Rx[0] Manual PGA gain + type: integer + # Rx channel 1 + lpfBWRx1: + description: Rx[1] LMS analog lowpass filter bandwidth (Hz) + type: number + format: float + lpfFIREnableRx1: + description: Boolean 1 to enable Rx[1] LMS digital lowpass FIR filters else 0 + type: integer + lpfFIRBWRx1: + description: Rx[1] LMS digital lowpass FIR filters bandwidth (Hz) + type: number + format: float + gainRx1: + description: Rx[1] Optimally distributed gain (dB) + type: integer + antennaPathRx1: + description: > + Rx[1] Antenna connection (PathRxRFE): + * 0 - None + * 1 - LNA High + * 2 - LNA low + * 3 - LNA Wide + * 4 - LB TX1 + * 5 - LB TX2 + type: integer + gainModeRx1: + description: > + Rx[1] Gain mode: + * 0 - auto + * 1 - manual + type: integer + lnaGainRx1: + description: Rx[1] Manual LNA gain + type: integer + tiaGainRx1: + description: Rx[1] Manual TIA gain + type: integer + pgaGainRx1: + description: Rx[1] Manual PGA gain + type: integer + # Tx general + txCenterFrequency: + type: integer + format: int64 + log2HardInterp: + type: integer + log2SoftInterp: + type: integer + txTransverterMode: + description: Boolean + type: integer + txTransverterDeltaFrequency: + type: integer + format: int64 + ncoEnableTx: + description: Boolean 1 to enable TSP NCO and mixing else 0 + type: integer + ncoFrequencyTx: + description: Tx Actual NCO frequency (the resulting frequency with mixing is displayed) + type: integer + # Tx channel 0 + lpfBWTx0: + description: Tx[0] LMS analog lowpass filter bandwidth (Hz) + type: number + format: float + lpfFIREnableTx0: + description: Boolean 1 to enable Tx[0] LMS digital lowpass FIR filters else 0 + type: integer + lpfFIRBWTx0: + description: Tx[0] LMS digital lowpass FIR filters bandwidth (Hz) + type: number + format: float + gainTx0: + description: Tx[0] Optimally distributed gain (dB) + type: integer + antennaPathTx0: + description: > + Tx[0] Antenna connection (PathTxRFE): + * 0 - None + * 1 - RF connector 1 + * 2 - RF connector 2 + type: integer + # Tx channel 1 + lpfBWTx1: + description: Tx[1] LMS analog lowpass filter bandwidth (Hz) + type: number + format: float + lpfFIREnableTx1: + description: Boolean 1 to enable Tx[1] LMS digital lowpass FIR filters else 0 + type: integer + lpfFIRBWTx1: + description: Tx[1] LMS digital lowpass FIR filters bandwidth (Hz) + type: number + format: float + gainTx1: + description: Tx[1] Optimally distributed gain (dB) + type: integer + antennaPathTx1: + description: > + Tx[1] Antenna connection (PathTxRFE): + * 0 - None + * 1 - RF connector 1 + * 2 - RF connector 2 + type: integer + LimeSdrInputReport: description: LimeSDR properties: @@ -195,3 +398,58 @@ LimeSdrOutputReport: gpioPins: type: integer format: int8 + +LimeSdrMIMOReport: + description: LimeSDR + properties: + hwTimestamp: + description: Hardware timestamp + type: integer + format: uint64 + temperature: + type: number + format: float + gpioDir: + type: integer + format: int8 + gpioPins: + type: integer + format: int8 + successRx: + description: 1 if Rx info was successfullt retrieved else 0 + type: integer + streamActiveRx: + description: 1 if active else 0 + type: integer + fifoSizeRx: + type: integer + fifoFillRx: + type: integer + underrunCountRx: + type: integer + overrunCountRx: + type: integer + droppedPacketsCountRx: + type: integer + linkRateRx: + type: number + format: float + successTx: + description: 1 if Tx info was successfullt retrieved else 0 + type: integer + streamActiveTx: + description: 1 if active else 0 + type: integer + fifoSizeTx: + type: integer + fifoFillTx: + type: integer + underrunCountTx: + type: integer + overrunCountTx: + type: integer + droppedPacketsCountTx: + type: integer + linkRateTx: + type: number + format: float diff --git a/swagger/sdrangel/api/swagger/swagger.yaml b/swagger/sdrangel/api/swagger/swagger.yaml index bdbe68908..b1de704a7 100644 --- a/swagger/sdrangel/api/swagger/swagger.yaml +++ b/swagger/sdrangel/api/swagger/swagger.yaml @@ -2295,6 +2295,8 @@ definitions: $ref: "http://localhost:8081/api/swagger/include/KiwiSDR.yaml#/KiwiSDRReport" limeSdrOutputReport: $ref: "http://localhost:8081/api/swagger/include/LimeSdr.yaml#/LimeSdrOutputReport" + limeSdrMIMOReport: + $ref: "http://localhost:8081/api/swagger/include/LimeSdr.yaml#/LimeSdrMIMOReport" localInputReport: $ref: "http://localhost:8081/api/swagger/include/LocalInput.yaml#/LocalInputReport" localOutputReport: diff --git a/swagger/sdrangel/code/html2/index.html b/swagger/sdrangel/code/html2/index.html index 71f8393e2..eac3bc360 100644 --- a/swagger/sdrangel/code/html2/index.html +++ b/swagger/sdrangel/code/html2/index.html @@ -3244,6 +3244,9 @@ margin-bottom: 20px; "limeSdrOutputReport" : { "$ref" : "#/definitions/LimeSdrOutputReport" }, + "limeSdrMIMOReport" : { + "$ref" : "#/definitions/LimeSdrMIMOReport" + }, "localInputReport" : { "$ref" : "#/definitions/LocalInputReport" }, @@ -3390,6 +3393,9 @@ margin-bottom: 20px; "limeSdrOutputSettings" : { "$ref" : "#/definitions/LimeSdrOutputSettings" }, + "limeSdrMIMOSettings" : { + "$ref" : "#/definitions/LimeSdrMIMOSettings" + }, "localInputSettings" : { "$ref" : "#/definitions/LocalInputSettings" }, @@ -4822,6 +4828,304 @@ margin-bottom: 20px; } }, "description" : "LimeSDR" +}; + defs.LimeSdrMIMOReport = { + "properties" : { + "hwTimestamp" : { + "type" : "integer", + "format" : "uint64", + "description" : "Hardware timestamp" + }, + "temperature" : { + "type" : "number", + "format" : "float" + }, + "gpioDir" : { + "type" : "integer", + "format" : "int8" + }, + "gpioPins" : { + "type" : "integer", + "format" : "int8" + }, + "successRx" : { + "type" : "integer", + "description" : "1 if Rx info was successfullt retrieved else 0" + }, + "streamActiveRx" : { + "type" : "integer", + "description" : "1 if active else 0" + }, + "fifoSizeRx" : { + "type" : "integer" + }, + "fifoFillRx" : { + "type" : "integer" + }, + "underrunCountRx" : { + "type" : "integer" + }, + "overrunCountRx" : { + "type" : "integer" + }, + "droppedPacketsCountRx" : { + "type" : "integer" + }, + "linkRateRx" : { + "type" : "number", + "format" : "float" + }, + "successTx" : { + "type" : "integer", + "description" : "1 if Tx info was successfullt retrieved else 0" + }, + "streamActiveTx" : { + "type" : "integer", + "description" : "1 if active else 0" + }, + "fifoSizeTx" : { + "type" : "integer" + }, + "fifoFillTx" : { + "type" : "integer" + }, + "underrunCountTx" : { + "type" : "integer" + }, + "overrunCountTx" : { + "type" : "integer" + }, + "droppedPacketsCountTx" : { + "type" : "integer" + }, + "linkRateTx" : { + "type" : "number", + "format" : "float" + } + }, + "description" : "LimeSDR" +}; + defs.LimeSdrMIMOSettings = { + "properties" : { + "devSampleRate" : { + "type" : "integer" + }, + "gpioDir" : { + "type" : "integer", + "format" : "int8", + "description" : "GPIO pin direction LSB first; 0 input, 1 output" + }, + "gpioPins" : { + "type" : "integer", + "format" : "int8", + "description" : "GPIO pins to write; LSB first" + }, + "extClock" : { + "type" : "integer", + "description" : "Boolean 1 if external clock source else 0" + }, + "extClockFreq" : { + "type" : "integer", + "description" : "Frequency (Hz) of external clock source" + }, + "fileRecordName" : { + "type" : "string" + }, + "useReverseAPI" : { + "type" : "integer", + "description" : "Boolean" + }, + "reverseAPIAddress" : { + "type" : "string" + }, + "reverseAPIPort" : { + "type" : "integer" + }, + "reverseAPIDeviceIndex" : { + "type" : "integer" + }, + "rxCenterFrequency" : { + "type" : "integer", + "format" : "int64" + }, + "log2HardDecim" : { + "type" : "integer" + }, + "log2SoftDecim" : { + "type" : "integer" + }, + "dcBlock" : { + "type" : "integer", + "description" : "Boolean" + }, + "iqCorrection" : { + "type" : "integer", + "description" : "Boolean" + }, + "rxTransverterMode" : { + "type" : "integer", + "description" : "Boolean" + }, + "rxTransverterDeltaFrequency" : { + "type" : "integer", + "format" : "int64" + }, + "ncoEnableRx" : { + "type" : "integer", + "description" : "Boolean 1 to enable TSP NCO and mixing else 0" + }, + "ncoFrequencyRx" : { + "type" : "integer", + "description" : "Rx Actual NCO frequency (the resulting frequency with mixing is displayed)" + }, + "lpfBWRx0" : { + "type" : "number", + "format" : "float", + "description" : "Rx[0] LMS analog lowpass filter bandwidth (Hz)" + }, + "lpfFIREnableRx0" : { + "type" : "integer", + "description" : "Boolean 1 to enable Rx[0] LMS digital lowpass FIR filters else 0" + }, + "lpfFIRBWRx0" : { + "type" : "number", + "format" : "float", + "description" : "Rx[0] LMS digital lowpass FIR filters bandwidth (Hz)" + }, + "gainRx0" : { + "type" : "integer", + "description" : "Rx[0] Optimally distributed gain (dB)" + }, + "antennaPathRx0" : { + "type" : "integer", + "description" : "Rx[0] Antenna connection (PathRxRFE):\n * 0 - None\n * 1 - LNA High\n * 2 - LNA low\n * 3 - LNA Wide\n * 4 - LB TX1\n * 5 - LB TX2\n" + }, + "gainModeRx0" : { + "type" : "integer", + "description" : "Rx[0] Gain mode:\n * 0 - auto\n * 1 - manual\n" + }, + "lnaGainRx0" : { + "type" : "integer", + "description" : "Rx[0] Manual LNA gain" + }, + "tiaGainRx0" : { + "type" : "integer", + "description" : "Rx[0] Manual TIA gain" + }, + "pgaGainRx0" : { + "type" : "integer", + "description" : "Rx[0] Manual PGA gain" + }, + "lpfBWRx1" : { + "type" : "number", + "format" : "float", + "description" : "Rx[1] LMS analog lowpass filter bandwidth (Hz)" + }, + "lpfFIREnableRx1" : { + "type" : "integer", + "description" : "Boolean 1 to enable Rx[1] LMS digital lowpass FIR filters else 0" + }, + "lpfFIRBWRx1" : { + "type" : "number", + "format" : "float", + "description" : "Rx[1] LMS digital lowpass FIR filters bandwidth (Hz)" + }, + "gainRx1" : { + "type" : "integer", + "description" : "Rx[1] Optimally distributed gain (dB)" + }, + "antennaPathRx1" : { + "type" : "integer", + "description" : "Rx[1] Antenna connection (PathRxRFE):\n * 0 - None\n * 1 - LNA High\n * 2 - LNA low\n * 3 - LNA Wide\n * 4 - LB TX1\n * 5 - LB TX2\n" + }, + "gainModeRx1" : { + "type" : "integer", + "description" : "Rx[1] Gain mode:\n * 0 - auto\n * 1 - manual\n" + }, + "lnaGainRx1" : { + "type" : "integer", + "description" : "Rx[1] Manual LNA gain" + }, + "tiaGainRx1" : { + "type" : "integer", + "description" : "Rx[1] Manual TIA gain" + }, + "pgaGainRx1" : { + "type" : "integer", + "description" : "Rx[1] Manual PGA gain" + }, + "txCenterFrequency" : { + "type" : "integer", + "format" : "int64" + }, + "log2HardInterp" : { + "type" : "integer" + }, + "log2SoftInterp" : { + "type" : "integer" + }, + "txTransverterMode" : { + "type" : "integer", + "description" : "Boolean" + }, + "txTransverterDeltaFrequency" : { + "type" : "integer", + "format" : "int64" + }, + "ncoEnableTx" : { + "type" : "integer", + "description" : "Boolean 1 to enable TSP NCO and mixing else 0" + }, + "ncoFrequencyTx" : { + "type" : "integer", + "description" : "Tx Actual NCO frequency (the resulting frequency with mixing is displayed)" + }, + "lpfBWTx0" : { + "type" : "number", + "format" : "float", + "description" : "Tx[0] LMS analog lowpass filter bandwidth (Hz)" + }, + "lpfFIREnableTx0" : { + "type" : "integer", + "description" : "Boolean 1 to enable Tx[0] LMS digital lowpass FIR filters else 0" + }, + "lpfFIRBWTx0" : { + "type" : "number", + "format" : "float", + "description" : "Tx[0] LMS digital lowpass FIR filters bandwidth (Hz)" + }, + "gainTx0" : { + "type" : "integer", + "description" : "Tx[0] Optimally distributed gain (dB)" + }, + "antennaPathTx0" : { + "type" : "integer", + "description" : "Tx[0] Antenna connection (PathTxRFE):\n * 0 - None\n * 1 - RF connector 1\n * 2 - RF connector 2\n" + }, + "lpfBWTx1" : { + "type" : "number", + "format" : "float", + "description" : "Tx[1] LMS analog lowpass filter bandwidth (Hz)" + }, + "lpfFIREnableTx1" : { + "type" : "integer", + "description" : "Boolean 1 to enable Tx[1] LMS digital lowpass FIR filters else 0" + }, + "lpfFIRBWTx1" : { + "type" : "number", + "format" : "float", + "description" : "Tx[1] LMS digital lowpass FIR filters bandwidth (Hz)" + }, + "gainTx1" : { + "type" : "integer", + "description" : "Tx[1] Optimally distributed gain (dB)" + }, + "antennaPathTx1" : { + "type" : "integer", + "description" : "Tx[1] Antenna connection (PathTxRFE):\n * 0 - None\n * 1 - RF connector 1\n * 2 - RF connector 2\n" + } + }, + "description" : "LimeSDR" }; defs.LimeSdrOutputReport = { "properties" : { @@ -34181,7 +34485,7 @@ except ApiException as e:
- Generated 2020-04-19T21:52:24.714+02:00 + Generated 2020-04-27T16:54:02.798+02:00
diff --git a/swagger/sdrangel/code/qt5/client/SWGDeviceReport.cpp b/swagger/sdrangel/code/qt5/client/SWGDeviceReport.cpp index e51be354f..2a796c5d4 100644 --- a/swagger/sdrangel/code/qt5/client/SWGDeviceReport.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGDeviceReport.cpp @@ -48,6 +48,8 @@ SWGDeviceReport::SWGDeviceReport() { m_kiwi_sdr_report_isSet = false; lime_sdr_output_report = nullptr; m_lime_sdr_output_report_isSet = false; + lime_sdr_mimo_report = nullptr; + m_lime_sdr_mimo_report_isSet = false; local_input_report = nullptr; m_local_input_report_isSet = false; local_output_report = nullptr; @@ -104,6 +106,8 @@ SWGDeviceReport::init() { m_kiwi_sdr_report_isSet = false; lime_sdr_output_report = new SWGLimeSdrOutputReport(); m_lime_sdr_output_report_isSet = false; + lime_sdr_mimo_report = new SWGLimeSdrMIMOReport(); + m_lime_sdr_mimo_report_isSet = false; local_input_report = new SWGLocalInputReport(); m_local_input_report_isSet = false; local_output_report = new SWGLocalOutputReport(); @@ -164,6 +168,9 @@ SWGDeviceReport::cleanup() { if(lime_sdr_output_report != nullptr) { delete lime_sdr_output_report; } + if(lime_sdr_mimo_report != nullptr) { + delete lime_sdr_mimo_report; + } if(local_input_report != nullptr) { delete local_input_report; } @@ -239,6 +246,8 @@ SWGDeviceReport::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&lime_sdr_output_report, pJson["limeSdrOutputReport"], "SWGLimeSdrOutputReport", "SWGLimeSdrOutputReport"); + ::SWGSDRangel::setValue(&lime_sdr_mimo_report, pJson["limeSdrMIMOReport"], "SWGLimeSdrMIMOReport", "SWGLimeSdrMIMOReport"); + ::SWGSDRangel::setValue(&local_input_report, pJson["localInputReport"], "SWGLocalInputReport", "SWGLocalInputReport"); ::SWGSDRangel::setValue(&local_output_report, pJson["localOutputReport"], "SWGLocalOutputReport", "SWGLocalOutputReport"); @@ -313,6 +322,9 @@ SWGDeviceReport::asJsonObject() { if((lime_sdr_output_report != nullptr) && (lime_sdr_output_report->isSet())){ toJsonValue(QString("limeSdrOutputReport"), lime_sdr_output_report, obj, QString("SWGLimeSdrOutputReport")); } + if((lime_sdr_mimo_report != nullptr) && (lime_sdr_mimo_report->isSet())){ + toJsonValue(QString("limeSdrMIMOReport"), lime_sdr_mimo_report, obj, QString("SWGLimeSdrMIMOReport")); + } if((local_input_report != nullptr) && (local_input_report->isSet())){ toJsonValue(QString("localInputReport"), local_input_report, obj, QString("SWGLocalInputReport")); } @@ -459,6 +471,16 @@ SWGDeviceReport::setLimeSdrOutputReport(SWGLimeSdrOutputReport* lime_sdr_output_ this->m_lime_sdr_output_report_isSet = true; } +SWGLimeSdrMIMOReport* +SWGDeviceReport::getLimeSdrMimoReport() { + return lime_sdr_mimo_report; +} +void +SWGDeviceReport::setLimeSdrMimoReport(SWGLimeSdrMIMOReport* lime_sdr_mimo_report) { + this->lime_sdr_mimo_report = lime_sdr_mimo_report; + this->m_lime_sdr_mimo_report_isSet = true; +} + SWGLocalInputReport* SWGDeviceReport::getLocalInputReport() { return local_input_report; @@ -634,6 +656,9 @@ SWGDeviceReport::isSet(){ if(lime_sdr_output_report && lime_sdr_output_report->isSet()){ isObjectUpdated = true; break; } + if(lime_sdr_mimo_report && lime_sdr_mimo_report->isSet()){ + isObjectUpdated = true; break; + } if(local_input_report && local_input_report->isSet()){ isObjectUpdated = true; break; } diff --git a/swagger/sdrangel/code/qt5/client/SWGDeviceReport.h b/swagger/sdrangel/code/qt5/client/SWGDeviceReport.h index d00fd7f9e..48aec929e 100644 --- a/swagger/sdrangel/code/qt5/client/SWGDeviceReport.h +++ b/swagger/sdrangel/code/qt5/client/SWGDeviceReport.h @@ -29,6 +29,7 @@ #include "SWGFileInputReport.h" #include "SWGKiwiSDRReport.h" #include "SWGLimeSdrInputReport.h" +#include "SWGLimeSdrMIMOReport.h" #include "SWGLimeSdrOutputReport.h" #include "SWGLocalInputReport.h" #include "SWGLocalOutputReport.h" @@ -93,6 +94,9 @@ public: SWGLimeSdrOutputReport* getLimeSdrOutputReport(); void setLimeSdrOutputReport(SWGLimeSdrOutputReport* lime_sdr_output_report); + SWGLimeSdrMIMOReport* getLimeSdrMimoReport(); + void setLimeSdrMimoReport(SWGLimeSdrMIMOReport* lime_sdr_mimo_report); + SWGLocalInputReport* getLocalInputReport(); void setLocalInputReport(SWGLocalInputReport* local_input_report); @@ -169,6 +173,9 @@ private: SWGLimeSdrOutputReport* lime_sdr_output_report; bool m_lime_sdr_output_report_isSet; + SWGLimeSdrMIMOReport* lime_sdr_mimo_report; + bool m_lime_sdr_mimo_report_isSet; + SWGLocalInputReport* local_input_report; bool m_local_input_report_isSet; diff --git a/swagger/sdrangel/code/qt5/client/SWGDeviceSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGDeviceSettings.cpp index ef1bc4390..ca0f4b8c0 100644 --- a/swagger/sdrangel/code/qt5/client/SWGDeviceSettings.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGDeviceSettings.cpp @@ -64,6 +64,8 @@ SWGDeviceSettings::SWGDeviceSettings() { m_lime_sdr_input_settings_isSet = false; lime_sdr_output_settings = nullptr; m_lime_sdr_output_settings_isSet = false; + lime_sdr_mimo_settings = nullptr; + m_lime_sdr_mimo_settings_isSet = false; local_input_settings = nullptr; m_local_input_settings_isSet = false; local_output_settings = nullptr; @@ -142,6 +144,8 @@ SWGDeviceSettings::init() { m_lime_sdr_input_settings_isSet = false; lime_sdr_output_settings = new SWGLimeSdrOutputSettings(); m_lime_sdr_output_settings_isSet = false; + lime_sdr_mimo_settings = new SWGLimeSdrMIMOSettings(); + m_lime_sdr_mimo_settings_isSet = false; local_input_settings = new SWGLocalInputSettings(); m_local_input_settings_isSet = false; local_output_settings = new SWGLocalOutputSettings(); @@ -230,6 +234,9 @@ SWGDeviceSettings::cleanup() { if(lime_sdr_output_settings != nullptr) { delete lime_sdr_output_settings; } + if(lime_sdr_mimo_settings != nullptr) { + delete lime_sdr_mimo_settings; + } if(local_input_settings != nullptr) { delete local_input_settings; } @@ -330,6 +337,8 @@ SWGDeviceSettings::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&lime_sdr_output_settings, pJson["limeSdrOutputSettings"], "SWGLimeSdrOutputSettings", "SWGLimeSdrOutputSettings"); + ::SWGSDRangel::setValue(&lime_sdr_mimo_settings, pJson["limeSdrMIMOSettings"], "SWGLimeSdrMIMOSettings", "SWGLimeSdrMIMOSettings"); + ::SWGSDRangel::setValue(&local_input_settings, pJson["localInputSettings"], "SWGLocalInputSettings", "SWGLocalInputSettings"); ::SWGSDRangel::setValue(&local_output_settings, pJson["localOutputSettings"], "SWGLocalOutputSettings", "SWGLocalOutputSettings"); @@ -434,6 +443,9 @@ SWGDeviceSettings::asJsonObject() { if((lime_sdr_output_settings != nullptr) && (lime_sdr_output_settings->isSet())){ toJsonValue(QString("limeSdrOutputSettings"), lime_sdr_output_settings, obj, QString("SWGLimeSdrOutputSettings")); } + if((lime_sdr_mimo_settings != nullptr) && (lime_sdr_mimo_settings->isSet())){ + toJsonValue(QString("limeSdrMIMOSettings"), lime_sdr_mimo_settings, obj, QString("SWGLimeSdrMIMOSettings")); + } if((local_input_settings != nullptr) && (local_input_settings->isSet())){ toJsonValue(QString("localInputSettings"), local_input_settings, obj, QString("SWGLocalInputSettings")); } @@ -669,6 +681,16 @@ SWGDeviceSettings::setLimeSdrOutputSettings(SWGLimeSdrOutputSettings* lime_sdr_o this->m_lime_sdr_output_settings_isSet = true; } +SWGLimeSdrMIMOSettings* +SWGDeviceSettings::getLimeSdrMimoSettings() { + return lime_sdr_mimo_settings; +} +void +SWGDeviceSettings::setLimeSdrMimoSettings(SWGLimeSdrMIMOSettings* lime_sdr_mimo_settings) { + this->lime_sdr_mimo_settings = lime_sdr_mimo_settings; + this->m_lime_sdr_mimo_settings_isSet = true; +} + SWGLocalInputSettings* SWGDeviceSettings::getLocalInputSettings() { return local_input_settings; @@ -898,6 +920,9 @@ SWGDeviceSettings::isSet(){ if(lime_sdr_output_settings && lime_sdr_output_settings->isSet()){ isObjectUpdated = true; break; } + if(lime_sdr_mimo_settings && lime_sdr_mimo_settings->isSet()){ + isObjectUpdated = true; break; + } if(local_input_settings && local_input_settings->isSet()){ isObjectUpdated = true; break; } diff --git a/swagger/sdrangel/code/qt5/client/SWGDeviceSettings.h b/swagger/sdrangel/code/qt5/client/SWGDeviceSettings.h index 2d84d089f..042c5ca59 100644 --- a/swagger/sdrangel/code/qt5/client/SWGDeviceSettings.h +++ b/swagger/sdrangel/code/qt5/client/SWGDeviceSettings.h @@ -36,6 +36,7 @@ #include "SWGHackRFOutputSettings.h" #include "SWGKiwiSDRSettings.h" #include "SWGLimeSdrInputSettings.h" +#include "SWGLimeSdrMIMOSettings.h" #include "SWGLimeSdrOutputSettings.h" #include "SWGLocalInputSettings.h" #include "SWGLocalOutputSettings.h" @@ -128,6 +129,9 @@ public: SWGLimeSdrOutputSettings* getLimeSdrOutputSettings(); void setLimeSdrOutputSettings(SWGLimeSdrOutputSettings* lime_sdr_output_settings); + SWGLimeSdrMIMOSettings* getLimeSdrMimoSettings(); + void setLimeSdrMimoSettings(SWGLimeSdrMIMOSettings* lime_sdr_mimo_settings); + SWGLocalInputSettings* getLocalInputSettings(); void setLocalInputSettings(SWGLocalInputSettings* local_input_settings); @@ -237,6 +241,9 @@ private: SWGLimeSdrOutputSettings* lime_sdr_output_settings; bool m_lime_sdr_output_settings_isSet; + SWGLimeSdrMIMOSettings* lime_sdr_mimo_settings; + bool m_lime_sdr_mimo_settings_isSet; + SWGLocalInputSettings* local_input_settings; bool m_local_input_settings_isSet; diff --git a/swagger/sdrangel/code/qt5/client/SWGLimeSdrMIMOReport.cpp b/swagger/sdrangel/code/qt5/client/SWGLimeSdrMIMOReport.cpp new file mode 100644 index 000000000..37ce161e1 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGLimeSdrMIMOReport.cpp @@ -0,0 +1,545 @@ +/** + * SDRangel + * This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 5.3.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGLimeSdrMIMOReport.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGLimeSdrMIMOReport::SWGLimeSdrMIMOReport(QString* json) { + init(); + this->fromJson(*json); +} + +SWGLimeSdrMIMOReport::SWGLimeSdrMIMOReport() { + hw_timestamp = 0; + m_hw_timestamp_isSet = false; + temperature = 0.0f; + m_temperature_isSet = false; + gpio_dir = 0; + m_gpio_dir_isSet = false; + gpio_pins = 0; + m_gpio_pins_isSet = false; + success_rx = 0; + m_success_rx_isSet = false; + stream_active_rx = 0; + m_stream_active_rx_isSet = false; + fifo_size_rx = 0; + m_fifo_size_rx_isSet = false; + fifo_fill_rx = 0; + m_fifo_fill_rx_isSet = false; + underrun_count_rx = 0; + m_underrun_count_rx_isSet = false; + overrun_count_rx = 0; + m_overrun_count_rx_isSet = false; + dropped_packets_count_rx = 0; + m_dropped_packets_count_rx_isSet = false; + link_rate_rx = 0.0f; + m_link_rate_rx_isSet = false; + success_tx = 0; + m_success_tx_isSet = false; + stream_active_tx = 0; + m_stream_active_tx_isSet = false; + fifo_size_tx = 0; + m_fifo_size_tx_isSet = false; + fifo_fill_tx = 0; + m_fifo_fill_tx_isSet = false; + underrun_count_tx = 0; + m_underrun_count_tx_isSet = false; + overrun_count_tx = 0; + m_overrun_count_tx_isSet = false; + dropped_packets_count_tx = 0; + m_dropped_packets_count_tx_isSet = false; + link_rate_tx = 0.0f; + m_link_rate_tx_isSet = false; +} + +SWGLimeSdrMIMOReport::~SWGLimeSdrMIMOReport() { + this->cleanup(); +} + +void +SWGLimeSdrMIMOReport::init() { + hw_timestamp = 0; + m_hw_timestamp_isSet = false; + temperature = 0.0f; + m_temperature_isSet = false; + gpio_dir = 0; + m_gpio_dir_isSet = false; + gpio_pins = 0; + m_gpio_pins_isSet = false; + success_rx = 0; + m_success_rx_isSet = false; + stream_active_rx = 0; + m_stream_active_rx_isSet = false; + fifo_size_rx = 0; + m_fifo_size_rx_isSet = false; + fifo_fill_rx = 0; + m_fifo_fill_rx_isSet = false; + underrun_count_rx = 0; + m_underrun_count_rx_isSet = false; + overrun_count_rx = 0; + m_overrun_count_rx_isSet = false; + dropped_packets_count_rx = 0; + m_dropped_packets_count_rx_isSet = false; + link_rate_rx = 0.0f; + m_link_rate_rx_isSet = false; + success_tx = 0; + m_success_tx_isSet = false; + stream_active_tx = 0; + m_stream_active_tx_isSet = false; + fifo_size_tx = 0; + m_fifo_size_tx_isSet = false; + fifo_fill_tx = 0; + m_fifo_fill_tx_isSet = false; + underrun_count_tx = 0; + m_underrun_count_tx_isSet = false; + overrun_count_tx = 0; + m_overrun_count_tx_isSet = false; + dropped_packets_count_tx = 0; + m_dropped_packets_count_tx_isSet = false; + link_rate_tx = 0.0f; + m_link_rate_tx_isSet = false; +} + +void +SWGLimeSdrMIMOReport::cleanup() { + + + + + + + + + + + + + + + + + + + + +} + +SWGLimeSdrMIMOReport* +SWGLimeSdrMIMOReport::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGLimeSdrMIMOReport::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&hw_timestamp, pJson["hwTimestamp"], "qint32", ""); + + ::SWGSDRangel::setValue(&temperature, pJson["temperature"], "float", ""); + + ::SWGSDRangel::setValue(&gpio_dir, pJson["gpioDir"], "qint32", ""); + + ::SWGSDRangel::setValue(&gpio_pins, pJson["gpioPins"], "qint32", ""); + + ::SWGSDRangel::setValue(&success_rx, pJson["successRx"], "qint32", ""); + + ::SWGSDRangel::setValue(&stream_active_rx, pJson["streamActiveRx"], "qint32", ""); + + ::SWGSDRangel::setValue(&fifo_size_rx, pJson["fifoSizeRx"], "qint32", ""); + + ::SWGSDRangel::setValue(&fifo_fill_rx, pJson["fifoFillRx"], "qint32", ""); + + ::SWGSDRangel::setValue(&underrun_count_rx, pJson["underrunCountRx"], "qint32", ""); + + ::SWGSDRangel::setValue(&overrun_count_rx, pJson["overrunCountRx"], "qint32", ""); + + ::SWGSDRangel::setValue(&dropped_packets_count_rx, pJson["droppedPacketsCountRx"], "qint32", ""); + + ::SWGSDRangel::setValue(&link_rate_rx, pJson["linkRateRx"], "float", ""); + + ::SWGSDRangel::setValue(&success_tx, pJson["successTx"], "qint32", ""); + + ::SWGSDRangel::setValue(&stream_active_tx, pJson["streamActiveTx"], "qint32", ""); + + ::SWGSDRangel::setValue(&fifo_size_tx, pJson["fifoSizeTx"], "qint32", ""); + + ::SWGSDRangel::setValue(&fifo_fill_tx, pJson["fifoFillTx"], "qint32", ""); + + ::SWGSDRangel::setValue(&underrun_count_tx, pJson["underrunCountTx"], "qint32", ""); + + ::SWGSDRangel::setValue(&overrun_count_tx, pJson["overrunCountTx"], "qint32", ""); + + ::SWGSDRangel::setValue(&dropped_packets_count_tx, pJson["droppedPacketsCountTx"], "qint32", ""); + + ::SWGSDRangel::setValue(&link_rate_tx, pJson["linkRateTx"], "float", ""); + +} + +QString +SWGLimeSdrMIMOReport::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGLimeSdrMIMOReport::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(m_hw_timestamp_isSet){ + obj->insert("hwTimestamp", QJsonValue(hw_timestamp)); + } + if(m_temperature_isSet){ + obj->insert("temperature", QJsonValue(temperature)); + } + if(m_gpio_dir_isSet){ + obj->insert("gpioDir", QJsonValue(gpio_dir)); + } + if(m_gpio_pins_isSet){ + obj->insert("gpioPins", QJsonValue(gpio_pins)); + } + if(m_success_rx_isSet){ + obj->insert("successRx", QJsonValue(success_rx)); + } + if(m_stream_active_rx_isSet){ + obj->insert("streamActiveRx", QJsonValue(stream_active_rx)); + } + if(m_fifo_size_rx_isSet){ + obj->insert("fifoSizeRx", QJsonValue(fifo_size_rx)); + } + if(m_fifo_fill_rx_isSet){ + obj->insert("fifoFillRx", QJsonValue(fifo_fill_rx)); + } + if(m_underrun_count_rx_isSet){ + obj->insert("underrunCountRx", QJsonValue(underrun_count_rx)); + } + if(m_overrun_count_rx_isSet){ + obj->insert("overrunCountRx", QJsonValue(overrun_count_rx)); + } + if(m_dropped_packets_count_rx_isSet){ + obj->insert("droppedPacketsCountRx", QJsonValue(dropped_packets_count_rx)); + } + if(m_link_rate_rx_isSet){ + obj->insert("linkRateRx", QJsonValue(link_rate_rx)); + } + if(m_success_tx_isSet){ + obj->insert("successTx", QJsonValue(success_tx)); + } + if(m_stream_active_tx_isSet){ + obj->insert("streamActiveTx", QJsonValue(stream_active_tx)); + } + if(m_fifo_size_tx_isSet){ + obj->insert("fifoSizeTx", QJsonValue(fifo_size_tx)); + } + if(m_fifo_fill_tx_isSet){ + obj->insert("fifoFillTx", QJsonValue(fifo_fill_tx)); + } + if(m_underrun_count_tx_isSet){ + obj->insert("underrunCountTx", QJsonValue(underrun_count_tx)); + } + if(m_overrun_count_tx_isSet){ + obj->insert("overrunCountTx", QJsonValue(overrun_count_tx)); + } + if(m_dropped_packets_count_tx_isSet){ + obj->insert("droppedPacketsCountTx", QJsonValue(dropped_packets_count_tx)); + } + if(m_link_rate_tx_isSet){ + obj->insert("linkRateTx", QJsonValue(link_rate_tx)); + } + + return obj; +} + +qint32 +SWGLimeSdrMIMOReport::getHwTimestamp() { + return hw_timestamp; +} +void +SWGLimeSdrMIMOReport::setHwTimestamp(qint32 hw_timestamp) { + this->hw_timestamp = hw_timestamp; + this->m_hw_timestamp_isSet = true; +} + +float +SWGLimeSdrMIMOReport::getTemperature() { + return temperature; +} +void +SWGLimeSdrMIMOReport::setTemperature(float temperature) { + this->temperature = temperature; + this->m_temperature_isSet = true; +} + +qint32 +SWGLimeSdrMIMOReport::getGpioDir() { + return gpio_dir; +} +void +SWGLimeSdrMIMOReport::setGpioDir(qint32 gpio_dir) { + this->gpio_dir = gpio_dir; + this->m_gpio_dir_isSet = true; +} + +qint32 +SWGLimeSdrMIMOReport::getGpioPins() { + return gpio_pins; +} +void +SWGLimeSdrMIMOReport::setGpioPins(qint32 gpio_pins) { + this->gpio_pins = gpio_pins; + this->m_gpio_pins_isSet = true; +} + +qint32 +SWGLimeSdrMIMOReport::getSuccessRx() { + return success_rx; +} +void +SWGLimeSdrMIMOReport::setSuccessRx(qint32 success_rx) { + this->success_rx = success_rx; + this->m_success_rx_isSet = true; +} + +qint32 +SWGLimeSdrMIMOReport::getStreamActiveRx() { + return stream_active_rx; +} +void +SWGLimeSdrMIMOReport::setStreamActiveRx(qint32 stream_active_rx) { + this->stream_active_rx = stream_active_rx; + this->m_stream_active_rx_isSet = true; +} + +qint32 +SWGLimeSdrMIMOReport::getFifoSizeRx() { + return fifo_size_rx; +} +void +SWGLimeSdrMIMOReport::setFifoSizeRx(qint32 fifo_size_rx) { + this->fifo_size_rx = fifo_size_rx; + this->m_fifo_size_rx_isSet = true; +} + +qint32 +SWGLimeSdrMIMOReport::getFifoFillRx() { + return fifo_fill_rx; +} +void +SWGLimeSdrMIMOReport::setFifoFillRx(qint32 fifo_fill_rx) { + this->fifo_fill_rx = fifo_fill_rx; + this->m_fifo_fill_rx_isSet = true; +} + +qint32 +SWGLimeSdrMIMOReport::getUnderrunCountRx() { + return underrun_count_rx; +} +void +SWGLimeSdrMIMOReport::setUnderrunCountRx(qint32 underrun_count_rx) { + this->underrun_count_rx = underrun_count_rx; + this->m_underrun_count_rx_isSet = true; +} + +qint32 +SWGLimeSdrMIMOReport::getOverrunCountRx() { + return overrun_count_rx; +} +void +SWGLimeSdrMIMOReport::setOverrunCountRx(qint32 overrun_count_rx) { + this->overrun_count_rx = overrun_count_rx; + this->m_overrun_count_rx_isSet = true; +} + +qint32 +SWGLimeSdrMIMOReport::getDroppedPacketsCountRx() { + return dropped_packets_count_rx; +} +void +SWGLimeSdrMIMOReport::setDroppedPacketsCountRx(qint32 dropped_packets_count_rx) { + this->dropped_packets_count_rx = dropped_packets_count_rx; + this->m_dropped_packets_count_rx_isSet = true; +} + +float +SWGLimeSdrMIMOReport::getLinkRateRx() { + return link_rate_rx; +} +void +SWGLimeSdrMIMOReport::setLinkRateRx(float link_rate_rx) { + this->link_rate_rx = link_rate_rx; + this->m_link_rate_rx_isSet = true; +} + +qint32 +SWGLimeSdrMIMOReport::getSuccessTx() { + return success_tx; +} +void +SWGLimeSdrMIMOReport::setSuccessTx(qint32 success_tx) { + this->success_tx = success_tx; + this->m_success_tx_isSet = true; +} + +qint32 +SWGLimeSdrMIMOReport::getStreamActiveTx() { + return stream_active_tx; +} +void +SWGLimeSdrMIMOReport::setStreamActiveTx(qint32 stream_active_tx) { + this->stream_active_tx = stream_active_tx; + this->m_stream_active_tx_isSet = true; +} + +qint32 +SWGLimeSdrMIMOReport::getFifoSizeTx() { + return fifo_size_tx; +} +void +SWGLimeSdrMIMOReport::setFifoSizeTx(qint32 fifo_size_tx) { + this->fifo_size_tx = fifo_size_tx; + this->m_fifo_size_tx_isSet = true; +} + +qint32 +SWGLimeSdrMIMOReport::getFifoFillTx() { + return fifo_fill_tx; +} +void +SWGLimeSdrMIMOReport::setFifoFillTx(qint32 fifo_fill_tx) { + this->fifo_fill_tx = fifo_fill_tx; + this->m_fifo_fill_tx_isSet = true; +} + +qint32 +SWGLimeSdrMIMOReport::getUnderrunCountTx() { + return underrun_count_tx; +} +void +SWGLimeSdrMIMOReport::setUnderrunCountTx(qint32 underrun_count_tx) { + this->underrun_count_tx = underrun_count_tx; + this->m_underrun_count_tx_isSet = true; +} + +qint32 +SWGLimeSdrMIMOReport::getOverrunCountTx() { + return overrun_count_tx; +} +void +SWGLimeSdrMIMOReport::setOverrunCountTx(qint32 overrun_count_tx) { + this->overrun_count_tx = overrun_count_tx; + this->m_overrun_count_tx_isSet = true; +} + +qint32 +SWGLimeSdrMIMOReport::getDroppedPacketsCountTx() { + return dropped_packets_count_tx; +} +void +SWGLimeSdrMIMOReport::setDroppedPacketsCountTx(qint32 dropped_packets_count_tx) { + this->dropped_packets_count_tx = dropped_packets_count_tx; + this->m_dropped_packets_count_tx_isSet = true; +} + +float +SWGLimeSdrMIMOReport::getLinkRateTx() { + return link_rate_tx; +} +void +SWGLimeSdrMIMOReport::setLinkRateTx(float link_rate_tx) { + this->link_rate_tx = link_rate_tx; + this->m_link_rate_tx_isSet = true; +} + + +bool +SWGLimeSdrMIMOReport::isSet(){ + bool isObjectUpdated = false; + do{ + if(m_hw_timestamp_isSet){ + isObjectUpdated = true; break; + } + if(m_temperature_isSet){ + isObjectUpdated = true; break; + } + if(m_gpio_dir_isSet){ + isObjectUpdated = true; break; + } + if(m_gpio_pins_isSet){ + isObjectUpdated = true; break; + } + if(m_success_rx_isSet){ + isObjectUpdated = true; break; + } + if(m_stream_active_rx_isSet){ + isObjectUpdated = true; break; + } + if(m_fifo_size_rx_isSet){ + isObjectUpdated = true; break; + } + if(m_fifo_fill_rx_isSet){ + isObjectUpdated = true; break; + } + if(m_underrun_count_rx_isSet){ + isObjectUpdated = true; break; + } + if(m_overrun_count_rx_isSet){ + isObjectUpdated = true; break; + } + if(m_dropped_packets_count_rx_isSet){ + isObjectUpdated = true; break; + } + if(m_link_rate_rx_isSet){ + isObjectUpdated = true; break; + } + if(m_success_tx_isSet){ + isObjectUpdated = true; break; + } + if(m_stream_active_tx_isSet){ + isObjectUpdated = true; break; + } + if(m_fifo_size_tx_isSet){ + isObjectUpdated = true; break; + } + if(m_fifo_fill_tx_isSet){ + isObjectUpdated = true; break; + } + if(m_underrun_count_tx_isSet){ + isObjectUpdated = true; break; + } + if(m_overrun_count_tx_isSet){ + isObjectUpdated = true; break; + } + if(m_dropped_packets_count_tx_isSet){ + isObjectUpdated = true; break; + } + if(m_link_rate_tx_isSet){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGLimeSdrMIMOReport.h b/swagger/sdrangel/code/qt5/client/SWGLimeSdrMIMOReport.h new file mode 100644 index 000000000..3a34f91fb --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGLimeSdrMIMOReport.h @@ -0,0 +1,172 @@ +/** + * SDRangel + * This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 5.3.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGLimeSdrMIMOReport.h + * + * LimeSDR + */ + +#ifndef SWGLimeSdrMIMOReport_H_ +#define SWGLimeSdrMIMOReport_H_ + +#include + + + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGLimeSdrMIMOReport: public SWGObject { +public: + SWGLimeSdrMIMOReport(); + SWGLimeSdrMIMOReport(QString* json); + virtual ~SWGLimeSdrMIMOReport(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGLimeSdrMIMOReport* fromJson(QString &jsonString) override; + + qint32 getHwTimestamp(); + void setHwTimestamp(qint32 hw_timestamp); + + float getTemperature(); + void setTemperature(float temperature); + + qint32 getGpioDir(); + void setGpioDir(qint32 gpio_dir); + + qint32 getGpioPins(); + void setGpioPins(qint32 gpio_pins); + + qint32 getSuccessRx(); + void setSuccessRx(qint32 success_rx); + + qint32 getStreamActiveRx(); + void setStreamActiveRx(qint32 stream_active_rx); + + qint32 getFifoSizeRx(); + void setFifoSizeRx(qint32 fifo_size_rx); + + qint32 getFifoFillRx(); + void setFifoFillRx(qint32 fifo_fill_rx); + + qint32 getUnderrunCountRx(); + void setUnderrunCountRx(qint32 underrun_count_rx); + + qint32 getOverrunCountRx(); + void setOverrunCountRx(qint32 overrun_count_rx); + + qint32 getDroppedPacketsCountRx(); + void setDroppedPacketsCountRx(qint32 dropped_packets_count_rx); + + float getLinkRateRx(); + void setLinkRateRx(float link_rate_rx); + + qint32 getSuccessTx(); + void setSuccessTx(qint32 success_tx); + + qint32 getStreamActiveTx(); + void setStreamActiveTx(qint32 stream_active_tx); + + qint32 getFifoSizeTx(); + void setFifoSizeTx(qint32 fifo_size_tx); + + qint32 getFifoFillTx(); + void setFifoFillTx(qint32 fifo_fill_tx); + + qint32 getUnderrunCountTx(); + void setUnderrunCountTx(qint32 underrun_count_tx); + + qint32 getOverrunCountTx(); + void setOverrunCountTx(qint32 overrun_count_tx); + + qint32 getDroppedPacketsCountTx(); + void setDroppedPacketsCountTx(qint32 dropped_packets_count_tx); + + float getLinkRateTx(); + void setLinkRateTx(float link_rate_tx); + + + virtual bool isSet() override; + +private: + qint32 hw_timestamp; + bool m_hw_timestamp_isSet; + + float temperature; + bool m_temperature_isSet; + + qint32 gpio_dir; + bool m_gpio_dir_isSet; + + qint32 gpio_pins; + bool m_gpio_pins_isSet; + + qint32 success_rx; + bool m_success_rx_isSet; + + qint32 stream_active_rx; + bool m_stream_active_rx_isSet; + + qint32 fifo_size_rx; + bool m_fifo_size_rx_isSet; + + qint32 fifo_fill_rx; + bool m_fifo_fill_rx_isSet; + + qint32 underrun_count_rx; + bool m_underrun_count_rx_isSet; + + qint32 overrun_count_rx; + bool m_overrun_count_rx_isSet; + + qint32 dropped_packets_count_rx; + bool m_dropped_packets_count_rx_isSet; + + float link_rate_rx; + bool m_link_rate_rx_isSet; + + qint32 success_tx; + bool m_success_tx_isSet; + + qint32 stream_active_tx; + bool m_stream_active_tx_isSet; + + qint32 fifo_size_tx; + bool m_fifo_size_tx_isSet; + + qint32 fifo_fill_tx; + bool m_fifo_fill_tx_isSet; + + qint32 underrun_count_tx; + bool m_underrun_count_tx_isSet; + + qint32 overrun_count_tx; + bool m_overrun_count_tx_isSet; + + qint32 dropped_packets_count_tx; + bool m_dropped_packets_count_tx_isSet; + + float link_rate_tx; + bool m_link_rate_tx_isSet; + +}; + +} + +#endif /* SWGLimeSdrMIMOReport_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGLimeSdrMIMOSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGLimeSdrMIMOSettings.cpp new file mode 100644 index 000000000..8c76eff69 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGLimeSdrMIMOSettings.cpp @@ -0,0 +1,1331 @@ +/** + * SDRangel + * This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 5.3.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGLimeSdrMIMOSettings.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGLimeSdrMIMOSettings::SWGLimeSdrMIMOSettings(QString* json) { + init(); + this->fromJson(*json); +} + +SWGLimeSdrMIMOSettings::SWGLimeSdrMIMOSettings() { + dev_sample_rate = 0; + m_dev_sample_rate_isSet = false; + gpio_dir = 0; + m_gpio_dir_isSet = false; + gpio_pins = 0; + m_gpio_pins_isSet = false; + ext_clock = 0; + m_ext_clock_isSet = false; + ext_clock_freq = 0; + m_ext_clock_freq_isSet = false; + file_record_name = nullptr; + m_file_record_name_isSet = false; + use_reverse_api = 0; + m_use_reverse_api_isSet = false; + reverse_api_address = nullptr; + m_reverse_api_address_isSet = false; + reverse_api_port = 0; + m_reverse_api_port_isSet = false; + reverse_api_device_index = 0; + m_reverse_api_device_index_isSet = false; + rx_center_frequency = 0L; + m_rx_center_frequency_isSet = false; + log2_hard_decim = 0; + m_log2_hard_decim_isSet = false; + log2_soft_decim = 0; + m_log2_soft_decim_isSet = false; + dc_block = 0; + m_dc_block_isSet = false; + iq_correction = 0; + m_iq_correction_isSet = false; + rx_transverter_mode = 0; + m_rx_transverter_mode_isSet = false; + rx_transverter_delta_frequency = 0L; + m_rx_transverter_delta_frequency_isSet = false; + nco_enable_rx = 0; + m_nco_enable_rx_isSet = false; + nco_frequency_rx = 0; + m_nco_frequency_rx_isSet = false; + lpf_bw_rx0 = 0.0f; + m_lpf_bw_rx0_isSet = false; + lpf_fir_enable_rx0 = 0; + m_lpf_fir_enable_rx0_isSet = false; + lpf_firbw_rx0 = 0.0f; + m_lpf_firbw_rx0_isSet = false; + gain_rx0 = 0; + m_gain_rx0_isSet = false; + antenna_path_rx0 = 0; + m_antenna_path_rx0_isSet = false; + gain_mode_rx0 = 0; + m_gain_mode_rx0_isSet = false; + lna_gain_rx0 = 0; + m_lna_gain_rx0_isSet = false; + tia_gain_rx0 = 0; + m_tia_gain_rx0_isSet = false; + pga_gain_rx0 = 0; + m_pga_gain_rx0_isSet = false; + lpf_bw_rx1 = 0.0f; + m_lpf_bw_rx1_isSet = false; + lpf_fir_enable_rx1 = 0; + m_lpf_fir_enable_rx1_isSet = false; + lpf_firbw_rx1 = 0.0f; + m_lpf_firbw_rx1_isSet = false; + gain_rx1 = 0; + m_gain_rx1_isSet = false; + antenna_path_rx1 = 0; + m_antenna_path_rx1_isSet = false; + gain_mode_rx1 = 0; + m_gain_mode_rx1_isSet = false; + lna_gain_rx1 = 0; + m_lna_gain_rx1_isSet = false; + tia_gain_rx1 = 0; + m_tia_gain_rx1_isSet = false; + pga_gain_rx1 = 0; + m_pga_gain_rx1_isSet = false; + tx_center_frequency = 0L; + m_tx_center_frequency_isSet = false; + log2_hard_interp = 0; + m_log2_hard_interp_isSet = false; + log2_soft_interp = 0; + m_log2_soft_interp_isSet = false; + tx_transverter_mode = 0; + m_tx_transverter_mode_isSet = false; + tx_transverter_delta_frequency = 0L; + m_tx_transverter_delta_frequency_isSet = false; + nco_enable_tx = 0; + m_nco_enable_tx_isSet = false; + nco_frequency_tx = 0; + m_nco_frequency_tx_isSet = false; + lpf_bw_tx0 = 0.0f; + m_lpf_bw_tx0_isSet = false; + lpf_fir_enable_tx0 = 0; + m_lpf_fir_enable_tx0_isSet = false; + lpf_firbw_tx0 = 0.0f; + m_lpf_firbw_tx0_isSet = false; + gain_tx0 = 0; + m_gain_tx0_isSet = false; + antenna_path_tx0 = 0; + m_antenna_path_tx0_isSet = false; + lpf_bw_tx1 = 0.0f; + m_lpf_bw_tx1_isSet = false; + lpf_fir_enable_tx1 = 0; + m_lpf_fir_enable_tx1_isSet = false; + lpf_firbw_tx1 = 0.0f; + m_lpf_firbw_tx1_isSet = false; + gain_tx1 = 0; + m_gain_tx1_isSet = false; + antenna_path_tx1 = 0; + m_antenna_path_tx1_isSet = false; +} + +SWGLimeSdrMIMOSettings::~SWGLimeSdrMIMOSettings() { + this->cleanup(); +} + +void +SWGLimeSdrMIMOSettings::init() { + dev_sample_rate = 0; + m_dev_sample_rate_isSet = false; + gpio_dir = 0; + m_gpio_dir_isSet = false; + gpio_pins = 0; + m_gpio_pins_isSet = false; + ext_clock = 0; + m_ext_clock_isSet = false; + ext_clock_freq = 0; + m_ext_clock_freq_isSet = false; + file_record_name = new QString(""); + m_file_record_name_isSet = false; + use_reverse_api = 0; + m_use_reverse_api_isSet = false; + reverse_api_address = new QString(""); + m_reverse_api_address_isSet = false; + reverse_api_port = 0; + m_reverse_api_port_isSet = false; + reverse_api_device_index = 0; + m_reverse_api_device_index_isSet = false; + rx_center_frequency = 0L; + m_rx_center_frequency_isSet = false; + log2_hard_decim = 0; + m_log2_hard_decim_isSet = false; + log2_soft_decim = 0; + m_log2_soft_decim_isSet = false; + dc_block = 0; + m_dc_block_isSet = false; + iq_correction = 0; + m_iq_correction_isSet = false; + rx_transverter_mode = 0; + m_rx_transverter_mode_isSet = false; + rx_transverter_delta_frequency = 0L; + m_rx_transverter_delta_frequency_isSet = false; + nco_enable_rx = 0; + m_nco_enable_rx_isSet = false; + nco_frequency_rx = 0; + m_nco_frequency_rx_isSet = false; + lpf_bw_rx0 = 0.0f; + m_lpf_bw_rx0_isSet = false; + lpf_fir_enable_rx0 = 0; + m_lpf_fir_enable_rx0_isSet = false; + lpf_firbw_rx0 = 0.0f; + m_lpf_firbw_rx0_isSet = false; + gain_rx0 = 0; + m_gain_rx0_isSet = false; + antenna_path_rx0 = 0; + m_antenna_path_rx0_isSet = false; + gain_mode_rx0 = 0; + m_gain_mode_rx0_isSet = false; + lna_gain_rx0 = 0; + m_lna_gain_rx0_isSet = false; + tia_gain_rx0 = 0; + m_tia_gain_rx0_isSet = false; + pga_gain_rx0 = 0; + m_pga_gain_rx0_isSet = false; + lpf_bw_rx1 = 0.0f; + m_lpf_bw_rx1_isSet = false; + lpf_fir_enable_rx1 = 0; + m_lpf_fir_enable_rx1_isSet = false; + lpf_firbw_rx1 = 0.0f; + m_lpf_firbw_rx1_isSet = false; + gain_rx1 = 0; + m_gain_rx1_isSet = false; + antenna_path_rx1 = 0; + m_antenna_path_rx1_isSet = false; + gain_mode_rx1 = 0; + m_gain_mode_rx1_isSet = false; + lna_gain_rx1 = 0; + m_lna_gain_rx1_isSet = false; + tia_gain_rx1 = 0; + m_tia_gain_rx1_isSet = false; + pga_gain_rx1 = 0; + m_pga_gain_rx1_isSet = false; + tx_center_frequency = 0L; + m_tx_center_frequency_isSet = false; + log2_hard_interp = 0; + m_log2_hard_interp_isSet = false; + log2_soft_interp = 0; + m_log2_soft_interp_isSet = false; + tx_transverter_mode = 0; + m_tx_transverter_mode_isSet = false; + tx_transverter_delta_frequency = 0L; + m_tx_transverter_delta_frequency_isSet = false; + nco_enable_tx = 0; + m_nco_enable_tx_isSet = false; + nco_frequency_tx = 0; + m_nco_frequency_tx_isSet = false; + lpf_bw_tx0 = 0.0f; + m_lpf_bw_tx0_isSet = false; + lpf_fir_enable_tx0 = 0; + m_lpf_fir_enable_tx0_isSet = false; + lpf_firbw_tx0 = 0.0f; + m_lpf_firbw_tx0_isSet = false; + gain_tx0 = 0; + m_gain_tx0_isSet = false; + antenna_path_tx0 = 0; + m_antenna_path_tx0_isSet = false; + lpf_bw_tx1 = 0.0f; + m_lpf_bw_tx1_isSet = false; + lpf_fir_enable_tx1 = 0; + m_lpf_fir_enable_tx1_isSet = false; + lpf_firbw_tx1 = 0.0f; + m_lpf_firbw_tx1_isSet = false; + gain_tx1 = 0; + m_gain_tx1_isSet = false; + antenna_path_tx1 = 0; + m_antenna_path_tx1_isSet = false; +} + +void +SWGLimeSdrMIMOSettings::cleanup() { + + + + + + if(file_record_name != nullptr) { + delete file_record_name; + } + + if(reverse_api_address != nullptr) { + delete reverse_api_address; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +} + +SWGLimeSdrMIMOSettings* +SWGLimeSdrMIMOSettings::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGLimeSdrMIMOSettings::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&dev_sample_rate, pJson["devSampleRate"], "qint32", ""); + + ::SWGSDRangel::setValue(&gpio_dir, pJson["gpioDir"], "qint32", ""); + + ::SWGSDRangel::setValue(&gpio_pins, pJson["gpioPins"], "qint32", ""); + + ::SWGSDRangel::setValue(&ext_clock, pJson["extClock"], "qint32", ""); + + ::SWGSDRangel::setValue(&ext_clock_freq, pJson["extClockFreq"], "qint32", ""); + + ::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString"); + + ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", ""); + + ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString"); + + ::SWGSDRangel::setValue(&reverse_api_port, pJson["reverseAPIPort"], "qint32", ""); + + ::SWGSDRangel::setValue(&reverse_api_device_index, pJson["reverseAPIDeviceIndex"], "qint32", ""); + + ::SWGSDRangel::setValue(&rx_center_frequency, pJson["rxCenterFrequency"], "qint64", ""); + + ::SWGSDRangel::setValue(&log2_hard_decim, pJson["log2HardDecim"], "qint32", ""); + + ::SWGSDRangel::setValue(&log2_soft_decim, pJson["log2SoftDecim"], "qint32", ""); + + ::SWGSDRangel::setValue(&dc_block, pJson["dcBlock"], "qint32", ""); + + ::SWGSDRangel::setValue(&iq_correction, pJson["iqCorrection"], "qint32", ""); + + ::SWGSDRangel::setValue(&rx_transverter_mode, pJson["rxTransverterMode"], "qint32", ""); + + ::SWGSDRangel::setValue(&rx_transverter_delta_frequency, pJson["rxTransverterDeltaFrequency"], "qint64", ""); + + ::SWGSDRangel::setValue(&nco_enable_rx, pJson["ncoEnableRx"], "qint32", ""); + + ::SWGSDRangel::setValue(&nco_frequency_rx, pJson["ncoFrequencyRx"], "qint32", ""); + + ::SWGSDRangel::setValue(&lpf_bw_rx0, pJson["lpfBWRx0"], "float", ""); + + ::SWGSDRangel::setValue(&lpf_fir_enable_rx0, pJson["lpfFIREnableRx0"], "qint32", ""); + + ::SWGSDRangel::setValue(&lpf_firbw_rx0, pJson["lpfFIRBWRx0"], "float", ""); + + ::SWGSDRangel::setValue(&gain_rx0, pJson["gainRx0"], "qint32", ""); + + ::SWGSDRangel::setValue(&antenna_path_rx0, pJson["antennaPathRx0"], "qint32", ""); + + ::SWGSDRangel::setValue(&gain_mode_rx0, pJson["gainModeRx0"], "qint32", ""); + + ::SWGSDRangel::setValue(&lna_gain_rx0, pJson["lnaGainRx0"], "qint32", ""); + + ::SWGSDRangel::setValue(&tia_gain_rx0, pJson["tiaGainRx0"], "qint32", ""); + + ::SWGSDRangel::setValue(&pga_gain_rx0, pJson["pgaGainRx0"], "qint32", ""); + + ::SWGSDRangel::setValue(&lpf_bw_rx1, pJson["lpfBWRx1"], "float", ""); + + ::SWGSDRangel::setValue(&lpf_fir_enable_rx1, pJson["lpfFIREnableRx1"], "qint32", ""); + + ::SWGSDRangel::setValue(&lpf_firbw_rx1, pJson["lpfFIRBWRx1"], "float", ""); + + ::SWGSDRangel::setValue(&gain_rx1, pJson["gainRx1"], "qint32", ""); + + ::SWGSDRangel::setValue(&antenna_path_rx1, pJson["antennaPathRx1"], "qint32", ""); + + ::SWGSDRangel::setValue(&gain_mode_rx1, pJson["gainModeRx1"], "qint32", ""); + + ::SWGSDRangel::setValue(&lna_gain_rx1, pJson["lnaGainRx1"], "qint32", ""); + + ::SWGSDRangel::setValue(&tia_gain_rx1, pJson["tiaGainRx1"], "qint32", ""); + + ::SWGSDRangel::setValue(&pga_gain_rx1, pJson["pgaGainRx1"], "qint32", ""); + + ::SWGSDRangel::setValue(&tx_center_frequency, pJson["txCenterFrequency"], "qint64", ""); + + ::SWGSDRangel::setValue(&log2_hard_interp, pJson["log2HardInterp"], "qint32", ""); + + ::SWGSDRangel::setValue(&log2_soft_interp, pJson["log2SoftInterp"], "qint32", ""); + + ::SWGSDRangel::setValue(&tx_transverter_mode, pJson["txTransverterMode"], "qint32", ""); + + ::SWGSDRangel::setValue(&tx_transverter_delta_frequency, pJson["txTransverterDeltaFrequency"], "qint64", ""); + + ::SWGSDRangel::setValue(&nco_enable_tx, pJson["ncoEnableTx"], "qint32", ""); + + ::SWGSDRangel::setValue(&nco_frequency_tx, pJson["ncoFrequencyTx"], "qint32", ""); + + ::SWGSDRangel::setValue(&lpf_bw_tx0, pJson["lpfBWTx0"], "float", ""); + + ::SWGSDRangel::setValue(&lpf_fir_enable_tx0, pJson["lpfFIREnableTx0"], "qint32", ""); + + ::SWGSDRangel::setValue(&lpf_firbw_tx0, pJson["lpfFIRBWTx0"], "float", ""); + + ::SWGSDRangel::setValue(&gain_tx0, pJson["gainTx0"], "qint32", ""); + + ::SWGSDRangel::setValue(&antenna_path_tx0, pJson["antennaPathTx0"], "qint32", ""); + + ::SWGSDRangel::setValue(&lpf_bw_tx1, pJson["lpfBWTx1"], "float", ""); + + ::SWGSDRangel::setValue(&lpf_fir_enable_tx1, pJson["lpfFIREnableTx1"], "qint32", ""); + + ::SWGSDRangel::setValue(&lpf_firbw_tx1, pJson["lpfFIRBWTx1"], "float", ""); + + ::SWGSDRangel::setValue(&gain_tx1, pJson["gainTx1"], "qint32", ""); + + ::SWGSDRangel::setValue(&antenna_path_tx1, pJson["antennaPathTx1"], "qint32", ""); + +} + +QString +SWGLimeSdrMIMOSettings::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGLimeSdrMIMOSettings::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(m_dev_sample_rate_isSet){ + obj->insert("devSampleRate", QJsonValue(dev_sample_rate)); + } + if(m_gpio_dir_isSet){ + obj->insert("gpioDir", QJsonValue(gpio_dir)); + } + if(m_gpio_pins_isSet){ + obj->insert("gpioPins", QJsonValue(gpio_pins)); + } + if(m_ext_clock_isSet){ + obj->insert("extClock", QJsonValue(ext_clock)); + } + if(m_ext_clock_freq_isSet){ + obj->insert("extClockFreq", QJsonValue(ext_clock_freq)); + } + if(file_record_name != nullptr && *file_record_name != QString("")){ + toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString")); + } + if(m_use_reverse_api_isSet){ + obj->insert("useReverseAPI", QJsonValue(use_reverse_api)); + } + if(reverse_api_address != nullptr && *reverse_api_address != QString("")){ + toJsonValue(QString("reverseAPIAddress"), reverse_api_address, obj, QString("QString")); + } + if(m_reverse_api_port_isSet){ + obj->insert("reverseAPIPort", QJsonValue(reverse_api_port)); + } + if(m_reverse_api_device_index_isSet){ + obj->insert("reverseAPIDeviceIndex", QJsonValue(reverse_api_device_index)); + } + if(m_rx_center_frequency_isSet){ + obj->insert("rxCenterFrequency", QJsonValue(rx_center_frequency)); + } + if(m_log2_hard_decim_isSet){ + obj->insert("log2HardDecim", QJsonValue(log2_hard_decim)); + } + if(m_log2_soft_decim_isSet){ + obj->insert("log2SoftDecim", QJsonValue(log2_soft_decim)); + } + if(m_dc_block_isSet){ + obj->insert("dcBlock", QJsonValue(dc_block)); + } + if(m_iq_correction_isSet){ + obj->insert("iqCorrection", QJsonValue(iq_correction)); + } + if(m_rx_transverter_mode_isSet){ + obj->insert("rxTransverterMode", QJsonValue(rx_transverter_mode)); + } + if(m_rx_transverter_delta_frequency_isSet){ + obj->insert("rxTransverterDeltaFrequency", QJsonValue(rx_transverter_delta_frequency)); + } + if(m_nco_enable_rx_isSet){ + obj->insert("ncoEnableRx", QJsonValue(nco_enable_rx)); + } + if(m_nco_frequency_rx_isSet){ + obj->insert("ncoFrequencyRx", QJsonValue(nco_frequency_rx)); + } + if(m_lpf_bw_rx0_isSet){ + obj->insert("lpfBWRx0", QJsonValue(lpf_bw_rx0)); + } + if(m_lpf_fir_enable_rx0_isSet){ + obj->insert("lpfFIREnableRx0", QJsonValue(lpf_fir_enable_rx0)); + } + if(m_lpf_firbw_rx0_isSet){ + obj->insert("lpfFIRBWRx0", QJsonValue(lpf_firbw_rx0)); + } + if(m_gain_rx0_isSet){ + obj->insert("gainRx0", QJsonValue(gain_rx0)); + } + if(m_antenna_path_rx0_isSet){ + obj->insert("antennaPathRx0", QJsonValue(antenna_path_rx0)); + } + if(m_gain_mode_rx0_isSet){ + obj->insert("gainModeRx0", QJsonValue(gain_mode_rx0)); + } + if(m_lna_gain_rx0_isSet){ + obj->insert("lnaGainRx0", QJsonValue(lna_gain_rx0)); + } + if(m_tia_gain_rx0_isSet){ + obj->insert("tiaGainRx0", QJsonValue(tia_gain_rx0)); + } + if(m_pga_gain_rx0_isSet){ + obj->insert("pgaGainRx0", QJsonValue(pga_gain_rx0)); + } + if(m_lpf_bw_rx1_isSet){ + obj->insert("lpfBWRx1", QJsonValue(lpf_bw_rx1)); + } + if(m_lpf_fir_enable_rx1_isSet){ + obj->insert("lpfFIREnableRx1", QJsonValue(lpf_fir_enable_rx1)); + } + if(m_lpf_firbw_rx1_isSet){ + obj->insert("lpfFIRBWRx1", QJsonValue(lpf_firbw_rx1)); + } + if(m_gain_rx1_isSet){ + obj->insert("gainRx1", QJsonValue(gain_rx1)); + } + if(m_antenna_path_rx1_isSet){ + obj->insert("antennaPathRx1", QJsonValue(antenna_path_rx1)); + } + if(m_gain_mode_rx1_isSet){ + obj->insert("gainModeRx1", QJsonValue(gain_mode_rx1)); + } + if(m_lna_gain_rx1_isSet){ + obj->insert("lnaGainRx1", QJsonValue(lna_gain_rx1)); + } + if(m_tia_gain_rx1_isSet){ + obj->insert("tiaGainRx1", QJsonValue(tia_gain_rx1)); + } + if(m_pga_gain_rx1_isSet){ + obj->insert("pgaGainRx1", QJsonValue(pga_gain_rx1)); + } + if(m_tx_center_frequency_isSet){ + obj->insert("txCenterFrequency", QJsonValue(tx_center_frequency)); + } + if(m_log2_hard_interp_isSet){ + obj->insert("log2HardInterp", QJsonValue(log2_hard_interp)); + } + if(m_log2_soft_interp_isSet){ + obj->insert("log2SoftInterp", QJsonValue(log2_soft_interp)); + } + if(m_tx_transverter_mode_isSet){ + obj->insert("txTransverterMode", QJsonValue(tx_transverter_mode)); + } + if(m_tx_transverter_delta_frequency_isSet){ + obj->insert("txTransverterDeltaFrequency", QJsonValue(tx_transverter_delta_frequency)); + } + if(m_nco_enable_tx_isSet){ + obj->insert("ncoEnableTx", QJsonValue(nco_enable_tx)); + } + if(m_nco_frequency_tx_isSet){ + obj->insert("ncoFrequencyTx", QJsonValue(nco_frequency_tx)); + } + if(m_lpf_bw_tx0_isSet){ + obj->insert("lpfBWTx0", QJsonValue(lpf_bw_tx0)); + } + if(m_lpf_fir_enable_tx0_isSet){ + obj->insert("lpfFIREnableTx0", QJsonValue(lpf_fir_enable_tx0)); + } + if(m_lpf_firbw_tx0_isSet){ + obj->insert("lpfFIRBWTx0", QJsonValue(lpf_firbw_tx0)); + } + if(m_gain_tx0_isSet){ + obj->insert("gainTx0", QJsonValue(gain_tx0)); + } + if(m_antenna_path_tx0_isSet){ + obj->insert("antennaPathTx0", QJsonValue(antenna_path_tx0)); + } + if(m_lpf_bw_tx1_isSet){ + obj->insert("lpfBWTx1", QJsonValue(lpf_bw_tx1)); + } + if(m_lpf_fir_enable_tx1_isSet){ + obj->insert("lpfFIREnableTx1", QJsonValue(lpf_fir_enable_tx1)); + } + if(m_lpf_firbw_tx1_isSet){ + obj->insert("lpfFIRBWTx1", QJsonValue(lpf_firbw_tx1)); + } + if(m_gain_tx1_isSet){ + obj->insert("gainTx1", QJsonValue(gain_tx1)); + } + if(m_antenna_path_tx1_isSet){ + obj->insert("antennaPathTx1", QJsonValue(antenna_path_tx1)); + } + + return obj; +} + +qint32 +SWGLimeSdrMIMOSettings::getDevSampleRate() { + return dev_sample_rate; +} +void +SWGLimeSdrMIMOSettings::setDevSampleRate(qint32 dev_sample_rate) { + this->dev_sample_rate = dev_sample_rate; + this->m_dev_sample_rate_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getGpioDir() { + return gpio_dir; +} +void +SWGLimeSdrMIMOSettings::setGpioDir(qint32 gpio_dir) { + this->gpio_dir = gpio_dir; + this->m_gpio_dir_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getGpioPins() { + return gpio_pins; +} +void +SWGLimeSdrMIMOSettings::setGpioPins(qint32 gpio_pins) { + this->gpio_pins = gpio_pins; + this->m_gpio_pins_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getExtClock() { + return ext_clock; +} +void +SWGLimeSdrMIMOSettings::setExtClock(qint32 ext_clock) { + this->ext_clock = ext_clock; + this->m_ext_clock_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getExtClockFreq() { + return ext_clock_freq; +} +void +SWGLimeSdrMIMOSettings::setExtClockFreq(qint32 ext_clock_freq) { + this->ext_clock_freq = ext_clock_freq; + this->m_ext_clock_freq_isSet = true; +} + +QString* +SWGLimeSdrMIMOSettings::getFileRecordName() { + return file_record_name; +} +void +SWGLimeSdrMIMOSettings::setFileRecordName(QString* file_record_name) { + this->file_record_name = file_record_name; + this->m_file_record_name_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getUseReverseApi() { + return use_reverse_api; +} +void +SWGLimeSdrMIMOSettings::setUseReverseApi(qint32 use_reverse_api) { + this->use_reverse_api = use_reverse_api; + this->m_use_reverse_api_isSet = true; +} + +QString* +SWGLimeSdrMIMOSettings::getReverseApiAddress() { + return reverse_api_address; +} +void +SWGLimeSdrMIMOSettings::setReverseApiAddress(QString* reverse_api_address) { + this->reverse_api_address = reverse_api_address; + this->m_reverse_api_address_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getReverseApiPort() { + return reverse_api_port; +} +void +SWGLimeSdrMIMOSettings::setReverseApiPort(qint32 reverse_api_port) { + this->reverse_api_port = reverse_api_port; + this->m_reverse_api_port_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getReverseApiDeviceIndex() { + return reverse_api_device_index; +} +void +SWGLimeSdrMIMOSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) { + this->reverse_api_device_index = reverse_api_device_index; + this->m_reverse_api_device_index_isSet = true; +} + +qint64 +SWGLimeSdrMIMOSettings::getRxCenterFrequency() { + return rx_center_frequency; +} +void +SWGLimeSdrMIMOSettings::setRxCenterFrequency(qint64 rx_center_frequency) { + this->rx_center_frequency = rx_center_frequency; + this->m_rx_center_frequency_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getLog2HardDecim() { + return log2_hard_decim; +} +void +SWGLimeSdrMIMOSettings::setLog2HardDecim(qint32 log2_hard_decim) { + this->log2_hard_decim = log2_hard_decim; + this->m_log2_hard_decim_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getLog2SoftDecim() { + return log2_soft_decim; +} +void +SWGLimeSdrMIMOSettings::setLog2SoftDecim(qint32 log2_soft_decim) { + this->log2_soft_decim = log2_soft_decim; + this->m_log2_soft_decim_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getDcBlock() { + return dc_block; +} +void +SWGLimeSdrMIMOSettings::setDcBlock(qint32 dc_block) { + this->dc_block = dc_block; + this->m_dc_block_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getIqCorrection() { + return iq_correction; +} +void +SWGLimeSdrMIMOSettings::setIqCorrection(qint32 iq_correction) { + this->iq_correction = iq_correction; + this->m_iq_correction_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getRxTransverterMode() { + return rx_transverter_mode; +} +void +SWGLimeSdrMIMOSettings::setRxTransverterMode(qint32 rx_transverter_mode) { + this->rx_transverter_mode = rx_transverter_mode; + this->m_rx_transverter_mode_isSet = true; +} + +qint64 +SWGLimeSdrMIMOSettings::getRxTransverterDeltaFrequency() { + return rx_transverter_delta_frequency; +} +void +SWGLimeSdrMIMOSettings::setRxTransverterDeltaFrequency(qint64 rx_transverter_delta_frequency) { + this->rx_transverter_delta_frequency = rx_transverter_delta_frequency; + this->m_rx_transverter_delta_frequency_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getNcoEnableRx() { + return nco_enable_rx; +} +void +SWGLimeSdrMIMOSettings::setNcoEnableRx(qint32 nco_enable_rx) { + this->nco_enable_rx = nco_enable_rx; + this->m_nco_enable_rx_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getNcoFrequencyRx() { + return nco_frequency_rx; +} +void +SWGLimeSdrMIMOSettings::setNcoFrequencyRx(qint32 nco_frequency_rx) { + this->nco_frequency_rx = nco_frequency_rx; + this->m_nco_frequency_rx_isSet = true; +} + +float +SWGLimeSdrMIMOSettings::getLpfBwRx0() { + return lpf_bw_rx0; +} +void +SWGLimeSdrMIMOSettings::setLpfBwRx0(float lpf_bw_rx0) { + this->lpf_bw_rx0 = lpf_bw_rx0; + this->m_lpf_bw_rx0_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getLpfFirEnableRx0() { + return lpf_fir_enable_rx0; +} +void +SWGLimeSdrMIMOSettings::setLpfFirEnableRx0(qint32 lpf_fir_enable_rx0) { + this->lpf_fir_enable_rx0 = lpf_fir_enable_rx0; + this->m_lpf_fir_enable_rx0_isSet = true; +} + +float +SWGLimeSdrMIMOSettings::getLpfFirbwRx0() { + return lpf_firbw_rx0; +} +void +SWGLimeSdrMIMOSettings::setLpfFirbwRx0(float lpf_firbw_rx0) { + this->lpf_firbw_rx0 = lpf_firbw_rx0; + this->m_lpf_firbw_rx0_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getGainRx0() { + return gain_rx0; +} +void +SWGLimeSdrMIMOSettings::setGainRx0(qint32 gain_rx0) { + this->gain_rx0 = gain_rx0; + this->m_gain_rx0_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getAntennaPathRx0() { + return antenna_path_rx0; +} +void +SWGLimeSdrMIMOSettings::setAntennaPathRx0(qint32 antenna_path_rx0) { + this->antenna_path_rx0 = antenna_path_rx0; + this->m_antenna_path_rx0_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getGainModeRx0() { + return gain_mode_rx0; +} +void +SWGLimeSdrMIMOSettings::setGainModeRx0(qint32 gain_mode_rx0) { + this->gain_mode_rx0 = gain_mode_rx0; + this->m_gain_mode_rx0_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getLnaGainRx0() { + return lna_gain_rx0; +} +void +SWGLimeSdrMIMOSettings::setLnaGainRx0(qint32 lna_gain_rx0) { + this->lna_gain_rx0 = lna_gain_rx0; + this->m_lna_gain_rx0_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getTiaGainRx0() { + return tia_gain_rx0; +} +void +SWGLimeSdrMIMOSettings::setTiaGainRx0(qint32 tia_gain_rx0) { + this->tia_gain_rx0 = tia_gain_rx0; + this->m_tia_gain_rx0_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getPgaGainRx0() { + return pga_gain_rx0; +} +void +SWGLimeSdrMIMOSettings::setPgaGainRx0(qint32 pga_gain_rx0) { + this->pga_gain_rx0 = pga_gain_rx0; + this->m_pga_gain_rx0_isSet = true; +} + +float +SWGLimeSdrMIMOSettings::getLpfBwRx1() { + return lpf_bw_rx1; +} +void +SWGLimeSdrMIMOSettings::setLpfBwRx1(float lpf_bw_rx1) { + this->lpf_bw_rx1 = lpf_bw_rx1; + this->m_lpf_bw_rx1_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getLpfFirEnableRx1() { + return lpf_fir_enable_rx1; +} +void +SWGLimeSdrMIMOSettings::setLpfFirEnableRx1(qint32 lpf_fir_enable_rx1) { + this->lpf_fir_enable_rx1 = lpf_fir_enable_rx1; + this->m_lpf_fir_enable_rx1_isSet = true; +} + +float +SWGLimeSdrMIMOSettings::getLpfFirbwRx1() { + return lpf_firbw_rx1; +} +void +SWGLimeSdrMIMOSettings::setLpfFirbwRx1(float lpf_firbw_rx1) { + this->lpf_firbw_rx1 = lpf_firbw_rx1; + this->m_lpf_firbw_rx1_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getGainRx1() { + return gain_rx1; +} +void +SWGLimeSdrMIMOSettings::setGainRx1(qint32 gain_rx1) { + this->gain_rx1 = gain_rx1; + this->m_gain_rx1_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getAntennaPathRx1() { + return antenna_path_rx1; +} +void +SWGLimeSdrMIMOSettings::setAntennaPathRx1(qint32 antenna_path_rx1) { + this->antenna_path_rx1 = antenna_path_rx1; + this->m_antenna_path_rx1_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getGainModeRx1() { + return gain_mode_rx1; +} +void +SWGLimeSdrMIMOSettings::setGainModeRx1(qint32 gain_mode_rx1) { + this->gain_mode_rx1 = gain_mode_rx1; + this->m_gain_mode_rx1_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getLnaGainRx1() { + return lna_gain_rx1; +} +void +SWGLimeSdrMIMOSettings::setLnaGainRx1(qint32 lna_gain_rx1) { + this->lna_gain_rx1 = lna_gain_rx1; + this->m_lna_gain_rx1_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getTiaGainRx1() { + return tia_gain_rx1; +} +void +SWGLimeSdrMIMOSettings::setTiaGainRx1(qint32 tia_gain_rx1) { + this->tia_gain_rx1 = tia_gain_rx1; + this->m_tia_gain_rx1_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getPgaGainRx1() { + return pga_gain_rx1; +} +void +SWGLimeSdrMIMOSettings::setPgaGainRx1(qint32 pga_gain_rx1) { + this->pga_gain_rx1 = pga_gain_rx1; + this->m_pga_gain_rx1_isSet = true; +} + +qint64 +SWGLimeSdrMIMOSettings::getTxCenterFrequency() { + return tx_center_frequency; +} +void +SWGLimeSdrMIMOSettings::setTxCenterFrequency(qint64 tx_center_frequency) { + this->tx_center_frequency = tx_center_frequency; + this->m_tx_center_frequency_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getLog2HardInterp() { + return log2_hard_interp; +} +void +SWGLimeSdrMIMOSettings::setLog2HardInterp(qint32 log2_hard_interp) { + this->log2_hard_interp = log2_hard_interp; + this->m_log2_hard_interp_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getLog2SoftInterp() { + return log2_soft_interp; +} +void +SWGLimeSdrMIMOSettings::setLog2SoftInterp(qint32 log2_soft_interp) { + this->log2_soft_interp = log2_soft_interp; + this->m_log2_soft_interp_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getTxTransverterMode() { + return tx_transverter_mode; +} +void +SWGLimeSdrMIMOSettings::setTxTransverterMode(qint32 tx_transverter_mode) { + this->tx_transverter_mode = tx_transverter_mode; + this->m_tx_transverter_mode_isSet = true; +} + +qint64 +SWGLimeSdrMIMOSettings::getTxTransverterDeltaFrequency() { + return tx_transverter_delta_frequency; +} +void +SWGLimeSdrMIMOSettings::setTxTransverterDeltaFrequency(qint64 tx_transverter_delta_frequency) { + this->tx_transverter_delta_frequency = tx_transverter_delta_frequency; + this->m_tx_transverter_delta_frequency_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getNcoEnableTx() { + return nco_enable_tx; +} +void +SWGLimeSdrMIMOSettings::setNcoEnableTx(qint32 nco_enable_tx) { + this->nco_enable_tx = nco_enable_tx; + this->m_nco_enable_tx_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getNcoFrequencyTx() { + return nco_frequency_tx; +} +void +SWGLimeSdrMIMOSettings::setNcoFrequencyTx(qint32 nco_frequency_tx) { + this->nco_frequency_tx = nco_frequency_tx; + this->m_nco_frequency_tx_isSet = true; +} + +float +SWGLimeSdrMIMOSettings::getLpfBwTx0() { + return lpf_bw_tx0; +} +void +SWGLimeSdrMIMOSettings::setLpfBwTx0(float lpf_bw_tx0) { + this->lpf_bw_tx0 = lpf_bw_tx0; + this->m_lpf_bw_tx0_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getLpfFirEnableTx0() { + return lpf_fir_enable_tx0; +} +void +SWGLimeSdrMIMOSettings::setLpfFirEnableTx0(qint32 lpf_fir_enable_tx0) { + this->lpf_fir_enable_tx0 = lpf_fir_enable_tx0; + this->m_lpf_fir_enable_tx0_isSet = true; +} + +float +SWGLimeSdrMIMOSettings::getLpfFirbwTx0() { + return lpf_firbw_tx0; +} +void +SWGLimeSdrMIMOSettings::setLpfFirbwTx0(float lpf_firbw_tx0) { + this->lpf_firbw_tx0 = lpf_firbw_tx0; + this->m_lpf_firbw_tx0_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getGainTx0() { + return gain_tx0; +} +void +SWGLimeSdrMIMOSettings::setGainTx0(qint32 gain_tx0) { + this->gain_tx0 = gain_tx0; + this->m_gain_tx0_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getAntennaPathTx0() { + return antenna_path_tx0; +} +void +SWGLimeSdrMIMOSettings::setAntennaPathTx0(qint32 antenna_path_tx0) { + this->antenna_path_tx0 = antenna_path_tx0; + this->m_antenna_path_tx0_isSet = true; +} + +float +SWGLimeSdrMIMOSettings::getLpfBwTx1() { + return lpf_bw_tx1; +} +void +SWGLimeSdrMIMOSettings::setLpfBwTx1(float lpf_bw_tx1) { + this->lpf_bw_tx1 = lpf_bw_tx1; + this->m_lpf_bw_tx1_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getLpfFirEnableTx1() { + return lpf_fir_enable_tx1; +} +void +SWGLimeSdrMIMOSettings::setLpfFirEnableTx1(qint32 lpf_fir_enable_tx1) { + this->lpf_fir_enable_tx1 = lpf_fir_enable_tx1; + this->m_lpf_fir_enable_tx1_isSet = true; +} + +float +SWGLimeSdrMIMOSettings::getLpfFirbwTx1() { + return lpf_firbw_tx1; +} +void +SWGLimeSdrMIMOSettings::setLpfFirbwTx1(float lpf_firbw_tx1) { + this->lpf_firbw_tx1 = lpf_firbw_tx1; + this->m_lpf_firbw_tx1_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getGainTx1() { + return gain_tx1; +} +void +SWGLimeSdrMIMOSettings::setGainTx1(qint32 gain_tx1) { + this->gain_tx1 = gain_tx1; + this->m_gain_tx1_isSet = true; +} + +qint32 +SWGLimeSdrMIMOSettings::getAntennaPathTx1() { + return antenna_path_tx1; +} +void +SWGLimeSdrMIMOSettings::setAntennaPathTx1(qint32 antenna_path_tx1) { + this->antenna_path_tx1 = antenna_path_tx1; + this->m_antenna_path_tx1_isSet = true; +} + + +bool +SWGLimeSdrMIMOSettings::isSet(){ + bool isObjectUpdated = false; + do{ + if(m_dev_sample_rate_isSet){ + isObjectUpdated = true; break; + } + if(m_gpio_dir_isSet){ + isObjectUpdated = true; break; + } + if(m_gpio_pins_isSet){ + isObjectUpdated = true; break; + } + if(m_ext_clock_isSet){ + isObjectUpdated = true; break; + } + if(m_ext_clock_freq_isSet){ + isObjectUpdated = true; break; + } + if(file_record_name && *file_record_name != QString("")){ + isObjectUpdated = true; break; + } + if(m_use_reverse_api_isSet){ + isObjectUpdated = true; break; + } + if(reverse_api_address && *reverse_api_address != QString("")){ + isObjectUpdated = true; break; + } + if(m_reverse_api_port_isSet){ + isObjectUpdated = true; break; + } + if(m_reverse_api_device_index_isSet){ + isObjectUpdated = true; break; + } + if(m_rx_center_frequency_isSet){ + isObjectUpdated = true; break; + } + if(m_log2_hard_decim_isSet){ + isObjectUpdated = true; break; + } + if(m_log2_soft_decim_isSet){ + isObjectUpdated = true; break; + } + if(m_dc_block_isSet){ + isObjectUpdated = true; break; + } + if(m_iq_correction_isSet){ + isObjectUpdated = true; break; + } + if(m_rx_transverter_mode_isSet){ + isObjectUpdated = true; break; + } + if(m_rx_transverter_delta_frequency_isSet){ + isObjectUpdated = true; break; + } + if(m_nco_enable_rx_isSet){ + isObjectUpdated = true; break; + } + if(m_nco_frequency_rx_isSet){ + isObjectUpdated = true; break; + } + if(m_lpf_bw_rx0_isSet){ + isObjectUpdated = true; break; + } + if(m_lpf_fir_enable_rx0_isSet){ + isObjectUpdated = true; break; + } + if(m_lpf_firbw_rx0_isSet){ + isObjectUpdated = true; break; + } + if(m_gain_rx0_isSet){ + isObjectUpdated = true; break; + } + if(m_antenna_path_rx0_isSet){ + isObjectUpdated = true; break; + } + if(m_gain_mode_rx0_isSet){ + isObjectUpdated = true; break; + } + if(m_lna_gain_rx0_isSet){ + isObjectUpdated = true; break; + } + if(m_tia_gain_rx0_isSet){ + isObjectUpdated = true; break; + } + if(m_pga_gain_rx0_isSet){ + isObjectUpdated = true; break; + } + if(m_lpf_bw_rx1_isSet){ + isObjectUpdated = true; break; + } + if(m_lpf_fir_enable_rx1_isSet){ + isObjectUpdated = true; break; + } + if(m_lpf_firbw_rx1_isSet){ + isObjectUpdated = true; break; + } + if(m_gain_rx1_isSet){ + isObjectUpdated = true; break; + } + if(m_antenna_path_rx1_isSet){ + isObjectUpdated = true; break; + } + if(m_gain_mode_rx1_isSet){ + isObjectUpdated = true; break; + } + if(m_lna_gain_rx1_isSet){ + isObjectUpdated = true; break; + } + if(m_tia_gain_rx1_isSet){ + isObjectUpdated = true; break; + } + if(m_pga_gain_rx1_isSet){ + isObjectUpdated = true; break; + } + if(m_tx_center_frequency_isSet){ + isObjectUpdated = true; break; + } + if(m_log2_hard_interp_isSet){ + isObjectUpdated = true; break; + } + if(m_log2_soft_interp_isSet){ + isObjectUpdated = true; break; + } + if(m_tx_transverter_mode_isSet){ + isObjectUpdated = true; break; + } + if(m_tx_transverter_delta_frequency_isSet){ + isObjectUpdated = true; break; + } + if(m_nco_enable_tx_isSet){ + isObjectUpdated = true; break; + } + if(m_nco_frequency_tx_isSet){ + isObjectUpdated = true; break; + } + if(m_lpf_bw_tx0_isSet){ + isObjectUpdated = true; break; + } + if(m_lpf_fir_enable_tx0_isSet){ + isObjectUpdated = true; break; + } + if(m_lpf_firbw_tx0_isSet){ + isObjectUpdated = true; break; + } + if(m_gain_tx0_isSet){ + isObjectUpdated = true; break; + } + if(m_antenna_path_tx0_isSet){ + isObjectUpdated = true; break; + } + if(m_lpf_bw_tx1_isSet){ + isObjectUpdated = true; break; + } + if(m_lpf_fir_enable_tx1_isSet){ + isObjectUpdated = true; break; + } + if(m_lpf_firbw_tx1_isSet){ + isObjectUpdated = true; break; + } + if(m_gain_tx1_isSet){ + isObjectUpdated = true; break; + } + if(m_antenna_path_tx1_isSet){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGLimeSdrMIMOSettings.h b/swagger/sdrangel/code/qt5/client/SWGLimeSdrMIMOSettings.h new file mode 100644 index 000000000..55112c11b --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGLimeSdrMIMOSettings.h @@ -0,0 +1,377 @@ +/** + * SDRangel + * This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 5.3.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGLimeSdrMIMOSettings.h + * + * LimeSDR + */ + +#ifndef SWGLimeSdrMIMOSettings_H_ +#define SWGLimeSdrMIMOSettings_H_ + +#include + + +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGLimeSdrMIMOSettings: public SWGObject { +public: + SWGLimeSdrMIMOSettings(); + SWGLimeSdrMIMOSettings(QString* json); + virtual ~SWGLimeSdrMIMOSettings(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGLimeSdrMIMOSettings* fromJson(QString &jsonString) override; + + qint32 getDevSampleRate(); + void setDevSampleRate(qint32 dev_sample_rate); + + qint32 getGpioDir(); + void setGpioDir(qint32 gpio_dir); + + qint32 getGpioPins(); + void setGpioPins(qint32 gpio_pins); + + qint32 getExtClock(); + void setExtClock(qint32 ext_clock); + + qint32 getExtClockFreq(); + void setExtClockFreq(qint32 ext_clock_freq); + + QString* getFileRecordName(); + void setFileRecordName(QString* file_record_name); + + qint32 getUseReverseApi(); + void setUseReverseApi(qint32 use_reverse_api); + + QString* getReverseApiAddress(); + void setReverseApiAddress(QString* reverse_api_address); + + qint32 getReverseApiPort(); + void setReverseApiPort(qint32 reverse_api_port); + + qint32 getReverseApiDeviceIndex(); + void setReverseApiDeviceIndex(qint32 reverse_api_device_index); + + qint64 getRxCenterFrequency(); + void setRxCenterFrequency(qint64 rx_center_frequency); + + qint32 getLog2HardDecim(); + void setLog2HardDecim(qint32 log2_hard_decim); + + qint32 getLog2SoftDecim(); + void setLog2SoftDecim(qint32 log2_soft_decim); + + qint32 getDcBlock(); + void setDcBlock(qint32 dc_block); + + qint32 getIqCorrection(); + void setIqCorrection(qint32 iq_correction); + + qint32 getRxTransverterMode(); + void setRxTransverterMode(qint32 rx_transverter_mode); + + qint64 getRxTransverterDeltaFrequency(); + void setRxTransverterDeltaFrequency(qint64 rx_transverter_delta_frequency); + + qint32 getNcoEnableRx(); + void setNcoEnableRx(qint32 nco_enable_rx); + + qint32 getNcoFrequencyRx(); + void setNcoFrequencyRx(qint32 nco_frequency_rx); + + float getLpfBwRx0(); + void setLpfBwRx0(float lpf_bw_rx0); + + qint32 getLpfFirEnableRx0(); + void setLpfFirEnableRx0(qint32 lpf_fir_enable_rx0); + + float getLpfFirbwRx0(); + void setLpfFirbwRx0(float lpf_firbw_rx0); + + qint32 getGainRx0(); + void setGainRx0(qint32 gain_rx0); + + qint32 getAntennaPathRx0(); + void setAntennaPathRx0(qint32 antenna_path_rx0); + + qint32 getGainModeRx0(); + void setGainModeRx0(qint32 gain_mode_rx0); + + qint32 getLnaGainRx0(); + void setLnaGainRx0(qint32 lna_gain_rx0); + + qint32 getTiaGainRx0(); + void setTiaGainRx0(qint32 tia_gain_rx0); + + qint32 getPgaGainRx0(); + void setPgaGainRx0(qint32 pga_gain_rx0); + + float getLpfBwRx1(); + void setLpfBwRx1(float lpf_bw_rx1); + + qint32 getLpfFirEnableRx1(); + void setLpfFirEnableRx1(qint32 lpf_fir_enable_rx1); + + float getLpfFirbwRx1(); + void setLpfFirbwRx1(float lpf_firbw_rx1); + + qint32 getGainRx1(); + void setGainRx1(qint32 gain_rx1); + + qint32 getAntennaPathRx1(); + void setAntennaPathRx1(qint32 antenna_path_rx1); + + qint32 getGainModeRx1(); + void setGainModeRx1(qint32 gain_mode_rx1); + + qint32 getLnaGainRx1(); + void setLnaGainRx1(qint32 lna_gain_rx1); + + qint32 getTiaGainRx1(); + void setTiaGainRx1(qint32 tia_gain_rx1); + + qint32 getPgaGainRx1(); + void setPgaGainRx1(qint32 pga_gain_rx1); + + qint64 getTxCenterFrequency(); + void setTxCenterFrequency(qint64 tx_center_frequency); + + qint32 getLog2HardInterp(); + void setLog2HardInterp(qint32 log2_hard_interp); + + qint32 getLog2SoftInterp(); + void setLog2SoftInterp(qint32 log2_soft_interp); + + qint32 getTxTransverterMode(); + void setTxTransverterMode(qint32 tx_transverter_mode); + + qint64 getTxTransverterDeltaFrequency(); + void setTxTransverterDeltaFrequency(qint64 tx_transverter_delta_frequency); + + qint32 getNcoEnableTx(); + void setNcoEnableTx(qint32 nco_enable_tx); + + qint32 getNcoFrequencyTx(); + void setNcoFrequencyTx(qint32 nco_frequency_tx); + + float getLpfBwTx0(); + void setLpfBwTx0(float lpf_bw_tx0); + + qint32 getLpfFirEnableTx0(); + void setLpfFirEnableTx0(qint32 lpf_fir_enable_tx0); + + float getLpfFirbwTx0(); + void setLpfFirbwTx0(float lpf_firbw_tx0); + + qint32 getGainTx0(); + void setGainTx0(qint32 gain_tx0); + + qint32 getAntennaPathTx0(); + void setAntennaPathTx0(qint32 antenna_path_tx0); + + float getLpfBwTx1(); + void setLpfBwTx1(float lpf_bw_tx1); + + qint32 getLpfFirEnableTx1(); + void setLpfFirEnableTx1(qint32 lpf_fir_enable_tx1); + + float getLpfFirbwTx1(); + void setLpfFirbwTx1(float lpf_firbw_tx1); + + qint32 getGainTx1(); + void setGainTx1(qint32 gain_tx1); + + qint32 getAntennaPathTx1(); + void setAntennaPathTx1(qint32 antenna_path_tx1); + + + virtual bool isSet() override; + +private: + qint32 dev_sample_rate; + bool m_dev_sample_rate_isSet; + + qint32 gpio_dir; + bool m_gpio_dir_isSet; + + qint32 gpio_pins; + bool m_gpio_pins_isSet; + + qint32 ext_clock; + bool m_ext_clock_isSet; + + qint32 ext_clock_freq; + bool m_ext_clock_freq_isSet; + + QString* file_record_name; + bool m_file_record_name_isSet; + + qint32 use_reverse_api; + bool m_use_reverse_api_isSet; + + QString* reverse_api_address; + bool m_reverse_api_address_isSet; + + qint32 reverse_api_port; + bool m_reverse_api_port_isSet; + + qint32 reverse_api_device_index; + bool m_reverse_api_device_index_isSet; + + qint64 rx_center_frequency; + bool m_rx_center_frequency_isSet; + + qint32 log2_hard_decim; + bool m_log2_hard_decim_isSet; + + qint32 log2_soft_decim; + bool m_log2_soft_decim_isSet; + + qint32 dc_block; + bool m_dc_block_isSet; + + qint32 iq_correction; + bool m_iq_correction_isSet; + + qint32 rx_transverter_mode; + bool m_rx_transverter_mode_isSet; + + qint64 rx_transverter_delta_frequency; + bool m_rx_transverter_delta_frequency_isSet; + + qint32 nco_enable_rx; + bool m_nco_enable_rx_isSet; + + qint32 nco_frequency_rx; + bool m_nco_frequency_rx_isSet; + + float lpf_bw_rx0; + bool m_lpf_bw_rx0_isSet; + + qint32 lpf_fir_enable_rx0; + bool m_lpf_fir_enable_rx0_isSet; + + float lpf_firbw_rx0; + bool m_lpf_firbw_rx0_isSet; + + qint32 gain_rx0; + bool m_gain_rx0_isSet; + + qint32 antenna_path_rx0; + bool m_antenna_path_rx0_isSet; + + qint32 gain_mode_rx0; + bool m_gain_mode_rx0_isSet; + + qint32 lna_gain_rx0; + bool m_lna_gain_rx0_isSet; + + qint32 tia_gain_rx0; + bool m_tia_gain_rx0_isSet; + + qint32 pga_gain_rx0; + bool m_pga_gain_rx0_isSet; + + float lpf_bw_rx1; + bool m_lpf_bw_rx1_isSet; + + qint32 lpf_fir_enable_rx1; + bool m_lpf_fir_enable_rx1_isSet; + + float lpf_firbw_rx1; + bool m_lpf_firbw_rx1_isSet; + + qint32 gain_rx1; + bool m_gain_rx1_isSet; + + qint32 antenna_path_rx1; + bool m_antenna_path_rx1_isSet; + + qint32 gain_mode_rx1; + bool m_gain_mode_rx1_isSet; + + qint32 lna_gain_rx1; + bool m_lna_gain_rx1_isSet; + + qint32 tia_gain_rx1; + bool m_tia_gain_rx1_isSet; + + qint32 pga_gain_rx1; + bool m_pga_gain_rx1_isSet; + + qint64 tx_center_frequency; + bool m_tx_center_frequency_isSet; + + qint32 log2_hard_interp; + bool m_log2_hard_interp_isSet; + + qint32 log2_soft_interp; + bool m_log2_soft_interp_isSet; + + qint32 tx_transverter_mode; + bool m_tx_transverter_mode_isSet; + + qint64 tx_transverter_delta_frequency; + bool m_tx_transverter_delta_frequency_isSet; + + qint32 nco_enable_tx; + bool m_nco_enable_tx_isSet; + + qint32 nco_frequency_tx; + bool m_nco_frequency_tx_isSet; + + float lpf_bw_tx0; + bool m_lpf_bw_tx0_isSet; + + qint32 lpf_fir_enable_tx0; + bool m_lpf_fir_enable_tx0_isSet; + + float lpf_firbw_tx0; + bool m_lpf_firbw_tx0_isSet; + + qint32 gain_tx0; + bool m_gain_tx0_isSet; + + qint32 antenna_path_tx0; + bool m_antenna_path_tx0_isSet; + + float lpf_bw_tx1; + bool m_lpf_bw_tx1_isSet; + + qint32 lpf_fir_enable_tx1; + bool m_lpf_fir_enable_tx1_isSet; + + float lpf_firbw_tx1; + bool m_lpf_firbw_tx1_isSet; + + qint32 gain_tx1; + bool m_gain_tx1_isSet; + + qint32 antenna_path_tx1; + bool m_antenna_path_tx1_isSet; + +}; + +} + +#endif /* SWGLimeSdrMIMOSettings_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGModelFactory.h b/swagger/sdrangel/code/qt5/client/SWGModelFactory.h index 6b5d90e8f..ae9f99628 100644 --- a/swagger/sdrangel/code/qt5/client/SWGModelFactory.h +++ b/swagger/sdrangel/code/qt5/client/SWGModelFactory.h @@ -115,6 +115,8 @@ #include "SWGLimeSdrInputActions.h" #include "SWGLimeSdrInputReport.h" #include "SWGLimeSdrInputSettings.h" +#include "SWGLimeSdrMIMOReport.h" +#include "SWGLimeSdrMIMOSettings.h" #include "SWGLimeSdrOutputReport.h" #include "SWGLimeSdrOutputSettings.h" #include "SWGLocalInputActions.h" @@ -508,6 +510,12 @@ namespace SWGSDRangel { if(QString("SWGLimeSdrInputSettings").compare(type) == 0) { return new SWGLimeSdrInputSettings(); } + if(QString("SWGLimeSdrMIMOReport").compare(type) == 0) { + return new SWGLimeSdrMIMOReport(); + } + if(QString("SWGLimeSdrMIMOSettings").compare(type) == 0) { + return new SWGLimeSdrMIMOSettings(); + } if(QString("SWGLimeSdrOutputReport").compare(type) == 0) { return new SWGLimeSdrOutputReport(); }