mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 01:55:48 -05:00
XTRX MIMO: REST API
This commit is contained in:
parent
085c3150d4
commit
a12cbec658
@ -3528,6 +3528,9 @@ margin-bottom: 20px;
|
|||||||
},
|
},
|
||||||
"xtrxOutputReport" : {
|
"xtrxOutputReport" : {
|
||||||
"$ref" : "#/definitions/XtrxOutputReport"
|
"$ref" : "#/definitions/XtrxOutputReport"
|
||||||
|
},
|
||||||
|
"xtrxMIMOReport" : {
|
||||||
|
"$ref" : "#/definitions/XtrxMIMOReport"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"description" : "Base device report. Only the device report corresponding to the device specified in the deviceHwType is or should be present."
|
"description" : "Base device report. Only the device report corresponding to the device specified in the deviceHwType is or should be present."
|
||||||
@ -3695,6 +3698,9 @@ margin-bottom: 20px;
|
|||||||
},
|
},
|
||||||
"xtrxOutputSettings" : {
|
"xtrxOutputSettings" : {
|
||||||
"$ref" : "#/definitions/XtrxOutputSettings"
|
"$ref" : "#/definitions/XtrxOutputSettings"
|
||||||
|
},
|
||||||
|
"xtrxMIMOSettings" : {
|
||||||
|
"$ref" : "#/definitions/XtrxMIMOSettings"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"description" : "Base device settings. Only the device settings corresponding to the device specified in the deviceHwType field is or should be present."
|
"description" : "Base device settings. Only the device settings corresponding to the device specified in the deviceHwType field is or should be present."
|
||||||
@ -9459,6 +9465,219 @@ margin-bottom: 20px;
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"description" : "XTRX"
|
"description" : "XTRX"
|
||||||
|
};
|
||||||
|
defs.XtrxMIMOReport = {
|
||||||
|
"properties" : {
|
||||||
|
"success" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "1 if info was successfully retrieved else 0"
|
||||||
|
},
|
||||||
|
"fifoSize" : {
|
||||||
|
"type" : "integer"
|
||||||
|
},
|
||||||
|
"fifoFillRx" : {
|
||||||
|
"type" : "integer"
|
||||||
|
},
|
||||||
|
"fifoFillTx" : {
|
||||||
|
"type" : "integer"
|
||||||
|
},
|
||||||
|
"temperature" : {
|
||||||
|
"type" : "number",
|
||||||
|
"format" : "float"
|
||||||
|
},
|
||||||
|
"gpsLock" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "1 if GPSDO is locked else 0"
|
||||||
|
},
|
||||||
|
"actualInputRate" : {
|
||||||
|
"type" : "integer"
|
||||||
|
},
|
||||||
|
"actualOutputRate" : {
|
||||||
|
"type" : "integer"
|
||||||
|
},
|
||||||
|
"clockGenRate" : {
|
||||||
|
"type" : "integer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description" : "XTRX"
|
||||||
|
};
|
||||||
|
defs.XtrxMIMOSettings = {
|
||||||
|
"properties" : {
|
||||||
|
"extClock" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Boolean 1 if external clock source else 0"
|
||||||
|
},
|
||||||
|
"extClockFreq" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Frequency (Hz) of external clock source"
|
||||||
|
},
|
||||||
|
"gpioDir" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "8 bit GPIO pin direction LSB first 0 input, 1 output"
|
||||||
|
},
|
||||||
|
"gpioPins" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "8 bit GPIO pins to write LSB first"
|
||||||
|
},
|
||||||
|
"useReverseAPI" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Boolean 1 use 0 do not use reverse API"
|
||||||
|
},
|
||||||
|
"reverseAPIAddress" : {
|
||||||
|
"type" : "string",
|
||||||
|
"description" : "IPv4 address"
|
||||||
|
},
|
||||||
|
"reverseAPIPort" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Network port from 1024 to 65535"
|
||||||
|
},
|
||||||
|
"reverseAPIDeviceIndex" : {
|
||||||
|
"type" : "integer"
|
||||||
|
},
|
||||||
|
"rxDevSampleRate" : {
|
||||||
|
"type" : "integer"
|
||||||
|
},
|
||||||
|
"log2HardDecim" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "0 is automatic then 1 to 6 is log2 of hardware decimation"
|
||||||
|
},
|
||||||
|
"log2SoftDecim" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "log2 of software decimation factor from 0 to 6"
|
||||||
|
},
|
||||||
|
"rxCenterFrequency" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"format" : "int64"
|
||||||
|
},
|
||||||
|
"dcBlock" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Software DC blocking (1 for yes, 0 for no)"
|
||||||
|
},
|
||||||
|
"iqCorrection" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Software IQ imbalance correction (1 for yes, 0 for no)"
|
||||||
|
},
|
||||||
|
"ncoEnableRx" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Enable TSP NCO Rx on both channels and mixing (1 for yes, 0 for no)"
|
||||||
|
},
|
||||||
|
"ncoFrequencyRx" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Rx frequency shift from LO for both channels"
|
||||||
|
},
|
||||||
|
"antennaPathRx" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Antenna selected (enum value from XTRXMIMOSettings::RxAntenna):\n * 0 - RXANT_LO low range\n * 1 - RXANT_WI wide range\n * 2 - RXANT_HI high range\n"
|
||||||
|
},
|
||||||
|
"iqOrder" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n"
|
||||||
|
},
|
||||||
|
"lpfBWRx0" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "LMS analog lowpass filter bandwidth (Hz) for Rx channel 0"
|
||||||
|
},
|
||||||
|
"gainRx0" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Optimally distributed gain (dB) for Rx channel 0"
|
||||||
|
},
|
||||||
|
"gainModeRx0" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Gain mode (XTRXMIMOSettings::GainMode) for Rx channel 0:\n * 0 - GAIN_AUTO automatic\n * 1 - GAIN_MANUAL manual\n"
|
||||||
|
},
|
||||||
|
"lnaGainRx0" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Manual LNA gain (dB) for Rx channel 0"
|
||||||
|
},
|
||||||
|
"tiaGainRx0" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Manual TIA gain (dB) for Rx channel 0"
|
||||||
|
},
|
||||||
|
"pgaGainRx0" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Manual PGA gain (dB) for Rx channel 0"
|
||||||
|
},
|
||||||
|
"pwrmodeRx0" : {
|
||||||
|
"type" : "integer"
|
||||||
|
},
|
||||||
|
"lpfBWRx1" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "LMS analog lowpass filter bandwidth (Hz) for Rx channel 1"
|
||||||
|
},
|
||||||
|
"gainRx1" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Optimally distributed gain (dB) for Rx channel 1"
|
||||||
|
},
|
||||||
|
"gainModeRx1" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Gain mode (XTRXMIMOSettings::GainMode) for Rx channel 1:\n * 0 - GAIN_AUTO automatic\n * 1 - GAIN_MANUAL manual\n"
|
||||||
|
},
|
||||||
|
"lnaGainRx1" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Manual LNA gain (dB) for Rx channel 1"
|
||||||
|
},
|
||||||
|
"tiaGainRx1" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Manual TIA gain (dB) for Rx channel 1"
|
||||||
|
},
|
||||||
|
"pgaGainRx1" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Manual PGA gain (dB) for Rx channel 1"
|
||||||
|
},
|
||||||
|
"pwrmodeRx1" : {
|
||||||
|
"type" : "integer"
|
||||||
|
},
|
||||||
|
"txDevSampleRate" : {
|
||||||
|
"type" : "integer"
|
||||||
|
},
|
||||||
|
"log2HardInterp" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "0 is automatic then 1 to 6 is log2 of hardware interpolation"
|
||||||
|
},
|
||||||
|
"log2SoftInterp" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "log2 of software interpolation factor from 0 to 6"
|
||||||
|
},
|
||||||
|
"txCenterFrequency" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"format" : "int64"
|
||||||
|
},
|
||||||
|
"ncoEnableTx" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Enable TSP NCO Tx on both channels and mixing (1 for yes, 0 for no)"
|
||||||
|
},
|
||||||
|
"ncoFrequencyTx" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Tx frequency shift from LO for both channels"
|
||||||
|
},
|
||||||
|
"antennaPathTx" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Antenna selected (enum value from XTRXMIMOSettings::TxAntenna):\n * 0 - TXANT_HI high range\n * 1 - TXANT_WI wide range\n"
|
||||||
|
},
|
||||||
|
"lpfBWTx0" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "LMS analog lowpass filter bandwidth (Hz) for Tx channel 0"
|
||||||
|
},
|
||||||
|
"gainTx0" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Optimally distributed gain (dB) for Tx channel 0"
|
||||||
|
},
|
||||||
|
"pwrmodeTx0" : {
|
||||||
|
"type" : "integer"
|
||||||
|
},
|
||||||
|
"lpfBWTx1" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "LMS analog lowpass filter bandwidth (Hz) for Tx channel 1"
|
||||||
|
},
|
||||||
|
"gainTx1" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Optimally distributed gain (dB) for Tx channel 1"
|
||||||
|
},
|
||||||
|
"pwrmodeTx1" : {
|
||||||
|
"type" : "integer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description" : "XTRX"
|
||||||
};
|
};
|
||||||
defs.XtrxOutputReport = {
|
defs.XtrxOutputReport = {
|
||||||
"properties" : {
|
"properties" : {
|
||||||
@ -41454,7 +41673,7 @@ except ApiException as e:
|
|||||||
</div>
|
</div>
|
||||||
<div id="generator">
|
<div id="generator">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
Generated 2020-11-10T23:21:43.607+01:00
|
Generated 2020-11-11T03:29:01.094+01:00
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -63,3 +63,5 @@ DeviceReport:
|
|||||||
$ref: "/doc/swagger/include/Xtrx.yaml#/XtrxInputReport"
|
$ref: "/doc/swagger/include/Xtrx.yaml#/XtrxInputReport"
|
||||||
xtrxOutputReport:
|
xtrxOutputReport:
|
||||||
$ref: "/doc/swagger/include/Xtrx.yaml#/XtrxOutputReport"
|
$ref: "/doc/swagger/include/Xtrx.yaml#/XtrxOutputReport"
|
||||||
|
xtrxMIMOReport:
|
||||||
|
$ref: "/doc/swagger/include/Xtrx.yaml#/XtrxMIMOReport"
|
||||||
|
@ -86,3 +86,5 @@ DeviceSettings:
|
|||||||
$ref: "/doc/swagger/include/Xtrx.yaml#/XtrxInputSettings"
|
$ref: "/doc/swagger/include/Xtrx.yaml#/XtrxInputSettings"
|
||||||
xtrxOutputSettings:
|
xtrxOutputSettings:
|
||||||
$ref: "/doc/swagger/include/Xtrx.yaml#/XtrxOutputSettings"
|
$ref: "/doc/swagger/include/Xtrx.yaml#/XtrxOutputSettings"
|
||||||
|
xtrxMIMOSettings:
|
||||||
|
$ref: "/doc/swagger/include/Xtrx.yaml#/XtrxMIMOSettings"
|
||||||
|
@ -147,3 +147,176 @@ XtrxOutputReport:
|
|||||||
gpsLock:
|
gpsLock:
|
||||||
description: 1 if GPSDO is locked else 0
|
description: 1 if GPSDO is locked else 0
|
||||||
type: integer
|
type: integer
|
||||||
|
|
||||||
|
XtrxMIMOSettings:
|
||||||
|
description: XTRX
|
||||||
|
properties:
|
||||||
|
extClock:
|
||||||
|
description: Boolean 1 if external clock source else 0
|
||||||
|
type: integer
|
||||||
|
extClockFreq:
|
||||||
|
description: Frequency (Hz) of external clock source
|
||||||
|
type: integer
|
||||||
|
gpioDir:
|
||||||
|
description: 8 bit GPIO pin direction LSB first 0 input, 1 output
|
||||||
|
type: integer
|
||||||
|
gpioPins:
|
||||||
|
description: 8 bit GPIO pins to write LSB first
|
||||||
|
type: integer
|
||||||
|
useReverseAPI:
|
||||||
|
description: Boolean 1 use 0 do not use reverse API
|
||||||
|
type: integer
|
||||||
|
reverseAPIAddress:
|
||||||
|
description: IPv4 address
|
||||||
|
type: string
|
||||||
|
reverseAPIPort:
|
||||||
|
description: Network port from 1024 to 65535
|
||||||
|
type: integer
|
||||||
|
reverseAPIDeviceIndex:
|
||||||
|
type: integer
|
||||||
|
rxDevSampleRate:
|
||||||
|
type: integer
|
||||||
|
log2HardDecim:
|
||||||
|
description: 0 is automatic then 1 to 6 is log2 of hardware decimation
|
||||||
|
type: integer
|
||||||
|
log2SoftDecim:
|
||||||
|
description: log2 of software decimation factor from 0 to 6
|
||||||
|
type: integer
|
||||||
|
rxCenterFrequency:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
|
dcBlock:
|
||||||
|
description: Software DC blocking (1 for yes, 0 for no)
|
||||||
|
type: integer
|
||||||
|
iqCorrection:
|
||||||
|
description: Software IQ imbalance correction (1 for yes, 0 for no)
|
||||||
|
type: integer
|
||||||
|
ncoEnableRx:
|
||||||
|
description: Enable TSP NCO Rx on both channels and mixing (1 for yes, 0 for no)
|
||||||
|
type: integer
|
||||||
|
ncoFrequencyRx:
|
||||||
|
description: Rx frequency shift from LO for both channels
|
||||||
|
type: integer
|
||||||
|
antennaPathRx:
|
||||||
|
type: integer
|
||||||
|
description: >
|
||||||
|
Antenna selected (enum value from XTRXMIMOSettings::RxAntenna):
|
||||||
|
* 0 - RXANT_LO low range
|
||||||
|
* 1 - RXANT_WI wide range
|
||||||
|
* 2 - RXANT_HI high range
|
||||||
|
iqOrder:
|
||||||
|
type: integer
|
||||||
|
description: >
|
||||||
|
IQ samples order
|
||||||
|
* 0 - Q then I (swapped)
|
||||||
|
* 1 - I then Q (straight)
|
||||||
|
lpfBWRx0:
|
||||||
|
description: LMS analog lowpass filter bandwidth (Hz) for Rx channel 0
|
||||||
|
type: integer
|
||||||
|
gainRx0:
|
||||||
|
description: Optimally distributed gain (dB) for Rx channel 0
|
||||||
|
type: integer
|
||||||
|
gainModeRx0:
|
||||||
|
type: integer
|
||||||
|
description: >
|
||||||
|
Gain mode (XTRXMIMOSettings::GainMode) for Rx channel 0:
|
||||||
|
* 0 - GAIN_AUTO automatic
|
||||||
|
* 1 - GAIN_MANUAL manual
|
||||||
|
lnaGainRx0:
|
||||||
|
description: Manual LNA gain (dB) for Rx channel 0
|
||||||
|
type: integer
|
||||||
|
tiaGainRx0:
|
||||||
|
description: Manual TIA gain (dB) for Rx channel 0
|
||||||
|
type: integer
|
||||||
|
pgaGainRx0:
|
||||||
|
description: Manual PGA gain (dB) for Rx channel 0
|
||||||
|
type: integer
|
||||||
|
pwrmodeRx0:
|
||||||
|
type: integer
|
||||||
|
lpfBWRx1:
|
||||||
|
description: LMS analog lowpass filter bandwidth (Hz) for Rx channel 1
|
||||||
|
type: integer
|
||||||
|
gainRx1:
|
||||||
|
description: Optimally distributed gain (dB) for Rx channel 1
|
||||||
|
type: integer
|
||||||
|
gainModeRx1:
|
||||||
|
type: integer
|
||||||
|
description: >
|
||||||
|
Gain mode (XTRXMIMOSettings::GainMode) for Rx channel 1:
|
||||||
|
* 0 - GAIN_AUTO automatic
|
||||||
|
* 1 - GAIN_MANUAL manual
|
||||||
|
lnaGainRx1:
|
||||||
|
description: Manual LNA gain (dB) for Rx channel 1
|
||||||
|
type: integer
|
||||||
|
tiaGainRx1:
|
||||||
|
description: Manual TIA gain (dB) for Rx channel 1
|
||||||
|
type: integer
|
||||||
|
pgaGainRx1:
|
||||||
|
description: Manual PGA gain (dB) for Rx channel 1
|
||||||
|
type: integer
|
||||||
|
pwrmodeRx1:
|
||||||
|
type: integer
|
||||||
|
txDevSampleRate:
|
||||||
|
type: integer
|
||||||
|
log2HardInterp:
|
||||||
|
description: 0 is automatic then 1 to 6 is log2 of hardware interpolation
|
||||||
|
type: integer
|
||||||
|
log2SoftInterp:
|
||||||
|
description: log2 of software interpolation factor from 0 to 6
|
||||||
|
type: integer
|
||||||
|
txCenterFrequency:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
|
ncoEnableTx:
|
||||||
|
description: Enable TSP NCO Tx on both channels and mixing (1 for yes, 0 for no)
|
||||||
|
type: integer
|
||||||
|
ncoFrequencyTx:
|
||||||
|
description: Tx frequency shift from LO for both channels
|
||||||
|
type: integer
|
||||||
|
antennaPathTx:
|
||||||
|
type: integer
|
||||||
|
description: >
|
||||||
|
Antenna selected (enum value from XTRXMIMOSettings::TxAntenna):
|
||||||
|
* 0 - TXANT_HI high range
|
||||||
|
* 1 - TXANT_WI wide range
|
||||||
|
lpfBWTx0:
|
||||||
|
description: LMS analog lowpass filter bandwidth (Hz) for Tx channel 0
|
||||||
|
type: integer
|
||||||
|
gainTx0:
|
||||||
|
description: Optimally distributed gain (dB) for Tx channel 0
|
||||||
|
type: integer
|
||||||
|
pwrmodeTx0:
|
||||||
|
type: integer
|
||||||
|
lpfBWTx1:
|
||||||
|
description: LMS analog lowpass filter bandwidth (Hz) for Tx channel 1
|
||||||
|
type: integer
|
||||||
|
gainTx1:
|
||||||
|
description: Optimally distributed gain (dB) for Tx channel 1
|
||||||
|
type: integer
|
||||||
|
pwrmodeTx1:
|
||||||
|
type: integer
|
||||||
|
|
||||||
|
XtrxMIMOReport:
|
||||||
|
description: XTRX
|
||||||
|
properties:
|
||||||
|
success:
|
||||||
|
description: 1 if info was successfully retrieved else 0
|
||||||
|
type: integer
|
||||||
|
fifoSize:
|
||||||
|
type: integer
|
||||||
|
fifoFillRx:
|
||||||
|
type: integer
|
||||||
|
fifoFillTx:
|
||||||
|
type: integer
|
||||||
|
temperature:
|
||||||
|
type: number
|
||||||
|
format: float
|
||||||
|
gpsLock:
|
||||||
|
description: 1 if GPSDO is locked else 0
|
||||||
|
type: integer
|
||||||
|
actualInputRate:
|
||||||
|
type: integer
|
||||||
|
actualOutputRate:
|
||||||
|
type: integer
|
||||||
|
clockGenRate:
|
||||||
|
type: integer
|
||||||
|
@ -3975,16 +3975,25 @@ bool WebAPIRequestMapper::getDeviceSettings(
|
|||||||
deviceSettings->setUsrpOutputSettings(new SWGSDRangel::SWGUSRPOutputSettings());
|
deviceSettings->setUsrpOutputSettings(new SWGSDRangel::SWGUSRPOutputSettings());
|
||||||
deviceSettings->getUsrpOutputSettings()->fromJsonObject(settingsJsonObject);
|
deviceSettings->getUsrpOutputSettings()->fromJsonObject(settingsJsonObject);
|
||||||
}
|
}
|
||||||
else if (deviceSettingsKey == "XtrxInputSettings")
|
else if (deviceSettingsKey == "xtrxInputSettings")
|
||||||
{
|
{
|
||||||
deviceSettings->setXtrxInputSettings(new SWGSDRangel::SWGXtrxInputSettings());
|
deviceSettings->setXtrxInputSettings(new SWGSDRangel::SWGXtrxInputSettings());
|
||||||
deviceSettings->getXtrxInputSettings()->fromJsonObject(settingsJsonObject);
|
deviceSettings->getXtrxInputSettings()->fromJsonObject(settingsJsonObject);
|
||||||
}
|
}
|
||||||
else if (deviceSettingsKey == "XtrxOutputSettings")
|
else if (deviceSettingsKey == "xtrxOutputSettings")
|
||||||
{
|
{
|
||||||
deviceSettings->setXtrxOutputSettings(new SWGSDRangel::SWGXtrxOutputSettings());
|
deviceSettings->setXtrxOutputSettings(new SWGSDRangel::SWGXtrxOutputSettings());
|
||||||
deviceSettings->getXtrxOutputSettings()->fromJsonObject(settingsJsonObject);
|
deviceSettings->getXtrxOutputSettings()->fromJsonObject(settingsJsonObject);
|
||||||
}
|
}
|
||||||
|
else if (deviceSettingsKey == "XtrxMIMOSettings")
|
||||||
|
{
|
||||||
|
if (deviceSettingsKeys.contains("streams") && settingsJsonObject["streams"].isArray()) {
|
||||||
|
appendSettingsArrayKeys(settingsJsonObject, "streams", deviceSettingsKeys);
|
||||||
|
}
|
||||||
|
|
||||||
|
deviceSettings->setXtrxMimoSettings(new SWGSDRangel::SWGXtrxMIMOSettings());
|
||||||
|
deviceSettings->getXtrxMimoSettings()->fromJsonObject(settingsJsonObject);
|
||||||
|
}
|
||||||
else if (deviceSettingsKey == "remoteInputSettings")
|
else if (deviceSettingsKey == "remoteInputSettings")
|
||||||
{
|
{
|
||||||
deviceSettings->setRemoteInputSettings(new SWGSDRangel::SWGRemoteInputSettings());
|
deviceSettings->setRemoteInputSettings(new SWGSDRangel::SWGRemoteInputSettings());
|
||||||
|
@ -108,7 +108,8 @@ const QMap<QString, QString> WebAPIUtils::m_deviceIdToSettingsKey = {
|
|||||||
{"sdrangel.samplesource.usrp", "usrpInputSettings"},
|
{"sdrangel.samplesource.usrp", "usrpInputSettings"},
|
||||||
{"sdrangel.samplesink.usrp", "usrpOutputSettings"},
|
{"sdrangel.samplesink.usrp", "usrpOutputSettings"},
|
||||||
{"sdrangel.samplesource.xtrx", "xtrxInputSettings"},
|
{"sdrangel.samplesource.xtrx", "xtrxInputSettings"},
|
||||||
{"sdrangel.samplesink.xtrx", "xtrxOutputSettings"}
|
{"sdrangel.samplesink.xtrx", "xtrxOutputSettings"},
|
||||||
|
{"sdrangel.samplemimo.xtrxmimo", "xtrxMIMOSettings"}
|
||||||
};
|
};
|
||||||
|
|
||||||
const QMap<QString, QString> WebAPIUtils::m_channelTypeToSettingsKey = {
|
const QMap<QString, QString> WebAPIUtils::m_channelTypeToSettingsKey = {
|
||||||
@ -222,7 +223,8 @@ const QMap<QString, QString> WebAPIUtils::m_mimoDeviceHwIdToSettingsKey = {
|
|||||||
{"BladeRF2", "bladeRF2MIMOSettings"},
|
{"BladeRF2", "bladeRF2MIMOSettings"},
|
||||||
{"MetisMISO", "metisMISOSettings"},
|
{"MetisMISO", "metisMISOSettings"},
|
||||||
{"TestMI", "testMISettings"},
|
{"TestMI", "testMISettings"},
|
||||||
{"TestMOSync", "testMOSyncSettings"}
|
{"TestMOSync", "testMOSyncSettings"},
|
||||||
|
{"XTRX", "xtrxMIMOSettings"}
|
||||||
};
|
};
|
||||||
|
|
||||||
const QMap<QString, QString> WebAPIUtils::m_mimoDeviceHwIdToActionsKey = {
|
const QMap<QString, QString> WebAPIUtils::m_mimoDeviceHwIdToActionsKey = {
|
||||||
|
@ -63,3 +63,5 @@ DeviceReport:
|
|||||||
$ref: "http://swgserver:8081/api/swagger/include/Xtrx.yaml#/XtrxInputReport"
|
$ref: "http://swgserver:8081/api/swagger/include/Xtrx.yaml#/XtrxInputReport"
|
||||||
xtrxOutputReport:
|
xtrxOutputReport:
|
||||||
$ref: "http://swgserver:8081/api/swagger/include/Xtrx.yaml#/XtrxOutputReport"
|
$ref: "http://swgserver:8081/api/swagger/include/Xtrx.yaml#/XtrxOutputReport"
|
||||||
|
xtrxMIMOReport:
|
||||||
|
$ref: "http://swgserver:8081/api/swagger/include/Xtrx.yaml#/XtrxMIMOReport"
|
||||||
|
@ -86,3 +86,5 @@ DeviceSettings:
|
|||||||
$ref: "http://swgserver:8081/api/swagger/include/Xtrx.yaml#/XtrxInputSettings"
|
$ref: "http://swgserver:8081/api/swagger/include/Xtrx.yaml#/XtrxInputSettings"
|
||||||
xtrxOutputSettings:
|
xtrxOutputSettings:
|
||||||
$ref: "http://swgserver:8081/api/swagger/include/Xtrx.yaml#/XtrxOutputSettings"
|
$ref: "http://swgserver:8081/api/swagger/include/Xtrx.yaml#/XtrxOutputSettings"
|
||||||
|
xtrxMIMOSettings:
|
||||||
|
$ref: "http://swgserver:8081/api/swagger/include/Xtrx.yaml#/XtrxMIMOSettings"
|
||||||
|
@ -147,3 +147,176 @@ XtrxOutputReport:
|
|||||||
gpsLock:
|
gpsLock:
|
||||||
description: 1 if GPSDO is locked else 0
|
description: 1 if GPSDO is locked else 0
|
||||||
type: integer
|
type: integer
|
||||||
|
|
||||||
|
XtrxMIMOSettings:
|
||||||
|
description: XTRX
|
||||||
|
properties:
|
||||||
|
extClock:
|
||||||
|
description: Boolean 1 if external clock source else 0
|
||||||
|
type: integer
|
||||||
|
extClockFreq:
|
||||||
|
description: Frequency (Hz) of external clock source
|
||||||
|
type: integer
|
||||||
|
gpioDir:
|
||||||
|
description: 8 bit GPIO pin direction LSB first 0 input, 1 output
|
||||||
|
type: integer
|
||||||
|
gpioPins:
|
||||||
|
description: 8 bit GPIO pins to write LSB first
|
||||||
|
type: integer
|
||||||
|
useReverseAPI:
|
||||||
|
description: Boolean 1 use 0 do not use reverse API
|
||||||
|
type: integer
|
||||||
|
reverseAPIAddress:
|
||||||
|
description: IPv4 address
|
||||||
|
type: string
|
||||||
|
reverseAPIPort:
|
||||||
|
description: Network port from 1024 to 65535
|
||||||
|
type: integer
|
||||||
|
reverseAPIDeviceIndex:
|
||||||
|
type: integer
|
||||||
|
rxDevSampleRate:
|
||||||
|
type: integer
|
||||||
|
log2HardDecim:
|
||||||
|
description: 0 is automatic then 1 to 6 is log2 of hardware decimation
|
||||||
|
type: integer
|
||||||
|
log2SoftDecim:
|
||||||
|
description: log2 of software decimation factor from 0 to 6
|
||||||
|
type: integer
|
||||||
|
rxCenterFrequency:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
|
dcBlock:
|
||||||
|
description: Software DC blocking (1 for yes, 0 for no)
|
||||||
|
type: integer
|
||||||
|
iqCorrection:
|
||||||
|
description: Software IQ imbalance correction (1 for yes, 0 for no)
|
||||||
|
type: integer
|
||||||
|
ncoEnableRx:
|
||||||
|
description: Enable TSP NCO Rx on both channels and mixing (1 for yes, 0 for no)
|
||||||
|
type: integer
|
||||||
|
ncoFrequencyRx:
|
||||||
|
description: Rx frequency shift from LO for both channels
|
||||||
|
type: integer
|
||||||
|
antennaPathRx:
|
||||||
|
type: integer
|
||||||
|
description: >
|
||||||
|
Antenna selected (enum value from XTRXMIMOSettings::RxAntenna):
|
||||||
|
* 0 - RXANT_LO low range
|
||||||
|
* 1 - RXANT_WI wide range
|
||||||
|
* 2 - RXANT_HI high range
|
||||||
|
iqOrder:
|
||||||
|
type: integer
|
||||||
|
description: >
|
||||||
|
IQ samples order
|
||||||
|
* 0 - Q then I (swapped)
|
||||||
|
* 1 - I then Q (straight)
|
||||||
|
lpfBWRx0:
|
||||||
|
description: LMS analog lowpass filter bandwidth (Hz) for Rx channel 0
|
||||||
|
type: integer
|
||||||
|
gainRx0:
|
||||||
|
description: Optimally distributed gain (dB) for Rx channel 0
|
||||||
|
type: integer
|
||||||
|
gainModeRx0:
|
||||||
|
type: integer
|
||||||
|
description: >
|
||||||
|
Gain mode (XTRXMIMOSettings::GainMode) for Rx channel 0:
|
||||||
|
* 0 - GAIN_AUTO automatic
|
||||||
|
* 1 - GAIN_MANUAL manual
|
||||||
|
lnaGainRx0:
|
||||||
|
description: Manual LNA gain (dB) for Rx channel 0
|
||||||
|
type: integer
|
||||||
|
tiaGainRx0:
|
||||||
|
description: Manual TIA gain (dB) for Rx channel 0
|
||||||
|
type: integer
|
||||||
|
pgaGainRx0:
|
||||||
|
description: Manual PGA gain (dB) for Rx channel 0
|
||||||
|
type: integer
|
||||||
|
pwrmodeRx0:
|
||||||
|
type: integer
|
||||||
|
lpfBWRx1:
|
||||||
|
description: LMS analog lowpass filter bandwidth (Hz) for Rx channel 1
|
||||||
|
type: integer
|
||||||
|
gainRx1:
|
||||||
|
description: Optimally distributed gain (dB) for Rx channel 1
|
||||||
|
type: integer
|
||||||
|
gainModeRx1:
|
||||||
|
type: integer
|
||||||
|
description: >
|
||||||
|
Gain mode (XTRXMIMOSettings::GainMode) for Rx channel 1:
|
||||||
|
* 0 - GAIN_AUTO automatic
|
||||||
|
* 1 - GAIN_MANUAL manual
|
||||||
|
lnaGainRx1:
|
||||||
|
description: Manual LNA gain (dB) for Rx channel 1
|
||||||
|
type: integer
|
||||||
|
tiaGainRx1:
|
||||||
|
description: Manual TIA gain (dB) for Rx channel 1
|
||||||
|
type: integer
|
||||||
|
pgaGainRx1:
|
||||||
|
description: Manual PGA gain (dB) for Rx channel 1
|
||||||
|
type: integer
|
||||||
|
pwrmodeRx1:
|
||||||
|
type: integer
|
||||||
|
txDevSampleRate:
|
||||||
|
type: integer
|
||||||
|
log2HardInterp:
|
||||||
|
description: 0 is automatic then 1 to 6 is log2 of hardware interpolation
|
||||||
|
type: integer
|
||||||
|
log2SoftInterp:
|
||||||
|
description: log2 of software interpolation factor from 0 to 6
|
||||||
|
type: integer
|
||||||
|
txCenterFrequency:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
|
ncoEnableTx:
|
||||||
|
description: Enable TSP NCO Tx on both channels and mixing (1 for yes, 0 for no)
|
||||||
|
type: integer
|
||||||
|
ncoFrequencyTx:
|
||||||
|
description: Tx frequency shift from LO for both channels
|
||||||
|
type: integer
|
||||||
|
antennaPathTx:
|
||||||
|
type: integer
|
||||||
|
description: >
|
||||||
|
Antenna selected (enum value from XTRXMIMOSettings::TxAntenna):
|
||||||
|
* 0 - TXANT_HI high range
|
||||||
|
* 1 - TXANT_WI wide range
|
||||||
|
lpfBWTx0:
|
||||||
|
description: LMS analog lowpass filter bandwidth (Hz) for Tx channel 0
|
||||||
|
type: integer
|
||||||
|
gainTx0:
|
||||||
|
description: Optimally distributed gain (dB) for Tx channel 0
|
||||||
|
type: integer
|
||||||
|
pwrmodeTx0:
|
||||||
|
type: integer
|
||||||
|
lpfBWTx1:
|
||||||
|
description: LMS analog lowpass filter bandwidth (Hz) for Tx channel 1
|
||||||
|
type: integer
|
||||||
|
gainTx1:
|
||||||
|
description: Optimally distributed gain (dB) for Tx channel 1
|
||||||
|
type: integer
|
||||||
|
pwrmodeTx1:
|
||||||
|
type: integer
|
||||||
|
|
||||||
|
XtrxMIMOReport:
|
||||||
|
description: XTRX
|
||||||
|
properties:
|
||||||
|
success:
|
||||||
|
description: 1 if info was successfully retrieved else 0
|
||||||
|
type: integer
|
||||||
|
fifoSize:
|
||||||
|
type: integer
|
||||||
|
fifoFillRx:
|
||||||
|
type: integer
|
||||||
|
fifoFillTx:
|
||||||
|
type: integer
|
||||||
|
temperature:
|
||||||
|
type: number
|
||||||
|
format: float
|
||||||
|
gpsLock:
|
||||||
|
description: 1 if GPSDO is locked else 0
|
||||||
|
type: integer
|
||||||
|
actualInputRate:
|
||||||
|
type: integer
|
||||||
|
actualOutputRate:
|
||||||
|
type: integer
|
||||||
|
clockGenRate:
|
||||||
|
type: integer
|
||||||
|
@ -3528,6 +3528,9 @@ margin-bottom: 20px;
|
|||||||
},
|
},
|
||||||
"xtrxOutputReport" : {
|
"xtrxOutputReport" : {
|
||||||
"$ref" : "#/definitions/XtrxOutputReport"
|
"$ref" : "#/definitions/XtrxOutputReport"
|
||||||
|
},
|
||||||
|
"xtrxMIMOReport" : {
|
||||||
|
"$ref" : "#/definitions/XtrxMIMOReport"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"description" : "Base device report. Only the device report corresponding to the device specified in the deviceHwType is or should be present."
|
"description" : "Base device report. Only the device report corresponding to the device specified in the deviceHwType is or should be present."
|
||||||
@ -3695,6 +3698,9 @@ margin-bottom: 20px;
|
|||||||
},
|
},
|
||||||
"xtrxOutputSettings" : {
|
"xtrxOutputSettings" : {
|
||||||
"$ref" : "#/definitions/XtrxOutputSettings"
|
"$ref" : "#/definitions/XtrxOutputSettings"
|
||||||
|
},
|
||||||
|
"xtrxMIMOSettings" : {
|
||||||
|
"$ref" : "#/definitions/XtrxMIMOSettings"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"description" : "Base device settings. Only the device settings corresponding to the device specified in the deviceHwType field is or should be present."
|
"description" : "Base device settings. Only the device settings corresponding to the device specified in the deviceHwType field is or should be present."
|
||||||
@ -9459,6 +9465,219 @@ margin-bottom: 20px;
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"description" : "XTRX"
|
"description" : "XTRX"
|
||||||
|
};
|
||||||
|
defs.XtrxMIMOReport = {
|
||||||
|
"properties" : {
|
||||||
|
"success" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "1 if info was successfully retrieved else 0"
|
||||||
|
},
|
||||||
|
"fifoSize" : {
|
||||||
|
"type" : "integer"
|
||||||
|
},
|
||||||
|
"fifoFillRx" : {
|
||||||
|
"type" : "integer"
|
||||||
|
},
|
||||||
|
"fifoFillTx" : {
|
||||||
|
"type" : "integer"
|
||||||
|
},
|
||||||
|
"temperature" : {
|
||||||
|
"type" : "number",
|
||||||
|
"format" : "float"
|
||||||
|
},
|
||||||
|
"gpsLock" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "1 if GPSDO is locked else 0"
|
||||||
|
},
|
||||||
|
"actualInputRate" : {
|
||||||
|
"type" : "integer"
|
||||||
|
},
|
||||||
|
"actualOutputRate" : {
|
||||||
|
"type" : "integer"
|
||||||
|
},
|
||||||
|
"clockGenRate" : {
|
||||||
|
"type" : "integer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description" : "XTRX"
|
||||||
|
};
|
||||||
|
defs.XtrxMIMOSettings = {
|
||||||
|
"properties" : {
|
||||||
|
"extClock" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Boolean 1 if external clock source else 0"
|
||||||
|
},
|
||||||
|
"extClockFreq" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Frequency (Hz) of external clock source"
|
||||||
|
},
|
||||||
|
"gpioDir" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "8 bit GPIO pin direction LSB first 0 input, 1 output"
|
||||||
|
},
|
||||||
|
"gpioPins" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "8 bit GPIO pins to write LSB first"
|
||||||
|
},
|
||||||
|
"useReverseAPI" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Boolean 1 use 0 do not use reverse API"
|
||||||
|
},
|
||||||
|
"reverseAPIAddress" : {
|
||||||
|
"type" : "string",
|
||||||
|
"description" : "IPv4 address"
|
||||||
|
},
|
||||||
|
"reverseAPIPort" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Network port from 1024 to 65535"
|
||||||
|
},
|
||||||
|
"reverseAPIDeviceIndex" : {
|
||||||
|
"type" : "integer"
|
||||||
|
},
|
||||||
|
"rxDevSampleRate" : {
|
||||||
|
"type" : "integer"
|
||||||
|
},
|
||||||
|
"log2HardDecim" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "0 is automatic then 1 to 6 is log2 of hardware decimation"
|
||||||
|
},
|
||||||
|
"log2SoftDecim" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "log2 of software decimation factor from 0 to 6"
|
||||||
|
},
|
||||||
|
"rxCenterFrequency" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"format" : "int64"
|
||||||
|
},
|
||||||
|
"dcBlock" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Software DC blocking (1 for yes, 0 for no)"
|
||||||
|
},
|
||||||
|
"iqCorrection" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Software IQ imbalance correction (1 for yes, 0 for no)"
|
||||||
|
},
|
||||||
|
"ncoEnableRx" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Enable TSP NCO Rx on both channels and mixing (1 for yes, 0 for no)"
|
||||||
|
},
|
||||||
|
"ncoFrequencyRx" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Rx frequency shift from LO for both channels"
|
||||||
|
},
|
||||||
|
"antennaPathRx" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Antenna selected (enum value from XTRXMIMOSettings::RxAntenna):\n * 0 - RXANT_LO low range\n * 1 - RXANT_WI wide range\n * 2 - RXANT_HI high range\n"
|
||||||
|
},
|
||||||
|
"iqOrder" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n"
|
||||||
|
},
|
||||||
|
"lpfBWRx0" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "LMS analog lowpass filter bandwidth (Hz) for Rx channel 0"
|
||||||
|
},
|
||||||
|
"gainRx0" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Optimally distributed gain (dB) for Rx channel 0"
|
||||||
|
},
|
||||||
|
"gainModeRx0" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Gain mode (XTRXMIMOSettings::GainMode) for Rx channel 0:\n * 0 - GAIN_AUTO automatic\n * 1 - GAIN_MANUAL manual\n"
|
||||||
|
},
|
||||||
|
"lnaGainRx0" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Manual LNA gain (dB) for Rx channel 0"
|
||||||
|
},
|
||||||
|
"tiaGainRx0" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Manual TIA gain (dB) for Rx channel 0"
|
||||||
|
},
|
||||||
|
"pgaGainRx0" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Manual PGA gain (dB) for Rx channel 0"
|
||||||
|
},
|
||||||
|
"pwrmodeRx0" : {
|
||||||
|
"type" : "integer"
|
||||||
|
},
|
||||||
|
"lpfBWRx1" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "LMS analog lowpass filter bandwidth (Hz) for Rx channel 1"
|
||||||
|
},
|
||||||
|
"gainRx1" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Optimally distributed gain (dB) for Rx channel 1"
|
||||||
|
},
|
||||||
|
"gainModeRx1" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Gain mode (XTRXMIMOSettings::GainMode) for Rx channel 1:\n * 0 - GAIN_AUTO automatic\n * 1 - GAIN_MANUAL manual\n"
|
||||||
|
},
|
||||||
|
"lnaGainRx1" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Manual LNA gain (dB) for Rx channel 1"
|
||||||
|
},
|
||||||
|
"tiaGainRx1" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Manual TIA gain (dB) for Rx channel 1"
|
||||||
|
},
|
||||||
|
"pgaGainRx1" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Manual PGA gain (dB) for Rx channel 1"
|
||||||
|
},
|
||||||
|
"pwrmodeRx1" : {
|
||||||
|
"type" : "integer"
|
||||||
|
},
|
||||||
|
"txDevSampleRate" : {
|
||||||
|
"type" : "integer"
|
||||||
|
},
|
||||||
|
"log2HardInterp" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "0 is automatic then 1 to 6 is log2 of hardware interpolation"
|
||||||
|
},
|
||||||
|
"log2SoftInterp" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "log2 of software interpolation factor from 0 to 6"
|
||||||
|
},
|
||||||
|
"txCenterFrequency" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"format" : "int64"
|
||||||
|
},
|
||||||
|
"ncoEnableTx" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Enable TSP NCO Tx on both channels and mixing (1 for yes, 0 for no)"
|
||||||
|
},
|
||||||
|
"ncoFrequencyTx" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Tx frequency shift from LO for both channels"
|
||||||
|
},
|
||||||
|
"antennaPathTx" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Antenna selected (enum value from XTRXMIMOSettings::TxAntenna):\n * 0 - TXANT_HI high range\n * 1 - TXANT_WI wide range\n"
|
||||||
|
},
|
||||||
|
"lpfBWTx0" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "LMS analog lowpass filter bandwidth (Hz) for Tx channel 0"
|
||||||
|
},
|
||||||
|
"gainTx0" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Optimally distributed gain (dB) for Tx channel 0"
|
||||||
|
},
|
||||||
|
"pwrmodeTx0" : {
|
||||||
|
"type" : "integer"
|
||||||
|
},
|
||||||
|
"lpfBWTx1" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "LMS analog lowpass filter bandwidth (Hz) for Tx channel 1"
|
||||||
|
},
|
||||||
|
"gainTx1" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Optimally distributed gain (dB) for Tx channel 1"
|
||||||
|
},
|
||||||
|
"pwrmodeTx1" : {
|
||||||
|
"type" : "integer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description" : "XTRX"
|
||||||
};
|
};
|
||||||
defs.XtrxOutputReport = {
|
defs.XtrxOutputReport = {
|
||||||
"properties" : {
|
"properties" : {
|
||||||
@ -41454,7 +41673,7 @@ except ApiException as e:
|
|||||||
</div>
|
</div>
|
||||||
<div id="generator">
|
<div id="generator">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
Generated 2020-11-10T23:21:43.607+01:00
|
Generated 2020-11-11T03:29:01.094+01:00
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -84,6 +84,8 @@ SWGDeviceReport::SWGDeviceReport() {
|
|||||||
m_xtrx_input_report_isSet = false;
|
m_xtrx_input_report_isSet = false;
|
||||||
xtrx_output_report = nullptr;
|
xtrx_output_report = nullptr;
|
||||||
m_xtrx_output_report_isSet = false;
|
m_xtrx_output_report_isSet = false;
|
||||||
|
xtrx_mimo_report = nullptr;
|
||||||
|
m_xtrx_mimo_report_isSet = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
SWGDeviceReport::~SWGDeviceReport() {
|
SWGDeviceReport::~SWGDeviceReport() {
|
||||||
@ -148,6 +150,8 @@ SWGDeviceReport::init() {
|
|||||||
m_xtrx_input_report_isSet = false;
|
m_xtrx_input_report_isSet = false;
|
||||||
xtrx_output_report = new SWGXtrxOutputReport();
|
xtrx_output_report = new SWGXtrxOutputReport();
|
||||||
m_xtrx_output_report_isSet = false;
|
m_xtrx_output_report_isSet = false;
|
||||||
|
xtrx_mimo_report = new SWGXtrxMIMOReport();
|
||||||
|
m_xtrx_mimo_report_isSet = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -234,6 +238,9 @@ SWGDeviceReport::cleanup() {
|
|||||||
if(xtrx_output_report != nullptr) {
|
if(xtrx_output_report != nullptr) {
|
||||||
delete xtrx_output_report;
|
delete xtrx_output_report;
|
||||||
}
|
}
|
||||||
|
if(xtrx_mimo_report != nullptr) {
|
||||||
|
delete xtrx_mimo_report;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SWGDeviceReport*
|
SWGDeviceReport*
|
||||||
@ -303,6 +310,8 @@ SWGDeviceReport::fromJsonObject(QJsonObject &pJson) {
|
|||||||
|
|
||||||
::SWGSDRangel::setValue(&xtrx_output_report, pJson["xtrxOutputReport"], "SWGXtrxOutputReport", "SWGXtrxOutputReport");
|
::SWGSDRangel::setValue(&xtrx_output_report, pJson["xtrxOutputReport"], "SWGXtrxOutputReport", "SWGXtrxOutputReport");
|
||||||
|
|
||||||
|
::SWGSDRangel::setValue(&xtrx_mimo_report, pJson["xtrxMIMOReport"], "SWGXtrxMIMOReport", "SWGXtrxMIMOReport");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QString
|
QString
|
||||||
@ -403,6 +412,9 @@ SWGDeviceReport::asJsonObject() {
|
|||||||
if((xtrx_output_report != nullptr) && (xtrx_output_report->isSet())){
|
if((xtrx_output_report != nullptr) && (xtrx_output_report->isSet())){
|
||||||
toJsonValue(QString("xtrxOutputReport"), xtrx_output_report, obj, QString("SWGXtrxOutputReport"));
|
toJsonValue(QString("xtrxOutputReport"), xtrx_output_report, obj, QString("SWGXtrxOutputReport"));
|
||||||
}
|
}
|
||||||
|
if((xtrx_mimo_report != nullptr) && (xtrx_mimo_report->isSet())){
|
||||||
|
toJsonValue(QString("xtrxMIMOReport"), xtrx_mimo_report, obj, QString("SWGXtrxMIMOReport"));
|
||||||
|
}
|
||||||
|
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
@ -687,6 +699,16 @@ SWGDeviceReport::setXtrxOutputReport(SWGXtrxOutputReport* xtrx_output_report) {
|
|||||||
this->m_xtrx_output_report_isSet = true;
|
this->m_xtrx_output_report_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SWGXtrxMIMOReport*
|
||||||
|
SWGDeviceReport::getXtrxMimoReport() {
|
||||||
|
return xtrx_mimo_report;
|
||||||
|
}
|
||||||
|
void
|
||||||
|
SWGDeviceReport::setXtrxMimoReport(SWGXtrxMIMOReport* xtrx_mimo_report) {
|
||||||
|
this->xtrx_mimo_report = xtrx_mimo_report;
|
||||||
|
this->m_xtrx_mimo_report_isSet = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
SWGDeviceReport::isSet(){
|
SWGDeviceReport::isSet(){
|
||||||
@ -776,6 +798,9 @@ SWGDeviceReport::isSet(){
|
|||||||
if(xtrx_output_report && xtrx_output_report->isSet()){
|
if(xtrx_output_report && xtrx_output_report->isSet()){
|
||||||
isObjectUpdated = true; break;
|
isObjectUpdated = true; break;
|
||||||
}
|
}
|
||||||
|
if(xtrx_mimo_report && xtrx_mimo_report->isSet()){
|
||||||
|
isObjectUpdated = true; break;
|
||||||
|
}
|
||||||
}while(false);
|
}while(false);
|
||||||
return isObjectUpdated;
|
return isObjectUpdated;
|
||||||
}
|
}
|
||||||
|
@ -46,6 +46,7 @@
|
|||||||
#include "SWGUSRPInputReport.h"
|
#include "SWGUSRPInputReport.h"
|
||||||
#include "SWGUSRPOutputReport.h"
|
#include "SWGUSRPOutputReport.h"
|
||||||
#include "SWGXtrxInputReport.h"
|
#include "SWGXtrxInputReport.h"
|
||||||
|
#include "SWGXtrxMIMOReport.h"
|
||||||
#include "SWGXtrxOutputReport.h"
|
#include "SWGXtrxOutputReport.h"
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
@ -151,6 +152,9 @@ public:
|
|||||||
SWGXtrxOutputReport* getXtrxOutputReport();
|
SWGXtrxOutputReport* getXtrxOutputReport();
|
||||||
void setXtrxOutputReport(SWGXtrxOutputReport* xtrx_output_report);
|
void setXtrxOutputReport(SWGXtrxOutputReport* xtrx_output_report);
|
||||||
|
|
||||||
|
SWGXtrxMIMOReport* getXtrxMimoReport();
|
||||||
|
void setXtrxMimoReport(SWGXtrxMIMOReport* xtrx_mimo_report);
|
||||||
|
|
||||||
|
|
||||||
virtual bool isSet() override;
|
virtual bool isSet() override;
|
||||||
|
|
||||||
@ -239,6 +243,9 @@ private:
|
|||||||
SWGXtrxOutputReport* xtrx_output_report;
|
SWGXtrxOutputReport* xtrx_output_report;
|
||||||
bool m_xtrx_output_report_isSet;
|
bool m_xtrx_output_report_isSet;
|
||||||
|
|
||||||
|
SWGXtrxMIMOReport* xtrx_mimo_report;
|
||||||
|
bool m_xtrx_mimo_report_isSet;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -106,6 +106,8 @@ SWGDeviceSettings::SWGDeviceSettings() {
|
|||||||
m_xtrx_input_settings_isSet = false;
|
m_xtrx_input_settings_isSet = false;
|
||||||
xtrx_output_settings = nullptr;
|
xtrx_output_settings = nullptr;
|
||||||
m_xtrx_output_settings_isSet = false;
|
m_xtrx_output_settings_isSet = false;
|
||||||
|
xtrx_mimo_settings = nullptr;
|
||||||
|
m_xtrx_mimo_settings_isSet = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
SWGDeviceSettings::~SWGDeviceSettings() {
|
SWGDeviceSettings::~SWGDeviceSettings() {
|
||||||
@ -192,6 +194,8 @@ SWGDeviceSettings::init() {
|
|||||||
m_xtrx_input_settings_isSet = false;
|
m_xtrx_input_settings_isSet = false;
|
||||||
xtrx_output_settings = new SWGXtrxOutputSettings();
|
xtrx_output_settings = new SWGXtrxOutputSettings();
|
||||||
m_xtrx_output_settings_isSet = false;
|
m_xtrx_output_settings_isSet = false;
|
||||||
|
xtrx_mimo_settings = new SWGXtrxMIMOSettings();
|
||||||
|
m_xtrx_mimo_settings_isSet = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -309,6 +313,9 @@ SWGDeviceSettings::cleanup() {
|
|||||||
if(xtrx_output_settings != nullptr) {
|
if(xtrx_output_settings != nullptr) {
|
||||||
delete xtrx_output_settings;
|
delete xtrx_output_settings;
|
||||||
}
|
}
|
||||||
|
if(xtrx_mimo_settings != nullptr) {
|
||||||
|
delete xtrx_mimo_settings;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SWGDeviceSettings*
|
SWGDeviceSettings*
|
||||||
@ -400,6 +407,8 @@ SWGDeviceSettings::fromJsonObject(QJsonObject &pJson) {
|
|||||||
|
|
||||||
::SWGSDRangel::setValue(&xtrx_output_settings, pJson["xtrxOutputSettings"], "SWGXtrxOutputSettings", "SWGXtrxOutputSettings");
|
::SWGSDRangel::setValue(&xtrx_output_settings, pJson["xtrxOutputSettings"], "SWGXtrxOutputSettings", "SWGXtrxOutputSettings");
|
||||||
|
|
||||||
|
::SWGSDRangel::setValue(&xtrx_mimo_settings, pJson["xtrxMIMOSettings"], "SWGXtrxMIMOSettings", "SWGXtrxMIMOSettings");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QString
|
QString
|
||||||
@ -533,6 +542,9 @@ SWGDeviceSettings::asJsonObject() {
|
|||||||
if((xtrx_output_settings != nullptr) && (xtrx_output_settings->isSet())){
|
if((xtrx_output_settings != nullptr) && (xtrx_output_settings->isSet())){
|
||||||
toJsonValue(QString("xtrxOutputSettings"), xtrx_output_settings, obj, QString("SWGXtrxOutputSettings"));
|
toJsonValue(QString("xtrxOutputSettings"), xtrx_output_settings, obj, QString("SWGXtrxOutputSettings"));
|
||||||
}
|
}
|
||||||
|
if((xtrx_mimo_settings != nullptr) && (xtrx_mimo_settings->isSet())){
|
||||||
|
toJsonValue(QString("xtrxMIMOSettings"), xtrx_mimo_settings, obj, QString("SWGXtrxMIMOSettings"));
|
||||||
|
}
|
||||||
|
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
@ -927,6 +939,16 @@ SWGDeviceSettings::setXtrxOutputSettings(SWGXtrxOutputSettings* xtrx_output_sett
|
|||||||
this->m_xtrx_output_settings_isSet = true;
|
this->m_xtrx_output_settings_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SWGXtrxMIMOSettings*
|
||||||
|
SWGDeviceSettings::getXtrxMimoSettings() {
|
||||||
|
return xtrx_mimo_settings;
|
||||||
|
}
|
||||||
|
void
|
||||||
|
SWGDeviceSettings::setXtrxMimoSettings(SWGXtrxMIMOSettings* xtrx_mimo_settings) {
|
||||||
|
this->xtrx_mimo_settings = xtrx_mimo_settings;
|
||||||
|
this->m_xtrx_mimo_settings_isSet = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
SWGDeviceSettings::isSet(){
|
SWGDeviceSettings::isSet(){
|
||||||
@ -1049,6 +1071,9 @@ SWGDeviceSettings::isSet(){
|
|||||||
if(xtrx_output_settings && xtrx_output_settings->isSet()){
|
if(xtrx_output_settings && xtrx_output_settings->isSet()){
|
||||||
isObjectUpdated = true; break;
|
isObjectUpdated = true; break;
|
||||||
}
|
}
|
||||||
|
if(xtrx_mimo_settings && xtrx_mimo_settings->isSet()){
|
||||||
|
isObjectUpdated = true; break;
|
||||||
|
}
|
||||||
}while(false);
|
}while(false);
|
||||||
return isObjectUpdated;
|
return isObjectUpdated;
|
||||||
}
|
}
|
||||||
|
@ -57,6 +57,7 @@
|
|||||||
#include "SWGUSRPInputSettings.h"
|
#include "SWGUSRPInputSettings.h"
|
||||||
#include "SWGUSRPOutputSettings.h"
|
#include "SWGUSRPOutputSettings.h"
|
||||||
#include "SWGXtrxInputSettings.h"
|
#include "SWGXtrxInputSettings.h"
|
||||||
|
#include "SWGXtrxMIMOSettings.h"
|
||||||
#include "SWGXtrxOutputSettings.h"
|
#include "SWGXtrxOutputSettings.h"
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
@ -195,6 +196,9 @@ public:
|
|||||||
SWGXtrxOutputSettings* getXtrxOutputSettings();
|
SWGXtrxOutputSettings* getXtrxOutputSettings();
|
||||||
void setXtrxOutputSettings(SWGXtrxOutputSettings* xtrx_output_settings);
|
void setXtrxOutputSettings(SWGXtrxOutputSettings* xtrx_output_settings);
|
||||||
|
|
||||||
|
SWGXtrxMIMOSettings* getXtrxMimoSettings();
|
||||||
|
void setXtrxMimoSettings(SWGXtrxMIMOSettings* xtrx_mimo_settings);
|
||||||
|
|
||||||
|
|
||||||
virtual bool isSet() override;
|
virtual bool isSet() override;
|
||||||
|
|
||||||
@ -316,6 +320,9 @@ private:
|
|||||||
SWGXtrxOutputSettings* xtrx_output_settings;
|
SWGXtrxOutputSettings* xtrx_output_settings;
|
||||||
bool m_xtrx_output_settings_isSet;
|
bool m_xtrx_output_settings_isSet;
|
||||||
|
|
||||||
|
SWGXtrxMIMOSettings* xtrx_mimo_settings;
|
||||||
|
bool m_xtrx_mimo_settings_isSet;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -223,6 +223,8 @@
|
|||||||
#include "SWGWFMModSettings.h"
|
#include "SWGWFMModSettings.h"
|
||||||
#include "SWGXtrxInputReport.h"
|
#include "SWGXtrxInputReport.h"
|
||||||
#include "SWGXtrxInputSettings.h"
|
#include "SWGXtrxInputSettings.h"
|
||||||
|
#include "SWGXtrxMIMOReport.h"
|
||||||
|
#include "SWGXtrxMIMOSettings.h"
|
||||||
#include "SWGXtrxOutputReport.h"
|
#include "SWGXtrxOutputReport.h"
|
||||||
#include "SWGXtrxOutputSettings.h"
|
#include "SWGXtrxOutputSettings.h"
|
||||||
|
|
||||||
@ -856,6 +858,12 @@ namespace SWGSDRangel {
|
|||||||
if(QString("SWGXtrxInputSettings").compare(type) == 0) {
|
if(QString("SWGXtrxInputSettings").compare(type) == 0) {
|
||||||
return new SWGXtrxInputSettings();
|
return new SWGXtrxInputSettings();
|
||||||
}
|
}
|
||||||
|
if(QString("SWGXtrxMIMOReport").compare(type) == 0) {
|
||||||
|
return new SWGXtrxMIMOReport();
|
||||||
|
}
|
||||||
|
if(QString("SWGXtrxMIMOSettings").compare(type) == 0) {
|
||||||
|
return new SWGXtrxMIMOSettings();
|
||||||
|
}
|
||||||
if(QString("SWGXtrxOutputReport").compare(type) == 0) {
|
if(QString("SWGXtrxOutputReport").compare(type) == 0) {
|
||||||
return new SWGXtrxOutputReport();
|
return new SWGXtrxOutputReport();
|
||||||
}
|
}
|
||||||
|
292
swagger/sdrangel/code/qt5/client/SWGXtrxMIMOReport.cpp
Normal file
292
swagger/sdrangel/code/qt5/client/SWGXtrxMIMOReport.cpp
Normal file
@ -0,0 +1,292 @@
|
|||||||
|
/**
|
||||||
|
* 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 "SWGXtrxMIMOReport.h"
|
||||||
|
|
||||||
|
#include "SWGHelpers.h"
|
||||||
|
|
||||||
|
#include <QJsonDocument>
|
||||||
|
#include <QJsonArray>
|
||||||
|
#include <QObject>
|
||||||
|
#include <QDebug>
|
||||||
|
|
||||||
|
namespace SWGSDRangel {
|
||||||
|
|
||||||
|
SWGXtrxMIMOReport::SWGXtrxMIMOReport(QString* json) {
|
||||||
|
init();
|
||||||
|
this->fromJson(*json);
|
||||||
|
}
|
||||||
|
|
||||||
|
SWGXtrxMIMOReport::SWGXtrxMIMOReport() {
|
||||||
|
success = 0;
|
||||||
|
m_success_isSet = false;
|
||||||
|
fifo_size = 0;
|
||||||
|
m_fifo_size_isSet = false;
|
||||||
|
fifo_fill_rx = 0;
|
||||||
|
m_fifo_fill_rx_isSet = false;
|
||||||
|
fifo_fill_tx = 0;
|
||||||
|
m_fifo_fill_tx_isSet = false;
|
||||||
|
temperature = 0.0f;
|
||||||
|
m_temperature_isSet = false;
|
||||||
|
gps_lock = 0;
|
||||||
|
m_gps_lock_isSet = false;
|
||||||
|
actual_input_rate = 0;
|
||||||
|
m_actual_input_rate_isSet = false;
|
||||||
|
actual_output_rate = 0;
|
||||||
|
m_actual_output_rate_isSet = false;
|
||||||
|
clock_gen_rate = 0;
|
||||||
|
m_clock_gen_rate_isSet = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
SWGXtrxMIMOReport::~SWGXtrxMIMOReport() {
|
||||||
|
this->cleanup();
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
SWGXtrxMIMOReport::init() {
|
||||||
|
success = 0;
|
||||||
|
m_success_isSet = false;
|
||||||
|
fifo_size = 0;
|
||||||
|
m_fifo_size_isSet = false;
|
||||||
|
fifo_fill_rx = 0;
|
||||||
|
m_fifo_fill_rx_isSet = false;
|
||||||
|
fifo_fill_tx = 0;
|
||||||
|
m_fifo_fill_tx_isSet = false;
|
||||||
|
temperature = 0.0f;
|
||||||
|
m_temperature_isSet = false;
|
||||||
|
gps_lock = 0;
|
||||||
|
m_gps_lock_isSet = false;
|
||||||
|
actual_input_rate = 0;
|
||||||
|
m_actual_input_rate_isSet = false;
|
||||||
|
actual_output_rate = 0;
|
||||||
|
m_actual_output_rate_isSet = false;
|
||||||
|
clock_gen_rate = 0;
|
||||||
|
m_clock_gen_rate_isSet = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
SWGXtrxMIMOReport::cleanup() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
SWGXtrxMIMOReport*
|
||||||
|
SWGXtrxMIMOReport::fromJson(QString &json) {
|
||||||
|
QByteArray array (json.toStdString().c_str());
|
||||||
|
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||||
|
QJsonObject jsonObject = doc.object();
|
||||||
|
this->fromJsonObject(jsonObject);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
SWGXtrxMIMOReport::fromJsonObject(QJsonObject &pJson) {
|
||||||
|
::SWGSDRangel::setValue(&success, pJson["success"], "qint32", "");
|
||||||
|
|
||||||
|
::SWGSDRangel::setValue(&fifo_size, pJson["fifoSize"], "qint32", "");
|
||||||
|
|
||||||
|
::SWGSDRangel::setValue(&fifo_fill_rx, pJson["fifoFillRx"], "qint32", "");
|
||||||
|
|
||||||
|
::SWGSDRangel::setValue(&fifo_fill_tx, pJson["fifoFillTx"], "qint32", "");
|
||||||
|
|
||||||
|
::SWGSDRangel::setValue(&temperature, pJson["temperature"], "float", "");
|
||||||
|
|
||||||
|
::SWGSDRangel::setValue(&gps_lock, pJson["gpsLock"], "qint32", "");
|
||||||
|
|
||||||
|
::SWGSDRangel::setValue(&actual_input_rate, pJson["actualInputRate"], "qint32", "");
|
||||||
|
|
||||||
|
::SWGSDRangel::setValue(&actual_output_rate, pJson["actualOutputRate"], "qint32", "");
|
||||||
|
|
||||||
|
::SWGSDRangel::setValue(&clock_gen_rate, pJson["clockGenRate"], "qint32", "");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
QString
|
||||||
|
SWGXtrxMIMOReport::asJson ()
|
||||||
|
{
|
||||||
|
QJsonObject* obj = this->asJsonObject();
|
||||||
|
|
||||||
|
QJsonDocument doc(*obj);
|
||||||
|
QByteArray bytes = doc.toJson();
|
||||||
|
delete obj;
|
||||||
|
return QString(bytes);
|
||||||
|
}
|
||||||
|
|
||||||
|
QJsonObject*
|
||||||
|
SWGXtrxMIMOReport::asJsonObject() {
|
||||||
|
QJsonObject* obj = new QJsonObject();
|
||||||
|
if(m_success_isSet){
|
||||||
|
obj->insert("success", QJsonValue(success));
|
||||||
|
}
|
||||||
|
if(m_fifo_size_isSet){
|
||||||
|
obj->insert("fifoSize", QJsonValue(fifo_size));
|
||||||
|
}
|
||||||
|
if(m_fifo_fill_rx_isSet){
|
||||||
|
obj->insert("fifoFillRx", QJsonValue(fifo_fill_rx));
|
||||||
|
}
|
||||||
|
if(m_fifo_fill_tx_isSet){
|
||||||
|
obj->insert("fifoFillTx", QJsonValue(fifo_fill_tx));
|
||||||
|
}
|
||||||
|
if(m_temperature_isSet){
|
||||||
|
obj->insert("temperature", QJsonValue(temperature));
|
||||||
|
}
|
||||||
|
if(m_gps_lock_isSet){
|
||||||
|
obj->insert("gpsLock", QJsonValue(gps_lock));
|
||||||
|
}
|
||||||
|
if(m_actual_input_rate_isSet){
|
||||||
|
obj->insert("actualInputRate", QJsonValue(actual_input_rate));
|
||||||
|
}
|
||||||
|
if(m_actual_output_rate_isSet){
|
||||||
|
obj->insert("actualOutputRate", QJsonValue(actual_output_rate));
|
||||||
|
}
|
||||||
|
if(m_clock_gen_rate_isSet){
|
||||||
|
obj->insert("clockGenRate", QJsonValue(clock_gen_rate));
|
||||||
|
}
|
||||||
|
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
|
||||||
|
qint32
|
||||||
|
SWGXtrxMIMOReport::getSuccess() {
|
||||||
|
return success;
|
||||||
|
}
|
||||||
|
void
|
||||||
|
SWGXtrxMIMOReport::setSuccess(qint32 success) {
|
||||||
|
this->success = success;
|
||||||
|
this->m_success_isSet = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
qint32
|
||||||
|
SWGXtrxMIMOReport::getFifoSize() {
|
||||||
|
return fifo_size;
|
||||||
|
}
|
||||||
|
void
|
||||||
|
SWGXtrxMIMOReport::setFifoSize(qint32 fifo_size) {
|
||||||
|
this->fifo_size = fifo_size;
|
||||||
|
this->m_fifo_size_isSet = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
qint32
|
||||||
|
SWGXtrxMIMOReport::getFifoFillRx() {
|
||||||
|
return fifo_fill_rx;
|
||||||
|
}
|
||||||
|
void
|
||||||
|
SWGXtrxMIMOReport::setFifoFillRx(qint32 fifo_fill_rx) {
|
||||||
|
this->fifo_fill_rx = fifo_fill_rx;
|
||||||
|
this->m_fifo_fill_rx_isSet = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
qint32
|
||||||
|
SWGXtrxMIMOReport::getFifoFillTx() {
|
||||||
|
return fifo_fill_tx;
|
||||||
|
}
|
||||||
|
void
|
||||||
|
SWGXtrxMIMOReport::setFifoFillTx(qint32 fifo_fill_tx) {
|
||||||
|
this->fifo_fill_tx = fifo_fill_tx;
|
||||||
|
this->m_fifo_fill_tx_isSet = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
float
|
||||||
|
SWGXtrxMIMOReport::getTemperature() {
|
||||||
|
return temperature;
|
||||||
|
}
|
||||||
|
void
|
||||||
|
SWGXtrxMIMOReport::setTemperature(float temperature) {
|
||||||
|
this->temperature = temperature;
|
||||||
|
this->m_temperature_isSet = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
qint32
|
||||||
|
SWGXtrxMIMOReport::getGpsLock() {
|
||||||
|
return gps_lock;
|
||||||
|
}
|
||||||
|
void
|
||||||
|
SWGXtrxMIMOReport::setGpsLock(qint32 gps_lock) {
|
||||||
|
this->gps_lock = gps_lock;
|
||||||
|
this->m_gps_lock_isSet = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
qint32
|
||||||
|
SWGXtrxMIMOReport::getActualInputRate() {
|
||||||
|
return actual_input_rate;
|
||||||
|
}
|
||||||
|
void
|
||||||
|
SWGXtrxMIMOReport::setActualInputRate(qint32 actual_input_rate) {
|
||||||
|
this->actual_input_rate = actual_input_rate;
|
||||||
|
this->m_actual_input_rate_isSet = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
qint32
|
||||||
|
SWGXtrxMIMOReport::getActualOutputRate() {
|
||||||
|
return actual_output_rate;
|
||||||
|
}
|
||||||
|
void
|
||||||
|
SWGXtrxMIMOReport::setActualOutputRate(qint32 actual_output_rate) {
|
||||||
|
this->actual_output_rate = actual_output_rate;
|
||||||
|
this->m_actual_output_rate_isSet = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
qint32
|
||||||
|
SWGXtrxMIMOReport::getClockGenRate() {
|
||||||
|
return clock_gen_rate;
|
||||||
|
}
|
||||||
|
void
|
||||||
|
SWGXtrxMIMOReport::setClockGenRate(qint32 clock_gen_rate) {
|
||||||
|
this->clock_gen_rate = clock_gen_rate;
|
||||||
|
this->m_clock_gen_rate_isSet = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool
|
||||||
|
SWGXtrxMIMOReport::isSet(){
|
||||||
|
bool isObjectUpdated = false;
|
||||||
|
do{
|
||||||
|
if(m_success_isSet){
|
||||||
|
isObjectUpdated = true; break;
|
||||||
|
}
|
||||||
|
if(m_fifo_size_isSet){
|
||||||
|
isObjectUpdated = true; break;
|
||||||
|
}
|
||||||
|
if(m_fifo_fill_rx_isSet){
|
||||||
|
isObjectUpdated = true; break;
|
||||||
|
}
|
||||||
|
if(m_fifo_fill_tx_isSet){
|
||||||
|
isObjectUpdated = true; break;
|
||||||
|
}
|
||||||
|
if(m_temperature_isSet){
|
||||||
|
isObjectUpdated = true; break;
|
||||||
|
}
|
||||||
|
if(m_gps_lock_isSet){
|
||||||
|
isObjectUpdated = true; break;
|
||||||
|
}
|
||||||
|
if(m_actual_input_rate_isSet){
|
||||||
|
isObjectUpdated = true; break;
|
||||||
|
}
|
||||||
|
if(m_actual_output_rate_isSet){
|
||||||
|
isObjectUpdated = true; break;
|
||||||
|
}
|
||||||
|
if(m_clock_gen_rate_isSet){
|
||||||
|
isObjectUpdated = true; break;
|
||||||
|
}
|
||||||
|
}while(false);
|
||||||
|
return isObjectUpdated;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
106
swagger/sdrangel/code/qt5/client/SWGXtrxMIMOReport.h
Normal file
106
swagger/sdrangel/code/qt5/client/SWGXtrxMIMOReport.h
Normal file
@ -0,0 +1,106 @@
|
|||||||
|
/**
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* SWGXtrxMIMOReport.h
|
||||||
|
*
|
||||||
|
* XTRX
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SWGXtrxMIMOReport_H_
|
||||||
|
#define SWGXtrxMIMOReport_H_
|
||||||
|
|
||||||
|
#include <QJsonObject>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#include "SWGObject.h"
|
||||||
|
#include "export.h"
|
||||||
|
|
||||||
|
namespace SWGSDRangel {
|
||||||
|
|
||||||
|
class SWG_API SWGXtrxMIMOReport: public SWGObject {
|
||||||
|
public:
|
||||||
|
SWGXtrxMIMOReport();
|
||||||
|
SWGXtrxMIMOReport(QString* json);
|
||||||
|
virtual ~SWGXtrxMIMOReport();
|
||||||
|
void init();
|
||||||
|
void cleanup();
|
||||||
|
|
||||||
|
virtual QString asJson () override;
|
||||||
|
virtual QJsonObject* asJsonObject() override;
|
||||||
|
virtual void fromJsonObject(QJsonObject &json) override;
|
||||||
|
virtual SWGXtrxMIMOReport* fromJson(QString &jsonString) override;
|
||||||
|
|
||||||
|
qint32 getSuccess();
|
||||||
|
void setSuccess(qint32 success);
|
||||||
|
|
||||||
|
qint32 getFifoSize();
|
||||||
|
void setFifoSize(qint32 fifo_size);
|
||||||
|
|
||||||
|
qint32 getFifoFillRx();
|
||||||
|
void setFifoFillRx(qint32 fifo_fill_rx);
|
||||||
|
|
||||||
|
qint32 getFifoFillTx();
|
||||||
|
void setFifoFillTx(qint32 fifo_fill_tx);
|
||||||
|
|
||||||
|
float getTemperature();
|
||||||
|
void setTemperature(float temperature);
|
||||||
|
|
||||||
|
qint32 getGpsLock();
|
||||||
|
void setGpsLock(qint32 gps_lock);
|
||||||
|
|
||||||
|
qint32 getActualInputRate();
|
||||||
|
void setActualInputRate(qint32 actual_input_rate);
|
||||||
|
|
||||||
|
qint32 getActualOutputRate();
|
||||||
|
void setActualOutputRate(qint32 actual_output_rate);
|
||||||
|
|
||||||
|
qint32 getClockGenRate();
|
||||||
|
void setClockGenRate(qint32 clock_gen_rate);
|
||||||
|
|
||||||
|
|
||||||
|
virtual bool isSet() override;
|
||||||
|
|
||||||
|
private:
|
||||||
|
qint32 success;
|
||||||
|
bool m_success_isSet;
|
||||||
|
|
||||||
|
qint32 fifo_size;
|
||||||
|
bool m_fifo_size_isSet;
|
||||||
|
|
||||||
|
qint32 fifo_fill_rx;
|
||||||
|
bool m_fifo_fill_rx_isSet;
|
||||||
|
|
||||||
|
qint32 fifo_fill_tx;
|
||||||
|
bool m_fifo_fill_tx_isSet;
|
||||||
|
|
||||||
|
float temperature;
|
||||||
|
bool m_temperature_isSet;
|
||||||
|
|
||||||
|
qint32 gps_lock;
|
||||||
|
bool m_gps_lock_isSet;
|
||||||
|
|
||||||
|
qint32 actual_input_rate;
|
||||||
|
bool m_actual_input_rate_isSet;
|
||||||
|
|
||||||
|
qint32 actual_output_rate;
|
||||||
|
bool m_actual_output_rate_isSet;
|
||||||
|
|
||||||
|
qint32 clock_gen_rate;
|
||||||
|
bool m_clock_gen_rate_isSet;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif /* SWGXtrxMIMOReport_H_ */
|
1122
swagger/sdrangel/code/qt5/client/SWGXtrxMIMOSettings.cpp
Normal file
1122
swagger/sdrangel/code/qt5/client/SWGXtrxMIMOSettings.cpp
Normal file
File diff suppressed because it is too large
Load Diff
323
swagger/sdrangel/code/qt5/client/SWGXtrxMIMOSettings.h
Normal file
323
swagger/sdrangel/code/qt5/client/SWGXtrxMIMOSettings.h
Normal file
@ -0,0 +1,323 @@
|
|||||||
|
/**
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* SWGXtrxMIMOSettings.h
|
||||||
|
*
|
||||||
|
* XTRX
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SWGXtrxMIMOSettings_H_
|
||||||
|
#define SWGXtrxMIMOSettings_H_
|
||||||
|
|
||||||
|
#include <QJsonObject>
|
||||||
|
|
||||||
|
|
||||||
|
#include <QString>
|
||||||
|
|
||||||
|
#include "SWGObject.h"
|
||||||
|
#include "export.h"
|
||||||
|
|
||||||
|
namespace SWGSDRangel {
|
||||||
|
|
||||||
|
class SWG_API SWGXtrxMIMOSettings: public SWGObject {
|
||||||
|
public:
|
||||||
|
SWGXtrxMIMOSettings();
|
||||||
|
SWGXtrxMIMOSettings(QString* json);
|
||||||
|
virtual ~SWGXtrxMIMOSettings();
|
||||||
|
void init();
|
||||||
|
void cleanup();
|
||||||
|
|
||||||
|
virtual QString asJson () override;
|
||||||
|
virtual QJsonObject* asJsonObject() override;
|
||||||
|
virtual void fromJsonObject(QJsonObject &json) override;
|
||||||
|
virtual SWGXtrxMIMOSettings* fromJson(QString &jsonString) override;
|
||||||
|
|
||||||
|
qint32 getExtClock();
|
||||||
|
void setExtClock(qint32 ext_clock);
|
||||||
|
|
||||||
|
qint32 getExtClockFreq();
|
||||||
|
void setExtClockFreq(qint32 ext_clock_freq);
|
||||||
|
|
||||||
|
qint32 getGpioDir();
|
||||||
|
void setGpioDir(qint32 gpio_dir);
|
||||||
|
|
||||||
|
qint32 getGpioPins();
|
||||||
|
void setGpioPins(qint32 gpio_pins);
|
||||||
|
|
||||||
|
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);
|
||||||
|
|
||||||
|
qint32 getRxDevSampleRate();
|
||||||
|
void setRxDevSampleRate(qint32 rx_dev_sample_rate);
|
||||||
|
|
||||||
|
qint32 getLog2HardDecim();
|
||||||
|
void setLog2HardDecim(qint32 log2_hard_decim);
|
||||||
|
|
||||||
|
qint32 getLog2SoftDecim();
|
||||||
|
void setLog2SoftDecim(qint32 log2_soft_decim);
|
||||||
|
|
||||||
|
qint64 getRxCenterFrequency();
|
||||||
|
void setRxCenterFrequency(qint64 rx_center_frequency);
|
||||||
|
|
||||||
|
qint32 getDcBlock();
|
||||||
|
void setDcBlock(qint32 dc_block);
|
||||||
|
|
||||||
|
qint32 getIqCorrection();
|
||||||
|
void setIqCorrection(qint32 iq_correction);
|
||||||
|
|
||||||
|
qint32 getNcoEnableRx();
|
||||||
|
void setNcoEnableRx(qint32 nco_enable_rx);
|
||||||
|
|
||||||
|
qint32 getNcoFrequencyRx();
|
||||||
|
void setNcoFrequencyRx(qint32 nco_frequency_rx);
|
||||||
|
|
||||||
|
qint32 getAntennaPathRx();
|
||||||
|
void setAntennaPathRx(qint32 antenna_path_rx);
|
||||||
|
|
||||||
|
qint32 getIqOrder();
|
||||||
|
void setIqOrder(qint32 iq_order);
|
||||||
|
|
||||||
|
qint32 getLpfBwRx0();
|
||||||
|
void setLpfBwRx0(qint32 lpf_bw_rx0);
|
||||||
|
|
||||||
|
qint32 getGainRx0();
|
||||||
|
void setGainRx0(qint32 gain_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);
|
||||||
|
|
||||||
|
qint32 getPwrmodeRx0();
|
||||||
|
void setPwrmodeRx0(qint32 pwrmode_rx0);
|
||||||
|
|
||||||
|
qint32 getLpfBwRx1();
|
||||||
|
void setLpfBwRx1(qint32 lpf_bw_rx1);
|
||||||
|
|
||||||
|
qint32 getGainRx1();
|
||||||
|
void setGainRx1(qint32 gain_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);
|
||||||
|
|
||||||
|
qint32 getPwrmodeRx1();
|
||||||
|
void setPwrmodeRx1(qint32 pwrmode_rx1);
|
||||||
|
|
||||||
|
qint32 getTxDevSampleRate();
|
||||||
|
void setTxDevSampleRate(qint32 tx_dev_sample_rate);
|
||||||
|
|
||||||
|
qint32 getLog2HardInterp();
|
||||||
|
void setLog2HardInterp(qint32 log2_hard_interp);
|
||||||
|
|
||||||
|
qint32 getLog2SoftInterp();
|
||||||
|
void setLog2SoftInterp(qint32 log2_soft_interp);
|
||||||
|
|
||||||
|
qint64 getTxCenterFrequency();
|
||||||
|
void setTxCenterFrequency(qint64 tx_center_frequency);
|
||||||
|
|
||||||
|
qint32 getNcoEnableTx();
|
||||||
|
void setNcoEnableTx(qint32 nco_enable_tx);
|
||||||
|
|
||||||
|
qint32 getNcoFrequencyTx();
|
||||||
|
void setNcoFrequencyTx(qint32 nco_frequency_tx);
|
||||||
|
|
||||||
|
qint32 getAntennaPathTx();
|
||||||
|
void setAntennaPathTx(qint32 antenna_path_tx);
|
||||||
|
|
||||||
|
qint32 getLpfBwTx0();
|
||||||
|
void setLpfBwTx0(qint32 lpf_bw_tx0);
|
||||||
|
|
||||||
|
qint32 getGainTx0();
|
||||||
|
void setGainTx0(qint32 gain_tx0);
|
||||||
|
|
||||||
|
qint32 getPwrmodeTx0();
|
||||||
|
void setPwrmodeTx0(qint32 pwrmode_tx0);
|
||||||
|
|
||||||
|
qint32 getLpfBwTx1();
|
||||||
|
void setLpfBwTx1(qint32 lpf_bw_tx1);
|
||||||
|
|
||||||
|
qint32 getGainTx1();
|
||||||
|
void setGainTx1(qint32 gain_tx1);
|
||||||
|
|
||||||
|
qint32 getPwrmodeTx1();
|
||||||
|
void setPwrmodeTx1(qint32 pwrmode_tx1);
|
||||||
|
|
||||||
|
|
||||||
|
virtual bool isSet() override;
|
||||||
|
|
||||||
|
private:
|
||||||
|
qint32 ext_clock;
|
||||||
|
bool m_ext_clock_isSet;
|
||||||
|
|
||||||
|
qint32 ext_clock_freq;
|
||||||
|
bool m_ext_clock_freq_isSet;
|
||||||
|
|
||||||
|
qint32 gpio_dir;
|
||||||
|
bool m_gpio_dir_isSet;
|
||||||
|
|
||||||
|
qint32 gpio_pins;
|
||||||
|
bool m_gpio_pins_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;
|
||||||
|
|
||||||
|
qint32 rx_dev_sample_rate;
|
||||||
|
bool m_rx_dev_sample_rate_isSet;
|
||||||
|
|
||||||
|
qint32 log2_hard_decim;
|
||||||
|
bool m_log2_hard_decim_isSet;
|
||||||
|
|
||||||
|
qint32 log2_soft_decim;
|
||||||
|
bool m_log2_soft_decim_isSet;
|
||||||
|
|
||||||
|
qint64 rx_center_frequency;
|
||||||
|
bool m_rx_center_frequency_isSet;
|
||||||
|
|
||||||
|
qint32 dc_block;
|
||||||
|
bool m_dc_block_isSet;
|
||||||
|
|
||||||
|
qint32 iq_correction;
|
||||||
|
bool m_iq_correction_isSet;
|
||||||
|
|
||||||
|
qint32 nco_enable_rx;
|
||||||
|
bool m_nco_enable_rx_isSet;
|
||||||
|
|
||||||
|
qint32 nco_frequency_rx;
|
||||||
|
bool m_nco_frequency_rx_isSet;
|
||||||
|
|
||||||
|
qint32 antenna_path_rx;
|
||||||
|
bool m_antenna_path_rx_isSet;
|
||||||
|
|
||||||
|
qint32 iq_order;
|
||||||
|
bool m_iq_order_isSet;
|
||||||
|
|
||||||
|
qint32 lpf_bw_rx0;
|
||||||
|
bool m_lpf_bw_rx0_isSet;
|
||||||
|
|
||||||
|
qint32 gain_rx0;
|
||||||
|
bool m_gain_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;
|
||||||
|
|
||||||
|
qint32 pwrmode_rx0;
|
||||||
|
bool m_pwrmode_rx0_isSet;
|
||||||
|
|
||||||
|
qint32 lpf_bw_rx1;
|
||||||
|
bool m_lpf_bw_rx1_isSet;
|
||||||
|
|
||||||
|
qint32 gain_rx1;
|
||||||
|
bool m_gain_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;
|
||||||
|
|
||||||
|
qint32 pwrmode_rx1;
|
||||||
|
bool m_pwrmode_rx1_isSet;
|
||||||
|
|
||||||
|
qint32 tx_dev_sample_rate;
|
||||||
|
bool m_tx_dev_sample_rate_isSet;
|
||||||
|
|
||||||
|
qint32 log2_hard_interp;
|
||||||
|
bool m_log2_hard_interp_isSet;
|
||||||
|
|
||||||
|
qint32 log2_soft_interp;
|
||||||
|
bool m_log2_soft_interp_isSet;
|
||||||
|
|
||||||
|
qint64 tx_center_frequency;
|
||||||
|
bool m_tx_center_frequency_isSet;
|
||||||
|
|
||||||
|
qint32 nco_enable_tx;
|
||||||
|
bool m_nco_enable_tx_isSet;
|
||||||
|
|
||||||
|
qint32 nco_frequency_tx;
|
||||||
|
bool m_nco_frequency_tx_isSet;
|
||||||
|
|
||||||
|
qint32 antenna_path_tx;
|
||||||
|
bool m_antenna_path_tx_isSet;
|
||||||
|
|
||||||
|
qint32 lpf_bw_tx0;
|
||||||
|
bool m_lpf_bw_tx0_isSet;
|
||||||
|
|
||||||
|
qint32 gain_tx0;
|
||||||
|
bool m_gain_tx0_isSet;
|
||||||
|
|
||||||
|
qint32 pwrmode_tx0;
|
||||||
|
bool m_pwrmode_tx0_isSet;
|
||||||
|
|
||||||
|
qint32 lpf_bw_tx1;
|
||||||
|
bool m_lpf_bw_tx1_isSet;
|
||||||
|
|
||||||
|
qint32 gain_tx1;
|
||||||
|
bool m_gain_tx1_isSet;
|
||||||
|
|
||||||
|
qint32 pwrmode_tx1;
|
||||||
|
bool m_pwrmode_tx1_isSet;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif /* SWGXtrxMIMOSettings_H_ */
|
Loading…
Reference in New Issue
Block a user