|
|
@ -324,55 +324,78 @@ void Hdf5::scenarioRead(ScenGenHardwareOutput_t &scenParams) |
|
|
|
|
|
|
|
/*********** /registerParameters/ddcParameters/startFreqLut ***************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/ddcParameters/startFreqLut", floatArray); |
|
|
|
scenParams.hwRegister.startFreqLut.clear(); |
|
|
|
scenParams.hwRegister.ddcParams.startFreqLut.clear(); |
|
|
|
for (quint32 var = 0; var < 4; var++) |
|
|
|
scenParams.hwRegister.startFreqLut.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
scenParams.hwRegister.ddcParams.startFreqLut.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
|
|
|
|
/*********** /registerParameters/ddcParameters/endFreqLut ***************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/ddcParameters/endFreqLut", floatArray); |
|
|
|
scenParams.hwRegister.endFreqLut.clear(); |
|
|
|
scenParams.hwRegister.ddcParams.endFreqLut.clear(); |
|
|
|
for (quint32 var = 0; var < 4; var++) |
|
|
|
scenParams.hwRegister.endFreqLut.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
scenParams.hwRegister.ddcParams.endFreqLut.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
|
|
|
|
/*********** /registerParameters/ddcParameters/startFreqPointLut ***************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/ddcParameters/startFreqPointLut", floatArray); |
|
|
|
QList<quint32> startFreqPoint; |
|
|
|
scenParams.hwRegister.ddcParams.startFreqPoint.clear(); |
|
|
|
for (quint32 var = 0; var < 4; var++) |
|
|
|
startFreqPoint.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
scenParams.hwRegister.ddcParams.startFreqPoint.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
|
|
|
|
/*********** /registerParameters/ddcParameters/endFreqPointLut ***************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/ddcParameters/endFreqPointLut", floatArray); |
|
|
|
QList<quint32> endFreqPoint; |
|
|
|
scenParams.hwRegister.ddcParams.endFreqPoint.clear(); |
|
|
|
for (quint32 var = 0; var < 4; var++) |
|
|
|
endFreqPoint.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
|
|
|
|
/*********** /registerParameters/ddcParameters/freqPointLut ***************/ |
|
|
|
scenParams.hwRegister.freqPointLut.clear(); |
|
|
|
for (qint32 var = 0; var < 4; var++) |
|
|
|
{ |
|
|
|
FrequencyPointLut_t frequencyPointLut; |
|
|
|
frequencyPointLut.startFreqPoint = startFreqPoint.at(var); |
|
|
|
frequencyPointLut.endFreqPoint = endFreqPoint.at(var); |
|
|
|
scenParams.hwRegister.freqPointLut.push_back(frequencyPointLut); |
|
|
|
} |
|
|
|
scenParams.hwRegister.ddcParams.endFreqPoint.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
|
|
|
|
/*********** /registerParameters/ddcParameters/freqStepLut ***************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/ddcParameters/freqStepLut", floatArray); |
|
|
|
scenParams.hwRegister.freqStepLut.clear(); |
|
|
|
scenParams.hwRegister.ddcParams.freqStepLut.clear(); |
|
|
|
for (quint32 var = 0; var < 4; var++) |
|
|
|
scenParams.hwRegister.freqStepLut.push_back(floatArray[var]); |
|
|
|
scenParams.hwRegister.ddcParams.freqStepLut.push_back(floatArray[var]); |
|
|
|
|
|
|
|
/*********** /registerParameters/ddcParameters/lpfWeightStepLut ***************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/ddcParameters/lpfWeightStepLut", floatArray); |
|
|
|
scenParams.hwRegister.lpfWeightStepLut.clear(); |
|
|
|
scenParams.hwRegister.ddcParams.lpfWeightStepLut.clear(); |
|
|
|
for (quint32 var = 0; var < 4; var++) |
|
|
|
scenParams.hwRegister.lpfWeightStepLut.push_back(floatArray[var]); |
|
|
|
scenParams.hwRegister.ddcParams.lpfWeightStepLut.push_back(floatArray[var]); |
|
|
|
|
|
|
|
/*********** /registerParameters/ddcParameters/startLpfWeightLut ***************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/ddcParameters/startLpfWeightLut", floatArray); |
|
|
|
scenParams.hwRegister.startLpfWeightLut.clear(); |
|
|
|
scenParams.hwRegister.ddcParams.startLpfWeightLut.clear(); |
|
|
|
for (quint32 var = 0; var < 4; var++) |
|
|
|
scenParams.hwRegister.startLpfWeightLut.push_back(floatArray[var]); |
|
|
|
scenParams.hwRegister.ddcParams.startLpfWeightLut.push_back(floatArray[var]); |
|
|
|
|
|
|
|
/*********** /registerParameters/ddcParameters/startLpfLut ****************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/ddcParameters/startLpfLut", floatArray); |
|
|
|
scenParams.hwRegister.ddcParams.startLpf.clear(); |
|
|
|
for (quint32 i = 0; i < 4; i++) |
|
|
|
{ |
|
|
|
QList<quint32> temp; |
|
|
|
for (quint32 j = 0; j < 64; j++) |
|
|
|
{ |
|
|
|
temp.push_back(static_cast<quint32>(floatArray[j + i * 64])); |
|
|
|
} |
|
|
|
scenParams.hwRegister.ddcParams.startLpf.push_back(temp); |
|
|
|
} |
|
|
|
|
|
|
|
/*********** /registerParameters/ddcParameters/endLpfLut ****************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/ddcParameters/endLpfLut", floatArray); |
|
|
|
scenParams.hwRegister.ddcParams.endLpf.clear(); |
|
|
|
|
|
|
|
for (quint32 i = 0; i < 4; i++) |
|
|
|
{ |
|
|
|
QList<quint32> temp; |
|
|
|
for (quint32 j = 0; j < 64; j++) |
|
|
|
{ |
|
|
|
temp.push_back(static_cast<quint32>(floatArray[j + i * 64])); |
|
|
|
} |
|
|
|
scenParams.hwRegister.ddcParams.endLpf.push_back(temp); |
|
|
|
} |
|
|
|
|
|
|
|
/************* /registerParameters/ddcParameters/lpfScale *****************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/ddcParameters/lpfScale", floatArray); |
|
|
|
scenParams.hwRegister.ddcParams.lpfScale.clear(); |
|
|
|
for (quint8 i = 0; i < 4; i++) |
|
|
|
scenParams.hwRegister.ddcParams.lpfScale.push_back(static_cast<quint8>(floatArray[i])); |
|
|
|
|
|
|
|
/**************** /registerParameters/dTgcLut ********************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/dTgcLut", floatArray); |
|
|
@ -510,95 +533,75 @@ void Hdf5::scenarioRead(ScenGenHardwareOutput_t &scenParams) |
|
|
|
|
|
|
|
/********* /registerParameters/apodizationParameters/maxApertureSize ************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/apodizationParameters/maxApertureSize", floatArray); |
|
|
|
QList<quint32> maxApertureSize; |
|
|
|
scenParams.hwRegister.apodizationParams.maxApertureSize.clear(); |
|
|
|
for (quint32 var = 0; var < scenParams.hwRegister.rxBeamFormerTypeNumber; var++) |
|
|
|
maxApertureSize.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
scenParams.hwRegister.apodizationParams.maxApertureSize.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
|
|
|
|
/********* /registerParameters/apodizationParameters/winOpenStartPoint ************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/apodizationParameters/winOpenStartPoint", floatArray); |
|
|
|
QList<quint32> winOpenStartPoint; |
|
|
|
scenParams.hwRegister.apodizationParams.winOpenStartPoint.clear(); |
|
|
|
for (quint32 var = 0; var < scenParams.hwRegister.rxBeamFormerTypeNumber; var++) |
|
|
|
winOpenStartPoint.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
scenParams.hwRegister.apodizationParams.winOpenStartPoint.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
|
|
|
|
/********* /registerParameters/apodizationParameters/winOpenStopPoint ************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/apodizationParameters/winOpenStopPoint", floatArray); |
|
|
|
QList<quint32> winOpenStopPoint; |
|
|
|
scenParams.hwRegister.apodizationParams.winOpenStopPoint.clear(); |
|
|
|
for (quint32 var = 0; var < scenParams.hwRegister.rxBeamFormerTypeNumber; var++) |
|
|
|
winOpenStopPoint.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
scenParams.hwRegister.apodizationParams.winOpenStopPoint.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
|
|
|
|
/********* /registerParameters/apodizationParameters/winOpenStartVal ************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/apodizationParameters/winOpenStartVal", floatArray); |
|
|
|
QList<float> winOpenStartVal; |
|
|
|
scenParams.hwRegister.apodizationParams.winOpenStartVal.clear(); |
|
|
|
for (quint32 var = 0; var < scenParams.hwRegister.rxBeamFormerTypeNumber; var++) |
|
|
|
winOpenStartVal.push_back(floatArray[var]); |
|
|
|
scenParams.hwRegister.apodizationParams.winOpenStartVal.push_back(floatArray[var]); |
|
|
|
|
|
|
|
/********* /registerParameters/apodizationParameters/winOpenStopVal ************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/apodizationParameters/winOpenStopVal", floatArray); |
|
|
|
QList<float> winOpenStopVal; |
|
|
|
scenParams.hwRegister.apodizationParams.winOpenStopVal.clear(); |
|
|
|
for (quint32 var = 0; var < scenParams.hwRegister.rxBeamFormerTypeNumber; var++) |
|
|
|
winOpenStopVal.push_back(floatArray[var]); |
|
|
|
scenParams.hwRegister.apodizationParams.winOpenStopVal.push_back(floatArray[var]); |
|
|
|
|
|
|
|
/********* /registerParameters/apodizationParameters/winOpenStepVal ************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/apodizationParameters/winOpenStepVal", floatArray); |
|
|
|
QList<float> winOpenStepVal; |
|
|
|
scenParams.hwRegister.apodizationParams.winOpenStepVal.clear(); |
|
|
|
for (quint32 var = 0; var < scenParams.hwRegister.rxBeamFormerTypeNumber; var++) |
|
|
|
winOpenStepVal.push_back(floatArray[var]); |
|
|
|
scenParams.hwRegister.apodizationParams.winOpenStepVal.push_back(floatArray[var]); |
|
|
|
|
|
|
|
/********* /registerParameters/apodizationParameters/minApertureSize ************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/apodizationParameters/minApertureSize", floatArray); |
|
|
|
QList<quint32> minApertureSize; |
|
|
|
scenParams.hwRegister.apodizationParams.minApertureSize.clear(); |
|
|
|
for (quint32 var = 0; var < scenParams.hwRegister.rxBeamFormerTypeNumber; var++) |
|
|
|
minApertureSize.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
scenParams.hwRegister.apodizationParams.minApertureSize.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
|
|
|
|
/********* /registerParameters/apodizationParameters/rxActiveElementStep1 ************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/apodizationParameters/rxActiveElementStep1", floatArray); |
|
|
|
QList<float> rxActiveElementStep1; |
|
|
|
scenParams.hwRegister.apodizationParams.rxActiveElementStep1.clear(); |
|
|
|
for (quint32 var = 0; var < scenParams.hwRegister.rxBeamFormerTypeNumber; var++) |
|
|
|
rxActiveElementStep1.push_back(floatArray[var]); |
|
|
|
scenParams.hwRegister.apodizationParams.rxActiveElementStep1.push_back(floatArray[var]); |
|
|
|
|
|
|
|
/********* /registerParameters/apodizationParameters/rxActiveElementStep2 ************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/apodizationParameters/rxActiveElementStep2", floatArray); |
|
|
|
QList<float> rxActiveElementStep2; |
|
|
|
scenParams.hwRegister.apodizationParams.rxActiveElementStep2.clear(); |
|
|
|
for (quint32 var = 0; var < scenParams.hwRegister.rxBeamFormerTypeNumber; var++) |
|
|
|
rxActiveElementStep2.push_back(floatArray[var]); |
|
|
|
scenParams.hwRegister.apodizationParams.rxActiveElementStep2.push_back(floatArray[var]); |
|
|
|
|
|
|
|
/********* /registerParameters/apodizationParameters/rxActiveElementStepStartPoint ************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/apodizationParameters/rxActiveElementStepStartPoint", floatArray); |
|
|
|
QList<quint32> rxActiveElementStepStartPoint; |
|
|
|
scenParams.hwRegister.apodizationParams.rxActiveElementStepStartPoint.clear(); |
|
|
|
for (quint32 var = 0; var < scenParams.hwRegister.rxBeamFormerTypeNumber; var++) |
|
|
|
rxActiveElementStepStartPoint.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
scenParams.hwRegister.apodizationParams.rxActiveElementStepStartPoint.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
|
|
|
|
/********* /registerParameters/apodizationParameters/rxActiveElementStepStopPoint ************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/apodizationParameters/rxActiveElementStepStopPoint", floatArray); |
|
|
|
QList<quint32> rxActiveElementStepStopPoint; |
|
|
|
scenParams.hwRegister.apodizationParams.rxActiveElementStepStopPoint.clear(); |
|
|
|
for (quint32 var = 0; var < scenParams.hwRegister.rxBeamFormerTypeNumber; var++) |
|
|
|
rxActiveElementStepStopPoint.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
scenParams.hwRegister.apodizationParams.rxActiveElementStepStopPoint.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
|
|
|
|
/********* /registerParameters/apodizationParameters/rxActiveElementStepChangePoint ************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/apodizationParameters/rxActiveElementStepChangePoint", floatArray); |
|
|
|
QList<quint32> rxActiveElementStepChangePoint; |
|
|
|
scenParams.hwRegister.apodizationParams.rxActiveElementStepChangePoint.clear(); |
|
|
|
for (quint32 var = 0; var < scenParams.hwRegister.rxBeamFormerTypeNumber; var++) |
|
|
|
rxActiveElementStepChangePoint.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
|
|
|
|
/*********** registerParameters/apodizationParameters ***************/ |
|
|
|
scenParams.hwRegister.apodizationParams.clear(); |
|
|
|
for (qint32 var = 0; var < scenParams.hwRegister.rxBeamFormerTypeNumber; var++) |
|
|
|
{ |
|
|
|
ApodizationParams_t apoParams; |
|
|
|
apoParams.winOpenStepVal = winOpenStepVal.at(var); |
|
|
|
apoParams.winOpenStopVal = winOpenStopVal.at(var); |
|
|
|
apoParams.maxApertureSize = maxApertureSize.at(var); |
|
|
|
apoParams.minApertureSize = minApertureSize.at(var); |
|
|
|
apoParams.winOpenStartVal = winOpenStartVal.at(var); |
|
|
|
apoParams.winOpenStopPoint = winOpenStopPoint.at(var); |
|
|
|
apoParams.winOpenStartPoint = winOpenStartPoint.at(var); |
|
|
|
apoParams.rxActiveElementStep1 = rxActiveElementStep1.at(var); |
|
|
|
apoParams.rxActiveElementStep2 = rxActiveElementStep2.at(var); |
|
|
|
apoParams.rxActiveElementStepStopPoint = rxActiveElementStepStopPoint.at(var); |
|
|
|
apoParams.rxActiveElementStepStartPoint = rxActiveElementStepStartPoint.at(var); |
|
|
|
apoParams.rxActiveElementStepChangePoint = rxActiveElementStepChangePoint.at(var); |
|
|
|
scenParams.hwRegister.apodizationParams.push_back(apoParams); |
|
|
|
} |
|
|
|
scenParams.hwRegister.apodizationParams.rxActiveElementStepChangePoint.push_back(static_cast<quint32>(floatArray[var])); |
|
|
|
|
|
|
|
/**************** /registerParameters/receiverConfigProperties/mla ********************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/receiverConfigProperties/mla", floatArray); |
|
|
@ -869,51 +872,6 @@ void Hdf5::prbDependParamsRead(ScenPrbDepHardwareParam &prbDepParams) |
|
|
|
atgcObj.atgcCompensateLut = atgcCompensationLut.at(i); |
|
|
|
prbDepParams.prbDepParams.atgcLut.push_back(atgcObj); |
|
|
|
} |
|
|
|
|
|
|
|
/*********** /registerParameters/ddcParameters/startLpfLut ****************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/ddcParameters/startLpfLut", floatArray); |
|
|
|
QList<QList<quint32>> startLpf; |
|
|
|
|
|
|
|
for (quint32 i = 0; i < 4; i++) |
|
|
|
{ |
|
|
|
QList<quint32> temp; |
|
|
|
for (quint32 j = 0; j < 64; j++) |
|
|
|
{ |
|
|
|
temp.push_back(static_cast<quint32>(floatArray[j + i * 64])); |
|
|
|
} |
|
|
|
startLpf.push_back(temp); |
|
|
|
} |
|
|
|
|
|
|
|
/*********** /registerParameters/ddcParameters/endLpfLut ****************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/ddcParameters/endLpfLut", floatArray); |
|
|
|
QList<QList<quint32>> endLpf; |
|
|
|
|
|
|
|
for (quint32 i = 0; i < 4; i++) |
|
|
|
{ |
|
|
|
QList<quint32> temp; |
|
|
|
for (quint32 j = 0; j < 64; j++) |
|
|
|
{ |
|
|
|
temp.push_back(static_cast<quint32>(floatArray[j + i * 64])); |
|
|
|
} |
|
|
|
endLpf.push_back(temp); |
|
|
|
} |
|
|
|
|
|
|
|
/******************* /registerParameters/ddcParameters/lpfLut **********************/ |
|
|
|
prbDepParams.prbDepParams.lpfLut.clear(); |
|
|
|
for (qint8 i = 0; i < 4; i++) |
|
|
|
{ |
|
|
|
Lpf lpfObj; |
|
|
|
lpfObj.startLpf = startLpf.at(i); |
|
|
|
lpfObj.endLpf = endLpf.at(i); |
|
|
|
prbDepParams.prbDepParams.lpfLut.push_back(lpfObj); |
|
|
|
} |
|
|
|
|
|
|
|
/************* /registerParameters/ddcParameters/lpfScale *****************/ |
|
|
|
datasetBranch <float_t>("/registerParameters/ddcParameters/lpfScale", floatArray); |
|
|
|
prbDepParams.prbDepParams.lpfScaleCoeff.clear(); |
|
|
|
for (quint8 i = 0; i < 4; i++) |
|
|
|
prbDepParams.prbDepParams.lpfScaleCoeff.push_back(static_cast<quint8>(floatArray[i])); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|