Browse Source

M change params api is added.

v4.6
Arash Aletayeb 1 year ago
parent
commit
42d7a7094f
  1. 2
      developHw.pro.user
  2. 1
      include/model/hardware/core/lowLevelApi/TrxBoard.h
  3. 2
      include/model/hardware/core/lowLevelApi/TrxBoardUtils/PreProcessorDef.h
  4. 2
      mainwindow.cpp
  5. 11
      src/model/hardware/core/lowLevelApi/TrxBoard.cpp

2
developHw.pro.user

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.10.0, 2023-05-24T17:07:03. -->
<!-- Written by QtCreator 4.10.0, 2023-06-06T13:31:07. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>

1
include/model/hardware/core/lowLevelApi/TrxBoard.h

@ -227,6 +227,7 @@ public:
//void scenPlayerPause (bool pause) const;
void setFramesMetaData(const QByteArray& metaData) const;
void setMChangeParams(SramTx* tx, SramRx* rx) const;
/////////////////////////////// Built-in Test API /////////////////////////////
void setBiteDacData(const QByteArray& iData, const QByteArray& qData) const;

2
include/model/hardware/core/lowLevelApi/TrxBoardUtils/PreProcessorDef.h

@ -2,6 +2,6 @@
#define PREPROCESSORDEF_H
#define MPS_BOARD
#define DEVELOP_UI
//#define DEVELOP_UI
#endif //PREPROCESSORDEF_H

2
mainwindow.cpp

@ -194,7 +194,7 @@ MainWindow::MainWindow(QWidget* parent)
//////////////////////////// First Time Probe Detection //////////////////////////////
#ifdef MPS_BOARD
// emit connectedPrbChange();
emit connectedPrbChange();
#endif
}

11
src/model/hardware/core/lowLevelApi/TrxBoard.cpp

@ -1137,6 +1137,17 @@ void TrxBoard::setFramesMetaData(const QByteArray& metaData) const
this->_sram->setSramMetaData(data);
}
void TrxBoard::setMChangeParams(SramTx *tx, SramRx *rx) const
{
quint32 focusTypeNumber = 1;
QVector<quint8> rxBeamFormerNumber= {1};
this->_sram->setSramTx(focusTypeNumber, tx);
this->_sram->setSramRx(rxBeamFormerNumber,
focusTypeNumber,
rx);
}
void TrxBoard::setBiteDacData(const QByteArray& iData, const QByteArray& qData) const
{
this->_builtInTest->biteDacEnable(BITE_INTERVAL, false);

Loading…
Cancel
Save