From 475ee686676a0dd2777a1bbcf33321f1538eb9b7 Mon Sep 17 00:00:00 2001 From: f4exb Date: Tue, 10 Nov 2020 22:55:36 +0100 Subject: [PATCH] LimeSDR MIMO: REST API --- sdrbase/resources/webapi/doc/html2/index.html | 228 ++- .../doc/swagger/include/DeviceSettings.yaml | 2 + .../webapi/doc/swagger/include/LimeSdr.yaml | 207 +++ sdrbase/webapi/webapirequestmapper.cpp | 20 +- .../api/swagger/include/DeviceSettings.yaml | 2 + .../sdrangel/api/swagger/include/LimeSdr.yaml | 207 +++ swagger/sdrangel/code/html2/index.html | 228 ++- .../code/qt5/client/SWGDeviceSettings.cpp | 25 + .../code/qt5/client/SWGDeviceSettings.h | 7 + .../qt5/client/SWGLimeSdrMIMOSettings.cpp | 1329 +++++++++++++++++ .../code/qt5/client/SWGLimeSdrMIMOSettings.h | 377 +++++ .../code/qt5/client/SWGModelFactory.h | 4 + 12 files changed, 2633 insertions(+), 3 deletions(-) create mode 100644 swagger/sdrangel/code/qt5/client/SWGLimeSdrMIMOSettings.cpp create mode 100644 swagger/sdrangel/code/qt5/client/SWGLimeSdrMIMOSettings.h diff --git a/sdrbase/resources/webapi/doc/html2/index.html b/sdrbase/resources/webapi/doc/html2/index.html index a26c78484..a3d8883c0 100644 --- a/sdrbase/resources/webapi/doc/html2/index.html +++ b/sdrbase/resources/webapi/doc/html2/index.html @@ -3633,6 +3633,9 @@ margin-bottom: 20px; "limeSdrOutputSettings" : { "$ref" : "#/definitions/LimeSdrOutputSettings" }, + "limeSdrMIMOSettings" : { + "$ref" : "#/definitions/LimeSdrMIMOSettings" + }, "localInputSettings" : { "$ref" : "#/definitions/LocalInputSettings" }, @@ -5458,6 +5461,229 @@ margin-bottom: 20px; } }, "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" + }, + "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" + }, + "iqOrder" : { + "type" : "integer", + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + }, + "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" : { @@ -41149,7 +41375,7 @@ except ApiException as e:
- Generated 2020-11-10T21:31:22.328+01:00 + Generated 2020-11-10T22:27:11.499+01:00
diff --git a/sdrbase/resources/webapi/doc/swagger/include/DeviceSettings.yaml b/sdrbase/resources/webapi/doc/swagger/include/DeviceSettings.yaml index fdeaab6a4..38540cb36 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/DeviceSettings.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/DeviceSettings.yaml @@ -46,6 +46,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 547b7758a..aa29cbbd0 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/LimeSdr.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/LimeSdr.yaml @@ -118,6 +118,213 @@ 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 + 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 + iqOrder: + type: integer + description: > + IQ samples order + * 0 - Q then I (swapped) + * 1 - I then Q (straight) + 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: diff --git a/sdrbase/webapi/webapirequestmapper.cpp b/sdrbase/webapi/webapirequestmapper.cpp index 40e86e28b..3338fc162 100644 --- a/sdrbase/webapi/webapirequestmapper.cpp +++ b/sdrbase/webapi/webapirequestmapper.cpp @@ -3835,11 +3835,20 @@ bool WebAPIRequestMapper::getDeviceSettings( deviceSettings->setBladeRf2InputSettings(new SWGSDRangel::SWGBladeRF2InputSettings()); deviceSettings->getBladeRf2InputSettings()->fromJsonObject(settingsJsonObject); } - else if (deviceSettingsKey == "bladeRF2InputSettings") + else if (deviceSettingsKey == "bladeRF2OutputSettings") { deviceSettings->setBladeRf2OutputSettings(new SWGSDRangel::SWGBladeRF2OutputSettings()); deviceSettings->getBladeRf2OutputSettings()->fromJsonObject(settingsJsonObject); } + else if (deviceSettingsKey == "bladeRF2MIMOSettings") + { + if (deviceSettingsKeys.contains("streams") && settingsJsonObject["streams"].isArray()) { + appendSettingsArrayKeys(settingsJsonObject, "streams", deviceSettingsKeys); + } + + deviceSettings->setBladeRf2MimoSettings(new SWGSDRangel::SWGBladeRF2MIMOSettings()); + deviceSettings->getBladeRf2MimoSettings()->fromJsonObject(settingsJsonObject); + } else if (deviceSettingsKey == "fcdProSettings") { deviceSettings->setFcdProSettings(new SWGSDRangel::SWGFCDProSettings()); @@ -3880,6 +3889,15 @@ bool WebAPIRequestMapper::getDeviceSettings( deviceSettings->setLimeSdrOutputSettings(new SWGSDRangel::SWGLimeSdrOutputSettings()); deviceSettings->getLimeSdrOutputSettings()->fromJsonObject(settingsJsonObject); } + else if (deviceSettingsKey == "limeSdrMIMOSettings") + { + if (deviceSettingsKeys.contains("streams") && settingsJsonObject["streams"].isArray()) { + appendSettingsArrayKeys(settingsJsonObject, "streams", deviceSettingsKeys); + } + + deviceSettings->setLimeSdrMimoSettings(new SWGSDRangel::SWGLimeSdrMIMOSettings()); + deviceSettings->getLimeSdrMimoSettings()->fromJsonObject(settingsJsonObject); + } else if (deviceSettingsKey == "perseusSettings") { deviceSettings->setPerseusSettings(new SWGSDRangel::SWGPerseusSettings()); diff --git a/swagger/sdrangel/api/swagger/include/DeviceSettings.yaml b/swagger/sdrangel/api/swagger/include/DeviceSettings.yaml index 23dcfd483..7ba6828cb 100644 --- a/swagger/sdrangel/api/swagger/include/DeviceSettings.yaml +++ b/swagger/sdrangel/api/swagger/include/DeviceSettings.yaml @@ -46,6 +46,8 @@ DeviceSettings: $ref: "http://swgserver:8081/api/swagger/include/LimeSdr.yaml#/LimeSdrInputSettings" limeSdrOutputSettings: $ref: "http://swgserver:8081/api/swagger/include/LimeSdr.yaml#/LimeSdrOutputSettings" + limeSdrMIMOSettings: + $ref: "http://swgserver:8081/api/swagger/include/LimeSdr.yaml#/LimeSdrMIMOSettings" localInputSettings: $ref: "http://swgserver: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 547b7758a..aa29cbbd0 100644 --- a/swagger/sdrangel/api/swagger/include/LimeSdr.yaml +++ b/swagger/sdrangel/api/swagger/include/LimeSdr.yaml @@ -118,6 +118,213 @@ 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 + 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 + iqOrder: + type: integer + description: > + IQ samples order + * 0 - Q then I (swapped) + * 1 - I then Q (straight) + 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: diff --git a/swagger/sdrangel/code/html2/index.html b/swagger/sdrangel/code/html2/index.html index a26c78484..a3d8883c0 100644 --- a/swagger/sdrangel/code/html2/index.html +++ b/swagger/sdrangel/code/html2/index.html @@ -3633,6 +3633,9 @@ margin-bottom: 20px; "limeSdrOutputSettings" : { "$ref" : "#/definitions/LimeSdrOutputSettings" }, + "limeSdrMIMOSettings" : { + "$ref" : "#/definitions/LimeSdrMIMOSettings" + }, "localInputSettings" : { "$ref" : "#/definitions/LocalInputSettings" }, @@ -5458,6 +5461,229 @@ margin-bottom: 20px; } }, "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" + }, + "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" + }, + "iqOrder" : { + "type" : "integer", + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + }, + "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" : { @@ -41149,7 +41375,7 @@ except ApiException as e:
- Generated 2020-11-10T21:31:22.328+01:00 + Generated 2020-11-10T22:27:11.499+01:00
diff --git a/swagger/sdrangel/code/qt5/client/SWGDeviceSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGDeviceSettings.cpp index c7997f8c5..1a2fb23ac 100644 --- a/swagger/sdrangel/code/qt5/client/SWGDeviceSettings.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGDeviceSettings.cpp @@ -66,6 +66,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; @@ -150,6 +152,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(); @@ -245,6 +249,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; } @@ -353,6 +360,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"); @@ -464,6 +473,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")); } @@ -715,6 +727,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; @@ -967,6 +989,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 0d96e61e6..a553fc75d 100644 --- a/swagger/sdrangel/code/qt5/client/SWGDeviceSettings.h +++ b/swagger/sdrangel/code/qt5/client/SWGDeviceSettings.h @@ -37,6 +37,7 @@ #include "SWGHackRFOutputSettings.h" #include "SWGKiwiSDRSettings.h" #include "SWGLimeSdrInputSettings.h" +#include "SWGLimeSdrMIMOSettings.h" #include "SWGLimeSdrOutputSettings.h" #include "SWGLocalInputSettings.h" #include "SWGLocalOutputSettings.h" @@ -134,6 +135,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); @@ -252,6 +256,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/SWGLimeSdrMIMOSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGLimeSdrMIMOSettings.cpp new file mode 100644 index 000000000..655043185 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGLimeSdrMIMOSettings.cpp @@ -0,0 +1,1329 @@ +/** + * 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, USRP 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: 4.15.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; + 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; + iq_order = 0; + m_iq_order_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; + 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; + iq_order = 0; + m_iq_order_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(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(&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(&iq_order, pJson["iqOrder"], "qint32", ""); + + ::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(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_iq_order_isSet){ + obj->insert("iqOrder", QJsonValue(iq_order)); + } + 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; +} + +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::getIqOrder() { + return iq_order; +} +void +SWGLimeSdrMIMOSettings::setIqOrder(qint32 iq_order) { + this->iq_order = iq_order; + this->m_iq_order_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(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_iq_order_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..68b9b0341 --- /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, USRP 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: 4.15.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); + + 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 getIqOrder(); + void setIqOrder(qint32 iq_order); + + 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; + + 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 iq_order; + bool m_iq_order_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 c821bfdfa..fd1118fdd 100644 --- a/swagger/sdrangel/code/qt5/client/SWGModelFactory.h +++ b/swagger/sdrangel/code/qt5/client/SWGModelFactory.h @@ -130,6 +130,7 @@ #include "SWGLimeRFESettings.h" #include "SWGLimeSdrInputReport.h" #include "SWGLimeSdrInputSettings.h" +#include "SWGLimeSdrMIMOSettings.h" #include "SWGLimeSdrOutputReport.h" #include "SWGLimeSdrOutputSettings.h" #include "SWGLocalInputReport.h" @@ -575,6 +576,9 @@ namespace SWGSDRangel { if(QString("SWGLimeSdrInputSettings").compare(type) == 0) { return new SWGLimeSdrInputSettings(); } + if(QString("SWGLimeSdrMIMOSettings").compare(type) == 0) { + return new SWGLimeSdrMIMOSettings(); + } if(QString("SWGLimeSdrOutputReport").compare(type) == 0) { return new SWGLimeSdrOutputReport(); }