|
|
@ -1546,6 +1546,11 @@ void TrxBoard::scenPlayerStop(bool afeHvPwrOff) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
bool TrxBoard::isScenarioStart() const |
|
|
|
{ |
|
|
|
return this->_scenPlayer->control.getCommand(); |
|
|
|
} |
|
|
|
|
|
|
|
//void TrxBoard::scenPlayerPause(bool pause) const
|
|
|
|
//{
|
|
|
|
//this->_scenPlayer->control.pause(pause);
|
|
|
@ -1638,70 +1643,234 @@ quint32 TrxBoard::vendorId() const |
|
|
|
{ |
|
|
|
auto vid = this->_bCtrlMngt->getVid(); |
|
|
|
|
|
|
|
return vid; |
|
|
|
return vid; |
|
|
|
} |
|
|
|
|
|
|
|
QByteArray TrxBoard::trxRomHeader() const |
|
|
|
{ |
|
|
|
return(this->_bCtrlMngt->trxEepromRead(EEPROM_HEADER_BEGIN, EEPROM_HEADER_NUMBER)); |
|
|
|
} |
|
|
|
|
|
|
|
QByteArray TrxBoard::trxRomId() const |
|
|
|
{ |
|
|
|
return(this->_bCtrlMngt->trxEepromRead(EEPROM_ID_BEGIN, EEPROM_ID_NUMBER)); |
|
|
|
} |
|
|
|
|
|
|
|
QByteArray TrxBoard::trxRomPid() const |
|
|
|
{ |
|
|
|
return(this->_bCtrlMngt->trxEepromRead(EEPROM_PID_BEGIN, EEPROM_PID_NUMBER)); |
|
|
|
} |
|
|
|
|
|
|
|
QByteArray TrxBoard::trxRomPcbVersion() const |
|
|
|
{ |
|
|
|
return(this->_bCtrlMngt->trxEepromRead(EEPROM_PCB_VERSION_BEGIN, EEPROM_PCB_VERSION_NUMBER)); |
|
|
|
} |
|
|
|
|
|
|
|
QByteArray TrxBoard::trxRomSerialNo() const |
|
|
|
{ |
|
|
|
return(this->_bCtrlMngt->trxEepromRead(EEPROM_BOARD_SERIAL_NO_BEGIN, EEPROM_BOARD_SERIAL_NO_NUMBER)); |
|
|
|
} |
|
|
|
|
|
|
|
QByteArray TrxBoard::trxRomFirstMbedCode() const |
|
|
|
{ |
|
|
|
return(this->_bCtrlMngt->trxEepromRead(EEPROM_FIRST_MBED_CODE_VERSION_BEGIN, EEPROM_FIRST_MBED_CODE_VERSION_NUMBER)); |
|
|
|
} |
|
|
|
|
|
|
|
QByteArray TrxBoard::trxRomSecondMbedCode() const |
|
|
|
{ |
|
|
|
return(this->_bCtrlMngt->trxEepromRead(EEPROM_SECOND_MBED_CODE_VERSION_BEGIN, EEPROM_SECOND_MBED_CODE_VERSION_NUMBER)); |
|
|
|
} |
|
|
|
|
|
|
|
void TrxBoard::trxState(EepromStatus& romStatus) const |
|
|
|
{ |
|
|
|
QByteArray header; |
|
|
|
QByteArray id; |
|
|
|
QByteArray crcChk; |
|
|
|
QByteArray pid; |
|
|
|
QByteArray pcbVersion; |
|
|
|
QByteArray serialNo; |
|
|
|
QByteArray firstMbedCode; |
|
|
|
QByteArray secondMbedCode; |
|
|
|
QByteArray crc16; |
|
|
|
|
|
|
|
romStatus.ConnectionMode = connected; |
|
|
|
romStatus.errorCode = EEPROM_NO_ERROR; |
|
|
|
|
|
|
|
header = trxRomHeader(); |
|
|
|
romStatus.header = byteArray2UintBigEndian<quint32>(header); |
|
|
|
|
|
|
|
id = this->_bCtrlMngt->trxEepromRead(EEPROM_ID_BEGIN, EEPROM_ID_NUMBER); |
|
|
|
id = trxRomId(); |
|
|
|
romStatus.id = byteArray2UintBigEndian<quint16>(id); |
|
|
|
|
|
|
|
crcChk = this->_bCtrlMngt->trxEepromRead(EEPROM_CRC_BEGIN, EEPROM_CRC_NUMBER); |
|
|
|
if(crcChk == _eepromCrc) |
|
|
|
{ |
|
|
|
romStatus.errorCode = EEPROM_NO_ERROR; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
romStatus.errorCode = EEPROM_CRC_ERROR; |
|
|
|
} |
|
|
|
pid = trxRomPid(); |
|
|
|
romStatus.pid = byteArray2UintBigEndian<quint16>(pid); |
|
|
|
|
|
|
|
pcbVersion = trxRomPcbVersion(); |
|
|
|
romStatus.pcbVersion = byteArray2UintBigEndian<quint16>(pcbVersion); |
|
|
|
|
|
|
|
serialNo = trxRomSerialNo(); |
|
|
|
romStatus.boardSerialNumber = byteArray2UintBigEndian<quint32>(serialNo); |
|
|
|
|
|
|
|
firstMbedCode = trxRomFirstMbedCode(); |
|
|
|
romStatus.firstMbedCodeVersion = byteArray2UintBigEndian<quint32>(firstMbedCode); |
|
|
|
|
|
|
|
secondMbedCode = trxRomSecondMbedCode(); |
|
|
|
romStatus.secondMbedCodeVersion = byteArray2UintBigEndian<quint32>(secondMbedCode); |
|
|
|
|
|
|
|
// crcChk = this->_bCtrlMngt->trxEepromRead(EEPROM_CRC_BEGIN, EEPROM_CRC_NUMBER);
|
|
|
|
// if(crcChk == _eepromCrc)
|
|
|
|
// {
|
|
|
|
// romStatus.errorCode = EEPROM_NO_ERROR;
|
|
|
|
// }
|
|
|
|
// else
|
|
|
|
// {
|
|
|
|
// romStatus.errorCode = EEPROM_CRC_ERROR;
|
|
|
|
// }
|
|
|
|
} |
|
|
|
|
|
|
|
QByteArray TrxBoard::mpsRomHeader() const |
|
|
|
{ |
|
|
|
return(this->_bCtrlMngt->mpsEepromRead(EEPROM_HEADER_BEGIN, EEPROM_HEADER_NUMBER)); |
|
|
|
} |
|
|
|
|
|
|
|
QByteArray TrxBoard::mpsRomId() const |
|
|
|
{ |
|
|
|
return(this->_bCtrlMngt->mpsEepromRead(EEPROM_ID_BEGIN, EEPROM_ID_NUMBER)); |
|
|
|
} |
|
|
|
|
|
|
|
QByteArray TrxBoard::mpsRomPid() const |
|
|
|
{ |
|
|
|
return(this->_bCtrlMngt->mpsEepromRead(EEPROM_PID_BEGIN, EEPROM_PID_NUMBER)); |
|
|
|
} |
|
|
|
|
|
|
|
QByteArray TrxBoard::mpsRomPcbVersion() const |
|
|
|
{ |
|
|
|
return(this->_bCtrlMngt->mpsEepromRead(EEPROM_PCB_VERSION_BEGIN, EEPROM_PCB_VERSION_NUMBER)); |
|
|
|
} |
|
|
|
|
|
|
|
QByteArray TrxBoard::mpsRomSerialNo() const |
|
|
|
{ |
|
|
|
return(this->_bCtrlMngt->mpsEepromRead(EEPROM_BOARD_SERIAL_NO_BEGIN, EEPROM_BOARD_SERIAL_NO_NUMBER)); |
|
|
|
} |
|
|
|
|
|
|
|
QByteArray TrxBoard::mpsRomFirstMbedCode() const |
|
|
|
{ |
|
|
|
return(this->_bCtrlMngt->mpsEepromRead(EEPROM_FIRST_MBED_CODE_VERSION_BEGIN, EEPROM_FIRST_MBED_CODE_VERSION_NUMBER)); |
|
|
|
} |
|
|
|
|
|
|
|
QByteArray TrxBoard::mpsRomSecondMbedCode() const |
|
|
|
{ |
|
|
|
return(this->_bCtrlMngt->mpsEepromRead(EEPROM_SECOND_MBED_CODE_VERSION_BEGIN, EEPROM_SECOND_MBED_CODE_VERSION_NUMBER)); |
|
|
|
} |
|
|
|
|
|
|
|
void TrxBoard::mpsState(EepromStatus& romStatus) const |
|
|
|
{ |
|
|
|
QByteArray header; |
|
|
|
QByteArray id; |
|
|
|
QByteArray crcChk; |
|
|
|
QByteArray pid; |
|
|
|
QByteArray pcbVersion; |
|
|
|
QByteArray serialNo; |
|
|
|
QByteArray firstMbedCode; |
|
|
|
QByteArray secondMbedCode; |
|
|
|
QByteArray crc16; |
|
|
|
|
|
|
|
romStatus.ConnectionMode = connected; |
|
|
|
romStatus.errorCode = EEPROM_NO_ERROR; |
|
|
|
|
|
|
|
header = mpsRomHeader(); |
|
|
|
romStatus.header = byteArray2UintBigEndian<quint32>(header); |
|
|
|
|
|
|
|
id = this->_bCtrlMngt->mpsEepromRead(EEPROM_ID_BEGIN, EEPROM_ID_NUMBER); |
|
|
|
id = mpsRomId(); |
|
|
|
romStatus.id = byteArray2UintBigEndian<quint16>(id); |
|
|
|
|
|
|
|
crcChk = this->_bCtrlMngt->mpsEepromRead(EEPROM_CRC_BEGIN, EEPROM_CRC_NUMBER); |
|
|
|
if(crcChk == _eepromCrc) |
|
|
|
{ |
|
|
|
romStatus.errorCode = EEPROM_NO_ERROR; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
romStatus.errorCode = EEPROM_CRC_ERROR; |
|
|
|
} |
|
|
|
pid = mpsRomPid(); |
|
|
|
romStatus.pid = byteArray2UintBigEndian<quint16>(pid); |
|
|
|
|
|
|
|
pcbVersion = mpsRomPcbVersion(); |
|
|
|
romStatus.pcbVersion = byteArray2UintBigEndian<quint16>(pcbVersion); |
|
|
|
|
|
|
|
serialNo = mpsRomSerialNo(); |
|
|
|
romStatus.boardSerialNumber = byteArray2UintBigEndian<quint32>(serialNo); |
|
|
|
|
|
|
|
firstMbedCode = mpsRomFirstMbedCode(); |
|
|
|
romStatus.firstMbedCodeVersion = byteArray2UintBigEndian<quint32>(firstMbedCode); |
|
|
|
|
|
|
|
secondMbedCode = mpsRomSecondMbedCode(); |
|
|
|
romStatus.secondMbedCodeVersion = byteArray2UintBigEndian<quint32>(secondMbedCode); |
|
|
|
|
|
|
|
// crcChk = this->_bCtrlMngt->mpsEepromRead(EEPROM_CRC_BEGIN, EEPROM_CRC_NUMBER);
|
|
|
|
// if(crcChk == _eepromCrc)
|
|
|
|
// {
|
|
|
|
// romStatus.errorCode = EEPROM_NO_ERROR;
|
|
|
|
// }
|
|
|
|
// else
|
|
|
|
// {
|
|
|
|
// romStatus.errorCode = EEPROM_CRC_ERROR;
|
|
|
|
// }
|
|
|
|
} |
|
|
|
|
|
|
|
QByteArray TrxBoard::prbCtrlRomHeader() const |
|
|
|
{ |
|
|
|
return(this->_bCtrlMngt->prbCtrlEepromRead(EEPROM_HEADER_BEGIN, EEPROM_HEADER_NUMBER)); |
|
|
|
} |
|
|
|
|
|
|
|
QByteArray TrxBoard::prbCtrlRomId() const |
|
|
|
{ |
|
|
|
return(this->_bCtrlMngt->prbCtrlEepromRead(EEPROM_ID_BEGIN, EEPROM_ID_NUMBER)); |
|
|
|
} |
|
|
|
|
|
|
|
QByteArray TrxBoard::prbCtrlRomPid() const |
|
|
|
{ |
|
|
|
return(this->_bCtrlMngt->prbCtrlEepromRead(EEPROM_PID_BEGIN, EEPROM_PID_NUMBER)); |
|
|
|
} |
|
|
|
|
|
|
|
QByteArray TrxBoard::prbCtrlRomPcbVersion() const |
|
|
|
{ |
|
|
|
return(this->_bCtrlMngt->prbCtrlEepromRead(EEPROM_PCB_VERSION_BEGIN, EEPROM_PCB_VERSION_NUMBER)); |
|
|
|
} |
|
|
|
|
|
|
|
QByteArray TrxBoard::prbCtrlRomSerialNo() const |
|
|
|
{ |
|
|
|
return(this->_bCtrlMngt->prbCtrlEepromRead(EEPROM_BOARD_SERIAL_NO_BEGIN, EEPROM_BOARD_SERIAL_NO_NUMBER)); |
|
|
|
} |
|
|
|
|
|
|
|
void TrxBoard::prbCtrlState(EepromStatus& romStatus) const |
|
|
|
{ |
|
|
|
QByteArray header; |
|
|
|
QByteArray id; |
|
|
|
QByteArray crcChk; |
|
|
|
QByteArray pid; |
|
|
|
QByteArray pcbVersion; |
|
|
|
QByteArray serialNo; |
|
|
|
QByteArray firstMbedCode; |
|
|
|
QByteArray secondMbedCode; |
|
|
|
QByteArray crc16; |
|
|
|
|
|
|
|
romStatus.ConnectionMode = connected; |
|
|
|
romStatus.errorCode = EEPROM_NO_ERROR; |
|
|
|
|
|
|
|
id = this->_bCtrlMngt->prbCtrlEepromRead(EEPROM_ID_BEGIN, EEPROM_ID_NUMBER); |
|
|
|
header = prbCtrlRomHeader(); |
|
|
|
romStatus.header = byteArray2UintBigEndian<quint32>(header); |
|
|
|
|
|
|
|
id = prbCtrlRomId(); |
|
|
|
romStatus.id = byteArray2UintBigEndian<quint16>(id); |
|
|
|
|
|
|
|
crcChk = this->_bCtrlMngt->prbCtrlEepromRead(EEPROM_CRC_BEGIN, EEPROM_CRC_NUMBER); |
|
|
|
if(crcChk == _eepromCrc) |
|
|
|
{ |
|
|
|
romStatus.errorCode = EEPROM_NO_ERROR; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
romStatus.errorCode = EEPROM_CRC_ERROR; |
|
|
|
} |
|
|
|
pid = prbCtrlRomPid(); |
|
|
|
romStatus.pid = byteArray2UintBigEndian<quint16>(pid); |
|
|
|
|
|
|
|
pcbVersion = prbCtrlRomPcbVersion(); |
|
|
|
romStatus.pcbVersion = byteArray2UintBigEndian<quint16>(pcbVersion); |
|
|
|
|
|
|
|
serialNo = prbCtrlRomSerialNo(); |
|
|
|
romStatus.boardSerialNumber = byteArray2UintBigEndian<quint32>(serialNo); |
|
|
|
|
|
|
|
// crcChk = this->_bCtrlMngt->prbCtrlEepromRead(EEPROM_CRC_BEGIN, EEPROM_CRC_NUMBER);
|
|
|
|
// if(crcChk == _eepromCrc)
|
|
|
|
// {
|
|
|
|
// romStatus.errorCode = EEPROM_NO_ERROR;
|
|
|
|
// }
|
|
|
|
// else
|
|
|
|
// {
|
|
|
|
// romStatus.errorCode = EEPROM_CRC_ERROR;
|
|
|
|
// }
|
|
|
|
} |
|
|
|
|
|
|
|
void TrxBoard::selectedPrbState(EepromStatus& romStatus, eSelectProbe prbSel) const |
|
|
@ -1872,26 +2041,26 @@ void TrxBoard::prbState(PrbCase* prb) const |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
QString TrxBoard::trxInfo() const |
|
|
|
{ |
|
|
|
FpgaCodeVersion version; |
|
|
|
getFpgasCodeVersion(&version); |
|
|
|
//QString TrxBoard::trxInfo() const
|
|
|
|
//{
|
|
|
|
// FpgaCodeVersion version;
|
|
|
|
// getFpgasCodeVersion(&version);
|
|
|
|
|
|
|
|
QString info = QString(this->_bCtrlMngt->trxEepromRead(EEPROM_INFO_BEGIN, EEPROM_INFO_NUMBER)); |
|
|
|
// QString info = QString(this->_bCtrlMngt->trxEepromRead(EEPROM_INFO_BEGIN, EEPROM_INFO_NUMBER));
|
|
|
|
|
|
|
|
return (info + "(FPM-V " + QString::number(version.masterCode, 10) + |
|
|
|
", FPS-V " + QString::number(version.slave0Code, 10) + ")"); |
|
|
|
} |
|
|
|
// return (info + "(FPM-V " + QString::number(version.masterCode, 10) +
|
|
|
|
// ", FPS-V " + QString::number(version.slave0Code, 10) + ")");
|
|
|
|
//}
|
|
|
|
|
|
|
|
QString TrxBoard::mpsInfo() const |
|
|
|
{ |
|
|
|
return QString(this->_bCtrlMngt->mpsEepromRead(EEPROM_INFO_BEGIN, EEPROM_INFO_NUMBER)); |
|
|
|
} |
|
|
|
//QString TrxBoard::mpsInfo() const
|
|
|
|
//{
|
|
|
|
// return QString(this->_bCtrlMngt->mpsEepromRead(EEPROM_INFO_BEGIN, EEPROM_INFO_NUMBER));
|
|
|
|
//}
|
|
|
|
|
|
|
|
QString TrxBoard::prbCtrlInfo() const |
|
|
|
{ |
|
|
|
return QString(this->_bCtrlMngt->prbCtrlEepromRead(EEPROM_INFO_BEGIN, EEPROM_INFO_NUMBER)); |
|
|
|
} |
|
|
|
//QString TrxBoard::prbCtrlInfo() const
|
|
|
|
//{
|
|
|
|
// return QString(this->_bCtrlMngt->prbCtrlEepromRead(EEPROM_INFO_BEGIN, EEPROM_INFO_NUMBER));
|
|
|
|
//}
|
|
|
|
|
|
|
|
QByteArray TrxBoard::selectedPrbImpulseResponse(quint8 prbSel) const |
|
|
|
{ |
|
|
|