42 changed files with 1436 additions and 158 deletions
			
			
		| @ -0,0 +1,23 @@ | |||||
|  | #ifndef APODIZATIONPARAMETERS_H | ||||
|  | #define APODIZATIONPARAMETERS_H | ||||
|  | 
 | ||||
|  | #include "model/hardware/core/lowLevelApi/register/Register.h" | ||||
|  | #include "model/hardware/core/lowLevelApi/register/RegUtils.h" | ||||
|  | 
 | ||||
|  | struct ApodizationParameters { | ||||
|  |     quint32 rxActiveElementStepStartPoint; | ||||
|  |     quint32 rxActiveElementStepStopPoint; | ||||
|  |     quint32 rxActiveElementStepChangePoint; | ||||
|  |     quint32 winOpenStartPoint; | ||||
|  |     quint32 winOpenStopPoint; | ||||
|  |     quint32 minApertureSize; | ||||
|  |     quint32 maxApertureSize; | ||||
|  | 
 | ||||
|  |     float   rxActiveElementStep1; | ||||
|  |     float   rxActiveElementStep2; | ||||
|  |     float   winOpenStartVal; | ||||
|  |     float   winOpenStepVal; | ||||
|  |     float   winOpenStopVal; | ||||
|  | }; | ||||
|  | 
 | ||||
|  | #endif // APODIZATIONPARAMETERS_H
 | ||||
| @ -0,0 +1,48 @@ | |||||
|  | #ifndef ELEMENTSACTIVEENABLE_H | ||||
|  | #define ELEMENTSACTIVEENABLE_H | ||||
|  | 
 | ||||
|  | #include "model/hardware/core/lowLevelApi/register/Register.h" | ||||
|  | #include "model/hardware/core/lowLevelApi/register/RegUtils.h" | ||||
|  | 
 | ||||
|  | #undef  BAR | ||||
|  | 
 | ||||
|  | #define ELEMENTS_MASK   0xFFFFFFFF | ||||
|  | 
 | ||||
|  | #define BAR 0 | ||||
|  | #define OFFSET 0x4D0000 | ||||
|  | #define LENGTH 2U | ||||
|  | 
 | ||||
|  | class ElementsActiveEnable : public Register | ||||
|  | { | ||||
|  | private: | ||||
|  |     QList<quint32> _elements; | ||||
|  | 
 | ||||
|  |     void prepareData(quint32 index) override | ||||
|  |     { | ||||
|  |         elements->setValue(_elements[static_cast<qint32>(index)]); | ||||
|  |     } | ||||
|  | 
 | ||||
|  | public: | ||||
|  |     Field* elements; | ||||
|  | 
 | ||||
|  |     void setElementsActiveEnable (QList<quint32>& elements) | ||||
|  |     { | ||||
|  |         _elements = elements; | ||||
|  |     } | ||||
|  | 
 | ||||
|  |     ElementsActiveEnable(SonoDevice* device, quint32 offset) : Register(BAR, | ||||
|  |                                                                   OFFSET + offset, | ||||
|  |                                                                   device, | ||||
|  |                                                                   LENGTH) | ||||
|  |     { | ||||
|  |         ADD_UNSIGNED_FIELD(elements, ELEMENTS_MASK); | ||||
|  |     } | ||||
|  | }; | ||||
|  | 
 | ||||
|  | #undef ELEMENTS_MASK | ||||
|  | 
 | ||||
|  | #undef BAR | ||||
|  | #undef OFFSET | ||||
|  | #undef LENGTH | ||||
|  | 
 | ||||
|  | #endif // ELEMENTSACTIVEENABLE_H
 | ||||
| @ -0,0 +1,54 @@ | |||||
|  | #ifndef MAXAPERTURESIZE_H | ||||
|  | #define MAXAPERTURESIZE_H | ||||
|  | 
 | ||||
|  | #include "model/scenarioGenerator/core/general/Calculation.h" | ||||
|  | #include "model/hardware/core/lowLevelApi/register/Register.h" | ||||
|  | #include "model/hardware/core/lowLevelApi/register/RegUtils.h" | ||||
|  | #include "ApodizationParameters.h" | ||||
|  | 
 | ||||
|  | #undef  BAR | ||||
|  | 
 | ||||
|  | #define RX_ACTIVE_ELEMENT_STEP_CHANGE_POINT 0x0000FFFF | ||||
|  | #define MAX_APERTURE_SIZE                   0xFFFF0000 | ||||
|  | 
 | ||||
|  | #define BAR     0U | ||||
|  | #define OFFSET  0x480494 | ||||
|  | #define LENGTH  1U | ||||
|  | 
 | ||||
|  | class MaxApertureSize : public Register | ||||
|  | { | ||||
|  | private: | ||||
|  |     quint32 _rxActiveElementStepChangePointQ; | ||||
|  |     quint32 _maxApertureSizeQ; | ||||
|  | 
 | ||||
|  |     void prepareData(quint32 index) override | ||||
|  |     { | ||||
|  |         rxActiveElementStepChangePoint->setValue(_rxActiveElementStepChangePointQ); | ||||
|  |         maxApertureSize->setValue(_maxApertureSizeQ); | ||||
|  |     } | ||||
|  | 
 | ||||
|  | public: | ||||
|  |     Field* rxActiveElementStepChangePoint; | ||||
|  |     Field* maxApertureSize; | ||||
|  | 
 | ||||
|  |     void setMaxApertureSize (ApodizationParameters* params) | ||||
|  |     { | ||||
|  |         _rxActiveElementStepChangePointQ = params->rxActiveElementStepChangePoint; | ||||
|  |         _maxApertureSizeQ = params->maxApertureSize; | ||||
|  |     } | ||||
|  | 
 | ||||
|  |     MaxApertureSize(SonoDevice* device, quint32 offset) : Register(BAR, OFFSET+offset, device, LENGTH) | ||||
|  |     { | ||||
|  |         ADD_UNSIGNED_FIELD(rxActiveElementStepChangePoint, RX_ACTIVE_ELEMENT_STEP_CHANGE_POINT); | ||||
|  |         ADD_UNSIGNED_FIELD(maxApertureSize, MAX_APERTURE_SIZE); | ||||
|  |     } | ||||
|  | }; | ||||
|  | 
 | ||||
|  | #undef RX_ACTIVE_ELEMENT_STEP_CHANGE_POINT | ||||
|  | #undef MAX_APERTURE_SIZE | ||||
|  | 
 | ||||
|  | #undef BAR | ||||
|  | #undef OFFSET | ||||
|  | #undef LENGTH | ||||
|  | 
 | ||||
|  | #endif // MAXAPERTURESIZE_H
 | ||||
| @ -0,0 +1,58 @@ | |||||
|  | #ifndef MINAPERTURESIZE_H | ||||
|  | #define MINAPERTURESIZE_H | ||||
|  | 
 | ||||
|  | #include "model/scenarioGenerator/core/general/Calculation.h" | ||||
|  | #include "model/hardware/core/lowLevelApi/register/Register.h" | ||||
|  | #include "model/hardware/core/lowLevelApi/register/RegUtils.h" | ||||
|  | #include "ApodizationParameters.h" | ||||
|  | 
 | ||||
|  | #undef  BAR | ||||
|  | 
 | ||||
|  | #define WIN_OPEN_STEP_VAL   0x0000FFFF | ||||
|  | #define MIN_APERTURE_SIZE   0xFFFF0000 | ||||
|  | 
 | ||||
|  | #define BAR     0U | ||||
|  | #define OFFSET  0x480488 | ||||
|  | #define LENGTH  1U | ||||
|  | 
 | ||||
|  | class MinApertureSize : public Register | ||||
|  | { | ||||
|  | private: | ||||
|  |     quint32 _winOpenStepValQ; | ||||
|  |     quint32 _minApertureSizeQ; | ||||
|  | 
 | ||||
|  |     void prepareData(quint32 index) override | ||||
|  |     { | ||||
|  |         winOpenStepVal->setValue(_winOpenStepValQ); | ||||
|  |         minApertureSize->setValue(_minApertureSizeQ); | ||||
|  |     } | ||||
|  | 
 | ||||
|  | public: | ||||
|  |     Field* winOpenStepVal; | ||||
|  |     Field* minApertureSize; | ||||
|  | 
 | ||||
|  |     void setMinApertureSize (ApodizationParameters* params) | ||||
|  |     { | ||||
|  |         QVector<float> temp; | ||||
|  |         temp.append(params->winOpenStepVal); | ||||
|  |         QVector<quint32> tempQ = Calculation::qntzr(temp, 0, 16, 23, 0, true); | ||||
|  |         _winOpenStepValQ = tempQ.at(0); | ||||
|  | 
 | ||||
|  |         _minApertureSizeQ = params->minApertureSize; | ||||
|  |     } | ||||
|  | 
 | ||||
|  |     MinApertureSize(SonoDevice* device, quint32 offset) : Register(BAR, OFFSET+offset, device, LENGTH) | ||||
|  |     { | ||||
|  |         ADD_UNSIGNED_FIELD(winOpenStepVal, WIN_OPEN_STEP_VAL); | ||||
|  |         ADD_UNSIGNED_FIELD(minApertureSize, MIN_APERTURE_SIZE); | ||||
|  |     } | ||||
|  | }; | ||||
|  | 
 | ||||
|  | #undef WIN_OPEN_STEP_VAL | ||||
|  | #undef MIN_APERTURE_SIZE | ||||
|  | 
 | ||||
|  | #undef BAR | ||||
|  | #undef OFFSET | ||||
|  | #undef LENGTH | ||||
|  | 
 | ||||
|  | #endif // MINAPERTURESIZE_H
 | ||||
| @ -0,0 +1,54 @@ | |||||
|  | #ifndef RXACTIVEELEMENTPOINT_H | ||||
|  | #define RXACTIVEELEMENTPOINT_H | ||||
|  | 
 | ||||
|  | #include "model/scenarioGenerator/core/general/Calculation.h" | ||||
|  | #include "model/hardware/core/lowLevelApi/register/Register.h" | ||||
|  | #include "model/hardware/core/lowLevelApi/register/RegUtils.h" | ||||
|  | #include "ApodizationParameters.h" | ||||
|  | 
 | ||||
|  | #undef  BAR | ||||
|  | 
 | ||||
|  | #define RX_ACTIVE_ELEMENT_STEP_START_POINT    0x0000FFFF | ||||
|  | #define RX_ACTIVE_ELEMENT_STEP_STOP_POINT     0xFFFF0000 | ||||
|  | 
 | ||||
|  | #define BAR     0U | ||||
|  | #define OFFSET  0x480490 | ||||
|  | #define LENGTH  1U | ||||
|  | 
 | ||||
|  | class RxActiveElementPoint : public Register | ||||
|  | { | ||||
|  | private: | ||||
|  |     quint32 _rxActiveElementStepStartPointQ; | ||||
|  |     quint32 _rxActiveElementStepStopPointQ; | ||||
|  | 
 | ||||
|  |     void prepareData(quint32 index) override | ||||
|  |     { | ||||
|  |         rxActiveElementStepStartPoint->setValue(_rxActiveElementStepStartPointQ); | ||||
|  |         rxActiveElementStepStopPoint->setValue(_rxActiveElementStepStopPointQ); | ||||
|  |     } | ||||
|  | 
 | ||||
|  | public: | ||||
|  |     Field* rxActiveElementStepStartPoint; | ||||
|  |     Field* rxActiveElementStepStopPoint; | ||||
|  | 
 | ||||
|  |     void setRxActiveElementPoint (ApodizationParameters* params) | ||||
|  |     { | ||||
|  |         _rxActiveElementStepStartPointQ = params->rxActiveElementStepStartPoint; | ||||
|  |         _rxActiveElementStepStopPointQ = params->rxActiveElementStepStopPoint; | ||||
|  |     } | ||||
|  | 
 | ||||
|  |     RxActiveElementPoint(SonoDevice* device, quint32 offset) : Register(BAR, OFFSET+offset, device, LENGTH) | ||||
|  |     { | ||||
|  |         ADD_UNSIGNED_FIELD(rxActiveElementStepStartPoint, RX_ACTIVE_ELEMENT_STEP_START_POINT); | ||||
|  |         ADD_UNSIGNED_FIELD(rxActiveElementStepStopPoint, RX_ACTIVE_ELEMENT_STEP_STOP_POINT); | ||||
|  |     } | ||||
|  | }; | ||||
|  | 
 | ||||
|  | #undef RX_ACTIVE_ELEMENT_STEP_START_POINT | ||||
|  | #undef RX_ACTIVE_ELEMENT_STEP_STOP_POINT | ||||
|  | 
 | ||||
|  | #undef BAR | ||||
|  | #undef OFFSET | ||||
|  | #undef LENGTH | ||||
|  | 
 | ||||
|  | #endif // RXACTIVEELEMENTPOINT_H
 | ||||
| @ -0,0 +1,61 @@ | |||||
|  | #ifndef RXACTIVEELEMENTSTEP_H | ||||
|  | #define RXACTIVEELEMENTSTEP_H | ||||
|  | 
 | ||||
|  | #include "model/scenarioGenerator/core/general/Calculation.h" | ||||
|  | #include "model/hardware/core/lowLevelApi/register/Register.h" | ||||
|  | #include "model/hardware/core/lowLevelApi/register/RegUtils.h" | ||||
|  | #include "ApodizationParameters.h" | ||||
|  | 
 | ||||
|  | #undef  BAR | ||||
|  | 
 | ||||
|  | #define RX_ACTIVE_ELEMENT_STEP_1    0x0000FFFF | ||||
|  | #define RX_ACTIVE_ELEMENT_STEP_2    0xFFFF0000 | ||||
|  | 
 | ||||
|  | #define BAR     0U | ||||
|  | #define OFFSET  0x48048C | ||||
|  | #define LENGTH  1U | ||||
|  | 
 | ||||
|  | class RxActiveElementStep : public Register | ||||
|  | { | ||||
|  | private: | ||||
|  |     quint32 _rxActiveElementStep1Q; | ||||
|  |     quint32 _rxActiveElementStep2Q; | ||||
|  | 
 | ||||
|  |     void prepareData(quint32 index) override | ||||
|  |     { | ||||
|  |         rxActiveElementStep1->setValue(_rxActiveElementStep1Q); | ||||
|  |         rxActiveElementStep2->setValue(_rxActiveElementStep2Q); | ||||
|  |     } | ||||
|  | 
 | ||||
|  | public: | ||||
|  |     Field* rxActiveElementStep1; | ||||
|  |     Field* rxActiveElementStep2; | ||||
|  | 
 | ||||
|  |     void setRxActiveElementStep (ApodizationParameters* params) | ||||
|  |     { | ||||
|  |         QVector<float> temp; | ||||
|  |         temp.append(params->rxActiveElementStep1); | ||||
|  |         QVector<quint32> tempQ = Calculation::qntzr(temp, 0, 16, 19, 0, true); | ||||
|  |         _rxActiveElementStep1Q = tempQ.at(0); | ||||
|  | 
 | ||||
|  |         temp.clear(); | ||||
|  |         temp.append(params->rxActiveElementStep2); | ||||
|  |         tempQ = Calculation::qntzr(temp, 0, 16, 19, 0, true); | ||||
|  |         _rxActiveElementStep2Q = tempQ.at(0); | ||||
|  |     } | ||||
|  | 
 | ||||
|  |     RxActiveElementStep(SonoDevice* device, quint32 offset) : Register(BAR, OFFSET+offset, device, LENGTH) | ||||
|  |     { | ||||
|  |         ADD_UNSIGNED_FIELD(rxActiveElementStep1, RX_ACTIVE_ELEMENT_STEP_1); | ||||
|  |         ADD_UNSIGNED_FIELD(rxActiveElementStep2, RX_ACTIVE_ELEMENT_STEP_2); | ||||
|  |     } | ||||
|  | }; | ||||
|  | 
 | ||||
|  | #undef RX_ACTIVE_ELEMENT_STEP_1 | ||||
|  | #undef RX_ACTIVE_ELEMENT_STEP_2 | ||||
|  | 
 | ||||
|  | #undef BAR | ||||
|  | #undef OFFSET | ||||
|  | #undef LENGTH | ||||
|  | 
 | ||||
|  | #endif // RXACTIVEELEMENTSTEP_H
 | ||||
| @ -0,0 +1,54 @@ | |||||
|  | #ifndef WINOPENPOINT_H | ||||
|  | #define WINOPENPOINT_H | ||||
|  | 
 | ||||
|  | #include "model/scenarioGenerator/core/general/Calculation.h" | ||||
|  | #include "model/hardware/core/lowLevelApi/register/Register.h" | ||||
|  | #include "model/hardware/core/lowLevelApi/register/RegUtils.h" | ||||
|  | #include "ApodizationParameters.h" | ||||
|  | 
 | ||||
|  | #undef  BAR | ||||
|  | 
 | ||||
|  | #define WIN_OPEN_START_POINT    0x0000FFFF | ||||
|  | #define WIN_OPEN_STOP_POINT     0xFFFF0000 | ||||
|  | 
 | ||||
|  | #define BAR     0U | ||||
|  | #define OFFSET  0x480480 | ||||
|  | #define LENGTH  1U | ||||
|  | 
 | ||||
|  | class WinOpenPoint : public Register | ||||
|  | { | ||||
|  | private: | ||||
|  |     quint32 _winOpenStartPointQ; | ||||
|  |     quint32 _winOpenStopPointQ; | ||||
|  | 
 | ||||
|  |     void prepareData(quint32 index) override | ||||
|  |     { | ||||
|  |         winOpenStartPoint->setValue(_winOpenStartPointQ); | ||||
|  |         winOpenStopPoint->setValue(_winOpenStopPointQ); | ||||
|  |     } | ||||
|  | 
 | ||||
|  | public: | ||||
|  |     Field* winOpenStartPoint; | ||||
|  |     Field* winOpenStopPoint; | ||||
|  | 
 | ||||
|  |     void setWinOpenPoint (ApodizationParameters* params) | ||||
|  |     { | ||||
|  |         _winOpenStartPointQ = params->winOpenStartPoint; | ||||
|  |         _winOpenStopPointQ = params->winOpenStopPoint; | ||||
|  |     } | ||||
|  | 
 | ||||
|  |     WinOpenPoint(SonoDevice* device, quint32 offset) : Register(BAR, OFFSET+offset, device, LENGTH) | ||||
|  |     { | ||||
|  |         ADD_UNSIGNED_FIELD(winOpenStartPoint, WIN_OPEN_START_POINT); | ||||
|  |         ADD_UNSIGNED_FIELD(winOpenStopPoint, WIN_OPEN_STOP_POINT); | ||||
|  |     } | ||||
|  | }; | ||||
|  | 
 | ||||
|  | #undef WIN_OPEN_START_POINT | ||||
|  | #undef WIN_OPEN_STOP_POINT | ||||
|  | 
 | ||||
|  | #undef BAR | ||||
|  | #undef OFFSET | ||||
|  | #undef LENGTH | ||||
|  | 
 | ||||
|  | #endif // WINOPENPOINT_H
 | ||||
| @ -0,0 +1,61 @@ | |||||
|  | #ifndef WINOPENVAL_H | ||||
|  | #define WINOPENVAL_H | ||||
|  | 
 | ||||
|  | #include "model/scenarioGenerator/core/general/Calculation.h" | ||||
|  | #include "model/hardware/core/lowLevelApi/register/Register.h" | ||||
|  | #include "model/hardware/core/lowLevelApi/register/RegUtils.h" | ||||
|  | #include "ApodizationParameters.h" | ||||
|  | 
 | ||||
|  | #undef  BAR | ||||
|  | 
 | ||||
|  | #define WIN_OPEN_START_VAL  0x0000FFFF | ||||
|  | #define WIN_OPEN_STOP_VAL   0xFFFF0000 | ||||
|  | 
 | ||||
|  | #define BAR     0U | ||||
|  | #define OFFSET  0x480484 | ||||
|  | #define LENGTH  1U | ||||
|  | 
 | ||||
|  | class WinOpenVal : public Register | ||||
|  | { | ||||
|  | private: | ||||
|  |     quint32 _winOpenStartValQ; | ||||
|  |     quint32 _winOpenStopValQ; | ||||
|  | 
 | ||||
|  |     void prepareData(quint32 index) override | ||||
|  |     { | ||||
|  |         winOpenStartVal->setValue(_winOpenStartValQ); | ||||
|  |         winOpenStopVal->setValue(_winOpenStopValQ); | ||||
|  |     } | ||||
|  | 
 | ||||
|  | public: | ||||
|  |     Field* winOpenStartVal; | ||||
|  |     Field* winOpenStopVal; | ||||
|  | 
 | ||||
|  |     void setWinOpenVal (ApodizationParameters* params) | ||||
|  |     { | ||||
|  |         QVector<float> temp; | ||||
|  |         temp.append(params->winOpenStartVal); | ||||
|  |         QVector<quint32> tempQ = Calculation::qntzr(temp, 0, 16, 12, 0, true); | ||||
|  |         _winOpenStartValQ = tempQ.at(0); | ||||
|  | 
 | ||||
|  |         temp.clear(); | ||||
|  |         temp.append(params->winOpenStopVal); | ||||
|  |         tempQ = Calculation::qntzr(temp, 0, 16, 12, 0, true); | ||||
|  |         _winOpenStopValQ = tempQ.at(0); | ||||
|  |     } | ||||
|  | 
 | ||||
|  |     WinOpenVal(SonoDevice* device, quint32 offset) : Register(BAR, OFFSET+offset, device, LENGTH) | ||||
|  |     { | ||||
|  |         ADD_UNSIGNED_FIELD(winOpenStartVal, WIN_OPEN_START_VAL); | ||||
|  |         ADD_UNSIGNED_FIELD(winOpenStopVal, WIN_OPEN_STOP_VAL); | ||||
|  |     } | ||||
|  | }; | ||||
|  | 
 | ||||
|  | #undef WIN_OPEN_START_VAL | ||||
|  | #undef WIN_OPEN_STOP_VAL | ||||
|  | 
 | ||||
|  | #undef BAR | ||||
|  | #undef OFFSET | ||||
|  | #undef LENGTH | ||||
|  | 
 | ||||
|  | #endif // WINOPENVAL_H
 | ||||
| @ -1,44 +1,44 @@ | |||||
| #ifndef BLENDWEIGHT_H | #ifndef BLENDWEIGHT_H | ||||
| #define BLENDWEIGHT_H | #define BLENDWEIGHT_H | ||||
| 
 | 
 | ||||
| #include "model/hardware/core/lowLevelApi/register/Register.h" | #include "model/hardware/core/lowLevelApi/register/Register.h" | ||||
| #include "model/hardware/core/lowLevelApi/register/RegUtils.h" | #include "model/hardware/core/lowLevelApi/register/RegUtils.h" | ||||
| 
 | 
 | ||||
| #undef  BAR | #undef  BAR | ||||
| 
 | 
 | ||||
| #define BLEND_WEIGHT_MASK   0x000001FF | #define BLEND_WEIGHT_MASK   0x000001FF | ||||
| 
 | 
 | ||||
| #define BAR     0 | #define BAR     0 | ||||
| #define OFFSET  0x82000 | #define OFFSET  0x82000 | ||||
| #define LENGTH  512U | #define LENGTH  512U | ||||
| 
 | 
 | ||||
| class BlendWeight : public Register | class BlendWeight : public Register | ||||
| { | { | ||||
| private: | private: | ||||
|     QList<quint32> _blendWeight; |     QList<quint32> _blendWeight; | ||||
| 
 | 
 | ||||
|     void prepareData(quint32 index) override |     void prepareData(quint32 index) override | ||||
|     { |     { | ||||
|         blendWeight->setValue(_blendWeight[static_cast<qint32>(index)]); |         blendWeight->setValue(_blendWeight[static_cast<qint32>(index)]); | ||||
|     } |     } | ||||
| 
 | 
 | ||||
| public: | public: | ||||
|     Field* blendWeight; |     Field* blendWeight; | ||||
| 
 | 
 | ||||
|     void setBlendWeight (QList<quint32>& blendWeight) { |     void setBlendWeight (QList<quint32>& blendWeight) { | ||||
|          _blendWeight = blendWeight; |          _blendWeight = blendWeight; | ||||
|     } |     } | ||||
| 
 | 
 | ||||
|     BlendWeight(SonoDevice* device) : Register(BAR, OFFSET, device, LENGTH) |     BlendWeight(SonoDevice* device) : Register(BAR, OFFSET, device, LENGTH) | ||||
|     { |     { | ||||
|         ADD_UNSIGNED_FIELD(blendWeight, BLEND_WEIGHT_MASK); |         ADD_UNSIGNED_FIELD(blendWeight, BLEND_WEIGHT_MASK); | ||||
|     } |     } | ||||
| }; | }; | ||||
| 
 | 
 | ||||
| #undef BLEND_WEIGHT_MASK | #undef BLEND_WEIGHT_MASK | ||||
| 
 | 
 | ||||
| #undef BAR | #undef BAR | ||||
| #undef OFFSET | #undef OFFSET | ||||
| #undef LENGTH | #undef LENGTH | ||||
| 
 | 
 | ||||
| #endif // BLENDWEIGHT_H
 | #endif // BLENDWEIGHT_H
 | ||||
|  | |||||
| @ -0,0 +1,44 @@ | |||||
|  | #ifndef ENDFREQLUT_H | ||||
|  | #define ENDFREQLUT_H | ||||
|  | 
 | ||||
|  | #include "model/hardware/core/lowLevelApi/register/Register.h" | ||||
|  | #include "model/hardware/core/lowLevelApi/register/RegUtils.h" | ||||
|  | 
 | ||||
|  | #undef  BAR | ||||
|  | 
 | ||||
|  | #define END_FREQ_LUT_MASK   0x01FFFFFF | ||||
|  | 
 | ||||
|  | #define BAR     0 | ||||
|  | #define OFFSET  0x80840 | ||||
|  | #define LENGTH  4U | ||||
|  | 
 | ||||
|  | class EndFreqLut : public Register | ||||
|  | { | ||||
|  | private: | ||||
|  |     QList<quint32> _endFreqLut; | ||||
|  | 
 | ||||
|  |     void prepareData(quint32 index) override | ||||
|  |     { | ||||
|  |         endFreqLut->setValue(_endFreqLut[static_cast<qint32>(index)]); | ||||
|  |     } | ||||
|  | 
 | ||||
|  | public: | ||||
|  |     Field* endFreqLut; | ||||
|  | 
 | ||||
|  |     void setEndFreqLut (QList<quint32>& endFreqLut) { | ||||
|  |          _endFreqLut = endFreqLut; | ||||
|  |     } | ||||
|  | 
 | ||||
|  |     EndFreqLut(SonoDevice* device) : Register(BAR, OFFSET, device, LENGTH) | ||||
|  |     { | ||||
|  |         ADD_UNSIGNED_FIELD(endFreqLut, END_FREQ_LUT_MASK); | ||||
|  |     } | ||||
|  | }; | ||||
|  | 
 | ||||
|  | #undef END_FREQ_LUT_MASK | ||||
|  | 
 | ||||
|  | #undef BAR | ||||
|  | #undef OFFSET | ||||
|  | #undef LENGTH | ||||
|  | 
 | ||||
|  | #endif // ENDFREQLUT_H
 | ||||
| @ -0,0 +1,31 @@ | |||||
|  | #ifndef FRAMELOGGERCTRL_H | ||||
|  | #define FRAMELOGGERCTRL_H | ||||
|  | 
 | ||||
|  | #include "model/hardware/core/lowLevelApi/register/Register.h" | ||||
|  | #include "model/hardware/core/lowLevelApi/register/RegUtils.h" | ||||
|  | 
 | ||||
|  | #undef  BAR | ||||
|  | 
 | ||||
|  | #define LOGGER_EN_MASK    0x00000001 | ||||
|  | 
 | ||||
|  | #define BAR     0 | ||||
|  | #define OFFSET  0x86830 | ||||
|  | 
 | ||||
|  | class FrameLoggerCtrl : public Register | ||||
|  | { | ||||
|  | public: | ||||
|  |     Field* loggerEn; | ||||
|  | 
 | ||||
|  |     FrameLoggerCtrl(SonoDevice* device) : Register(BAR, OFFSET, device) | ||||
|  |     { | ||||
|  |         ADD_UNSIGNED_FIELD(loggerEn, LOGGER_EN_MASK); | ||||
|  |     } | ||||
|  | }; | ||||
|  | 
 | ||||
|  | #undef LOGGER_EN_MASK | ||||
|  | 
 | ||||
|  | #undef BAR | ||||
|  | #undef OFFSET | ||||
|  | #undef LENGTH | ||||
|  | 
 | ||||
|  | #endif // FRAMELOGGERCTRL_H
 | ||||
| @ -0,0 +1,65 @@ | |||||
|  | #ifndef FREQPOINTLUT_H | ||||
|  | #define FREQPOINTLUT_H | ||||
|  | 
 | ||||
|  | #include "model/hardware/core/lowLevelApi/register/Register.h" | ||||
|  | #include "model/hardware/core/lowLevelApi/register/RegUtils.h" | ||||
|  | 
 | ||||
|  | #undef  BAR | ||||
|  | 
 | ||||
|  | #define START_FREQ_POINT_LUT_MASK   0x0000FFFF | ||||
|  | #define END_FREQ_POINT_LUT_MASK     0xFFFF0000 | ||||
|  | 
 | ||||
|  | #define BAR      0U | ||||
|  | #define OFFSET   0X80880 | ||||
|  | #define LENGTH   4U | ||||
|  | 
 | ||||
|  | struct FreqPoint | ||||
|  | { | ||||
|  |     QList<quint32>  startFreqPoint; | ||||
|  |     QList<quint32>  endFreqPoint; | ||||
|  | 
 | ||||
|  |     void clear() | ||||
|  |     { | ||||
|  |         startFreqPoint.clear(); | ||||
|  |         endFreqPoint.clear(); | ||||
|  |     } | ||||
|  | }; | ||||
|  | 
 | ||||
|  | class FreqPointLut : public Register | ||||
|  | { | ||||
|  | private: | ||||
|  |     FreqPoint* _freqLut; | ||||
|  | 
 | ||||
|  |     void prepareData(quint32 index) override | ||||
|  |     { | ||||
|  |         //quint32 value=0;
 | ||||
|  | 
 | ||||
|  |         startFreqPointLut->setValue(_freqLut->startFreqPoint.at(static_cast<qint32>(index))); | ||||
|  | 
 | ||||
|  |         endFreqPointLut->setValue(_freqLut->endFreqPoint.at(static_cast<qint32>(index))); | ||||
|  |     } | ||||
|  | 
 | ||||
|  | public: | ||||
|  |     Field* startFreqPointLut; | ||||
|  |     Field* endFreqPointLut; | ||||
|  | 
 | ||||
|  |     void setFreqPointLut (FreqPoint* freqLut) | ||||
|  |     { | ||||
|  |         _freqLut = freqLut; | ||||
|  |     } | ||||
|  | 
 | ||||
|  |     FreqPointLut(SonoDevice* device) : Register(BAR, OFFSET, device, LENGTH) | ||||
|  |     { | ||||
|  |         ADD_UNSIGNED_FIELD(startFreqPointLut, START_FREQ_POINT_LUT_MASK); | ||||
|  |         ADD_UNSIGNED_FIELD(endFreqPointLut, END_FREQ_POINT_LUT_MASK); | ||||
|  |     } | ||||
|  | }; | ||||
|  | 
 | ||||
|  | #undef START_FREQ_POINT_LUT_MASK | ||||
|  | #undef END_FREQ_POINT_LUT_MASK | ||||
|  | 
 | ||||
|  | #undef BAR | ||||
|  | #undef OFFSET | ||||
|  | #undef LENGTH | ||||
|  | 
 | ||||
|  | #endif // FREQPOINTLUT_H
 | ||||
| @ -0,0 +1,44 @@ | |||||
|  | #ifndef FREQSTEPLUT_H | ||||
|  | #define FREQSTEPLUT_H | ||||
|  | 
 | ||||
|  | #include "model/hardware/core/lowLevelApi/register/Register.h" | ||||
|  | #include "model/hardware/core/lowLevelApi/register/RegUtils.h" | ||||
|  | 
 | ||||
|  | #undef  BAR | ||||
|  | 
 | ||||
|  | #define FREQ_STEP_LUT_MASK   0xFFFFFFFF | ||||
|  | 
 | ||||
|  | #define BAR     0 | ||||
|  | #define OFFSET  0x808C0 | ||||
|  | #define LENGTH  4U | ||||
|  | 
 | ||||
|  | class FreqStepLut : public Register | ||||
|  | { | ||||
|  | private: | ||||
|  |     QList<quint32> _freqStepLut; | ||||
|  | 
 | ||||
|  |     void prepareData(quint32 index) override | ||||
|  |     { | ||||
|  |         freqStepLut->setValue(_freqStepLut[static_cast<qint32>(index)]); | ||||
|  |     } | ||||
|  | 
 | ||||
|  | public: | ||||
|  |     Field* freqStepLut; | ||||
|  | 
 | ||||
|  |     void setFreqStepLut (QList<quint32>& freqStepLut) { | ||||
|  |          _freqStepLut = freqStepLut; | ||||
|  |     } | ||||
|  | 
 | ||||
|  |     FreqStepLut(SonoDevice* device) : Register(BAR, OFFSET, device, LENGTH) | ||||
|  |     { | ||||
|  |         ADD_UNSIGNED_FIELD(freqStepLut, FREQ_STEP_LUT_MASK); | ||||
|  |     } | ||||
|  | }; | ||||
|  | 
 | ||||
|  | #undef FREQ_STEP_LUT_MASK | ||||
|  | 
 | ||||
|  | #undef BAR | ||||
|  | #undef OFFSET | ||||
|  | #undef LENGTH | ||||
|  | 
 | ||||
|  | #endif // FREQSTEPLUT_H
 | ||||
| @ -0,0 +1,44 @@ | |||||
|  | #ifndef LPFWEIGHTSTEPLUT_H | ||||
|  | #define LPFWEIGHTSTEPLUT_H | ||||
|  | 
 | ||||
|  | #include "model/hardware/core/lowLevelApi/register/Register.h" | ||||
|  | #include "model/hardware/core/lowLevelApi/register/RegUtils.h" | ||||
|  | 
 | ||||
|  | #undef  BAR | ||||
|  | 
 | ||||
|  | #define LPF_WEIGHT_STEP_LUT_MASK   0xFFFFFFFF | ||||
|  | 
 | ||||
|  | #define BAR     0 | ||||
|  | #define OFFSET  0x80900 | ||||
|  | #define LENGTH  4U | ||||
|  | 
 | ||||
|  | class LpfWeightStepLut : public Register | ||||
|  | { | ||||
|  | private: | ||||
|  |     QList<quint32> _lpfWeightStepLut; | ||||
|  | 
 | ||||
|  |     void prepareData(quint32 index) override | ||||
|  |     { | ||||
|  |         lpfWeightStepLut->setValue(_lpfWeightStepLut[static_cast<qint32>(index)]); | ||||
|  |     } | ||||
|  | 
 | ||||
|  | public: | ||||
|  |     Field* lpfWeightStepLut; | ||||
|  | 
 | ||||
|  |     void setLpfWeightStepLut (QList<quint32>& lpfWeightStepLut) { | ||||
|  |          _lpfWeightStepLut = lpfWeightStepLut; | ||||
|  |     } | ||||
|  | 
 | ||||
|  |     LpfWeightStepLut(SonoDevice* device) : Register(BAR, OFFSET, device, LENGTH) | ||||
|  |     { | ||||
|  |         ADD_UNSIGNED_FIELD(lpfWeightStepLut, LPF_WEIGHT_STEP_LUT_MASK); | ||||
|  |     } | ||||
|  | }; | ||||
|  | 
 | ||||
|  | #undef LPF_WEIGHT_STEP_LUT_MASK | ||||
|  | 
 | ||||
|  | #undef BAR | ||||
|  | #undef OFFSET | ||||
|  | #undef LENGTH | ||||
|  | 
 | ||||
|  | #endif // LPFWEIGHTSTEPLUT_H
 | ||||
| @ -0,0 +1,44 @@ | |||||
|  | #ifndef STARTFREQLUT_H | ||||
|  | #define STARTFREQLUT_H | ||||
|  | 
 | ||||
|  | #include "model/hardware/core/lowLevelApi/register/Register.h" | ||||
|  | #include "model/hardware/core/lowLevelApi/register/RegUtils.h" | ||||
|  | 
 | ||||
|  | #undef  BAR | ||||
|  | 
 | ||||
|  | #define START_FREQ_LUT_MASK   0x01FFFFFF | ||||
|  | 
 | ||||
|  | #define BAR     0 | ||||
|  | #define OFFSET  0x80800 | ||||
|  | #define LENGTH  4U | ||||
|  | 
 | ||||
|  | class StartFreqLut : public Register | ||||
|  | { | ||||
|  | private: | ||||
|  |     QList<quint32> _startFreqLut; | ||||
|  | 
 | ||||
|  |     void prepareData(quint32 index) override | ||||
|  |     { | ||||
|  |         startFreqLut->setValue(_startFreqLut[static_cast<qint32>(index)]); | ||||
|  |     } | ||||
|  | 
 | ||||
|  | public: | ||||
|  |     Field* startFreqLut; | ||||
|  | 
 | ||||
|  |     void setStartFreqLut (QList<quint32>& startFreqLut) { | ||||
|  |          _startFreqLut = startFreqLut; | ||||
|  |     } | ||||
|  | 
 | ||||
|  |     StartFreqLut(SonoDevice* device) : Register(BAR, OFFSET, device, LENGTH) | ||||
|  |     { | ||||
|  |         ADD_UNSIGNED_FIELD(startFreqLut, START_FREQ_LUT_MASK); | ||||
|  |     } | ||||
|  | }; | ||||
|  | 
 | ||||
|  | #undef START_FREQ_LUT_MASK | ||||
|  | 
 | ||||
|  | #undef BAR | ||||
|  | #undef OFFSET | ||||
|  | #undef LENGTH | ||||
|  | 
 | ||||
|  | #endif // STARTFREQLUT_H
 | ||||
| @ -0,0 +1,44 @@ | |||||
|  | #ifndef STARTLPFWEIGHTLUT_H | ||||
|  | #define STARTLPFWEIGHTLUT_H | ||||
|  | 
 | ||||
|  | #include "model/hardware/core/lowLevelApi/register/Register.h" | ||||
|  | #include "model/hardware/core/lowLevelApi/register/RegUtils.h" | ||||
|  | 
 | ||||
|  | #undef  BAR | ||||
|  | 
 | ||||
|  | #define START_LPF_WEIGHT_LUT_MASK   0xFFFFFFFF | ||||
|  | 
 | ||||
|  | #define BAR     0 | ||||
|  | #define OFFSET  0x80940 | ||||
|  | #define LENGTH  4U | ||||
|  | 
 | ||||
|  | class StartLpfWeightLut : public Register | ||||
|  | { | ||||
|  | private: | ||||
|  |     QList<quint32> _startLpfWeightLut; | ||||
|  | 
 | ||||
|  |     void prepareData(quint32 index) override | ||||
|  |     { | ||||
|  |         startLpfWeightLut->setValue(_startLpfWeightLut[static_cast<qint32>(index)]); | ||||
|  |     } | ||||
|  | 
 | ||||
|  | public: | ||||
|  |     Field* startLpfWeightLut; | ||||
|  | 
 | ||||
|  |     void setStartLpfWeightLut (QList<quint32>& startLpfWeightLut) { | ||||
|  |          _startLpfWeightLut = startLpfWeightLut; | ||||
|  |     } | ||||
|  | 
 | ||||
|  |     StartLpfWeightLut(SonoDevice* device) : Register(BAR, OFFSET, device, LENGTH) | ||||
|  |     { | ||||
|  |         ADD_UNSIGNED_FIELD(startLpfWeightLut, START_LPF_WEIGHT_LUT_MASK); | ||||
|  |     } | ||||
|  | }; | ||||
|  | 
 | ||||
|  | #undef START_LPF_WEIGHT_LUT_MASK | ||||
|  | 
 | ||||
|  | #undef BAR | ||||
|  | #undef OFFSET | ||||
|  | #undef LENGTH | ||||
|  | 
 | ||||
|  | #endif // STARTLPFWEIGHTLUT_H
 | ||||
| @ -0,0 +1,23 @@ | |||||
|  | #ifndef APODIZATIONPARAMS_H | ||||
|  | #define APODIZATIONPARAMS_H | ||||
|  | 
 | ||||
|  | #include <QObject> | ||||
|  | 
 | ||||
|  | struct ApodizationParams_t | ||||
|  | { | ||||
|  |     quint32 rxActiveElementStepStartPoint; | ||||
|  |     quint32 rxActiveElementStepStopPoint; | ||||
|  |     quint32 rxActiveElementStepChangePoint; | ||||
|  |     quint32 winOpenStartPoint; | ||||
|  |     quint32 winOpenStopPoint; | ||||
|  |     quint32 minApertureSize; | ||||
|  |     quint32 maxApertureSize; | ||||
|  | 
 | ||||
|  |     float   rxActiveElementStep1; | ||||
|  |     float   rxActiveElementStep2; | ||||
|  |     float   winOpenStartVal; | ||||
|  |     float   winOpenStepVal; | ||||
|  |     float   winOpenStopVal; | ||||
|  | }; | ||||
|  | 
 | ||||
|  | #endif // APODIZATIONPARAMS_H
 | ||||
| @ -0,0 +1,11 @@ | |||||
|  | #ifndef FREQUENCYPOINTLUT_H | ||||
|  | #define FREQUENCYPOINTLUT_H | ||||
|  | 
 | ||||
|  | #include <QObject> | ||||
|  | 
 | ||||
|  | struct FrequencyPointLut_t { | ||||
|  |     quint32  startFreqPoint; | ||||
|  |     quint32  endFreqPoint; | ||||
|  | }; | ||||
|  | 
 | ||||
|  | #endif // FREQUENCYPOINTLUT_H
 | ||||
					Loading…
					
					
				
		Reference in new issue