1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

BladeRF2: REST API: add scale in range report implementation

This commit is contained in:
f4exb 2020-09-14 23:38:06 +02:00
parent 8db26917c5
commit 401134cdd2
2 changed files with 8 additions and 0 deletions

View File

@ -1072,6 +1072,7 @@ void BladeRF2Output::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& resp
response.getBladeRf2OutputReport()->getBandwidthRange()->setMin(min);
response.getBladeRf2OutputReport()->getBandwidthRange()->setMax(max);
response.getBladeRf2OutputReport()->getBandwidthRange()->setStep(step);
response.getBladeRf2OutputReport()->getBandwidthRange()->setScale(scale);
device->getFrequencyRangeTx(f_min, f_max, step, scale);
@ -1079,6 +1080,7 @@ void BladeRF2Output::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& resp
response.getBladeRf2OutputReport()->getFrequencyRange()->setMin(f_min);
response.getBladeRf2OutputReport()->getFrequencyRange()->setMax(f_max);
response.getBladeRf2OutputReport()->getFrequencyRange()->setStep(step);
response.getBladeRf2OutputReport()->getBandwidthRange()->setScale(scale);
device->getGlobalGainRangeTx(min, max, step, scale);
@ -1086,6 +1088,7 @@ void BladeRF2Output::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& resp
response.getBladeRf2OutputReport()->getGlobalGainRange()->setMin(min);
response.getBladeRf2OutputReport()->getGlobalGainRange()->setMax(max);
response.getBladeRf2OutputReport()->getGlobalGainRange()->setStep(step);
response.getBladeRf2OutputReport()->getBandwidthRange()->setScale(scale);
device->getSampleRateRangeTx(min, max, step, scale);
@ -1093,6 +1096,7 @@ void BladeRF2Output::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& resp
response.getBladeRf2OutputReport()->getSampleRateRange()->setMin(min);
response.getBladeRf2OutputReport()->getSampleRateRange()->setMax(max);
response.getBladeRf2OutputReport()->getSampleRateRange()->setStep(step);
response.getBladeRf2OutputReport()->getBandwidthRange()->setScale(scale);
}
}

View File

@ -1164,6 +1164,7 @@ void BladeRF2Input::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& respo
response.getBladeRf2InputReport()->getBandwidthRange()->setMin(min);
response.getBladeRf2InputReport()->getBandwidthRange()->setMax(max);
response.getBladeRf2InputReport()->getBandwidthRange()->setStep(step);
response.getBladeRf2InputReport()->getBandwidthRange()->setScale(scale);
device->getFrequencyRangeRx(f_min, f_max, step, scale);
@ -1171,6 +1172,7 @@ void BladeRF2Input::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& respo
response.getBladeRf2InputReport()->getFrequencyRange()->setMin(f_min);
response.getBladeRf2InputReport()->getFrequencyRange()->setMax(f_max);
response.getBladeRf2InputReport()->getFrequencyRange()->setStep(step);
response.getBladeRf2InputReport()->getBandwidthRange()->setScale(scale);
device->getGlobalGainRangeRx(min, max, step, scale);
@ -1178,6 +1180,7 @@ void BladeRF2Input::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& respo
response.getBladeRf2InputReport()->getGlobalGainRange()->setMin(min);
response.getBladeRf2InputReport()->getGlobalGainRange()->setMax(max);
response.getBladeRf2InputReport()->getGlobalGainRange()->setStep(step);
response.getBladeRf2InputReport()->getBandwidthRange()->setScale(scale);
device->getSampleRateRangeRx(min, max, step, scale);
@ -1185,6 +1188,7 @@ void BladeRF2Input::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& respo
response.getBladeRf2InputReport()->getSampleRateRange()->setMin(min);
response.getBladeRf2InputReport()->getSampleRateRange()->setMax(max);
response.getBladeRf2InputReport()->getSampleRateRange()->setStep(step);
response.getBladeRf2InputReport()->getBandwidthRange()->setScale(scale);
response.getBladeRf2InputReport()->setGainModes(new QList<SWGSDRangel::SWGNamedEnum*>);