|
|
@ -6,12 +6,12 @@ BoardsCtrlMngt::AttenuationFactor::AttenuationFactor() |
|
|
|
p5v=4.3636f; |
|
|
|
p4d=4.3636f; |
|
|
|
m5v=2.1818f; |
|
|
|
curP24v=1; |
|
|
|
hvStop=1; |
|
|
|
p24v=1; |
|
|
|
hva=1; |
|
|
|
hvb=1; |
|
|
|
cwd=1; |
|
|
|
curP24v=1.0f; |
|
|
|
hvStop=1.0f; |
|
|
|
p24v=1.0f; |
|
|
|
hva=1.0f; |
|
|
|
hvb=1.0f; |
|
|
|
cwd=1.0f; |
|
|
|
} |
|
|
|
|
|
|
|
BoardsCtrlMngt::Gain::Gain() |
|
|
@ -19,13 +19,13 @@ BoardsCtrlMngt::Gain::Gain() |
|
|
|
curP24v=2.778f; |
|
|
|
cwd=6.555f; |
|
|
|
m5v=-3.3f; |
|
|
|
hvStop=1; |
|
|
|
p24v=23; |
|
|
|
hva=66; |
|
|
|
hvb=66; |
|
|
|
p12v=1; |
|
|
|
p5v=1; |
|
|
|
p4d=1; |
|
|
|
hvStop=1.0f; |
|
|
|
p24v=23.0f; |
|
|
|
hva=66.0f; |
|
|
|
hvb=66.0f; |
|
|
|
p12v=1.0f; |
|
|
|
p5v=1.0f; |
|
|
|
p4d=1.0f; |
|
|
|
} |
|
|
|
/***************************************************************************************************/ |
|
|
|
/************************************* Write Functions Template ************************************/ |
|
|
@ -39,59 +39,56 @@ void BoardsCtrlMngt::eepromWrite(QString& str, quint32 addr, quint8 prbSel, T1* |
|
|
|
foreach (auto i, str) |
|
|
|
{ |
|
|
|
|
|
|
|
timerShot(500); |
|
|
|
status->sync(); |
|
|
|
busy = ((status->busy->getValue())!=0); |
|
|
|
|
|
|
|
timerShot(1); |
|
|
|
while (busy) |
|
|
|
{ |
|
|
|
status->sync(); |
|
|
|
busy = ((status->busy->getValue())!=0); |
|
|
|
if (checkTimerShot()) |
|
|
|
{ |
|
|
|
// throw exception("Eeprom writing timeout is happened due to the I2C busy");
|
|
|
|
timerStop(); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (checkTimeout()) |
|
|
|
throw SonoException("Eeprom writing timeout is happened due to the I2C busy"); |
|
|
|
} |
|
|
|
|
|
|
|
timerStop(); |
|
|
|
|
|
|
|
_rom->dataIn = i.toLatin1(); |
|
|
|
timerShot(5); // must be >= 4
|
|
|
|
while (!checkTimeout()); |
|
|
|
|
|
|
|
_rom->dataIn = static_cast<quint32>(i.toLatin1()); |
|
|
|
_rom->address = addr+j; |
|
|
|
_rom->probeSelect = prbSel; |
|
|
|
setEepromWrite<T1>(_rom, request); |
|
|
|
j++; |
|
|
|
|
|
|
|
timerShot(100); |
|
|
|
status->sync(); |
|
|
|
done = ((status->reqDone->getValue())!=0); |
|
|
|
error = ((status->reqError->getValue())!=0); |
|
|
|
|
|
|
|
timerShot(1); |
|
|
|
while (!error && !done) |
|
|
|
{ |
|
|
|
status->sync(); |
|
|
|
done = ((status->reqDone->getValue())!=0); |
|
|
|
error = ((status->reqError->getValue())!=0); |
|
|
|
if (checkTimerShot()) |
|
|
|
{ |
|
|
|
// throw exception("Eeprom finish writing is corrupted due to the failure to receive done");
|
|
|
|
timerStop(); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (checkTimeout()) |
|
|
|
throw SonoException("Eeprom writing is corrupted due to the failure to receive done"); |
|
|
|
} |
|
|
|
|
|
|
|
timerStop(); |
|
|
|
|
|
|
|
if (error) |
|
|
|
{ |
|
|
|
// throw exception("Eeprom finish writing is corrupted due to the error occurrence");
|
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
throw SonoException("Eeprom writing is corrupted due to the error occurrence"); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
template<class T3> |
|
|
|
void BoardsCtrlMngt::setEepromWrite(EepromReq* _rom, T3* request) |
|
|
|
{ |
|
|
|
request->dataIn->setValue(static_cast<quint32>(_rom->dataIn)); |
|
|
|
request->address->setValue(static_cast<quint32>(_rom->address)); |
|
|
|
request->prbSel->setValue(static_cast<quint32>(_rom->probeSelect)); |
|
|
|
request->dataIn->setValue(_rom->dataIn); |
|
|
|
request->address->setValue(_rom->address); |
|
|
|
request->prbSel->setValue(_rom->probeSelect); |
|
|
|
request->rdReq->setValue(0); |
|
|
|
request->wrReq->setValue(1); |
|
|
|
request->update(); |
|
|
@ -114,17 +111,16 @@ QByteArray BoardsCtrlMngt::eepromRead(quint32 addr, quint32 length, quint8 prbSe |
|
|
|
for (quint32 i(0); i<length; i++) |
|
|
|
{ |
|
|
|
|
|
|
|
timerShot(500); |
|
|
|
status->sync(); |
|
|
|
busy = ((status->busy->getValue())!=0); |
|
|
|
|
|
|
|
timerShot(1); |
|
|
|
while (busy) |
|
|
|
{ |
|
|
|
status->sync(); |
|
|
|
busy = ((status->busy->getValue())!=0); |
|
|
|
if (checkTimerShot()) |
|
|
|
{ |
|
|
|
// throw exception("Eeprom reading timeout is happened due to the I2C busy");
|
|
|
|
timerStop(); |
|
|
|
return nullptr; |
|
|
|
} |
|
|
|
if (checkTimeout()) |
|
|
|
throw SonoException("Eeprom reading timeout is happened due to the I2C busy"); |
|
|
|
} |
|
|
|
|
|
|
|
timerStop(); |
|
|
@ -134,27 +130,24 @@ QByteArray BoardsCtrlMngt::eepromRead(quint32 addr, quint32 length, quint8 prbSe |
|
|
|
_rom->probeSelect = prbSel; |
|
|
|
setEepromRead<T4>(_rom, request); |
|
|
|
|
|
|
|
timerShot(100); |
|
|
|
status->sync(); |
|
|
|
done = ((status->reqDone->getValue())!=0); |
|
|
|
error = ((status->reqError->getValue())!=0); |
|
|
|
|
|
|
|
timerShot(1); |
|
|
|
while (!error && !done) |
|
|
|
{ |
|
|
|
status->sync(); |
|
|
|
done = ((status->reqDone->getValue())!=0); |
|
|
|
error = ((status->reqError->getValue())!=0); |
|
|
|
if (checkTimerShot()) |
|
|
|
{ |
|
|
|
// throw exception("Eeprom finish reading is corrupted due to the failure to receive done");
|
|
|
|
timerStop(); |
|
|
|
return nullptr; |
|
|
|
} |
|
|
|
if (checkTimeout()) |
|
|
|
throw SonoException("Eeprom reading is corrupted due to the failure to receive done"); |
|
|
|
} |
|
|
|
|
|
|
|
timerStop(); |
|
|
|
|
|
|
|
if (error) |
|
|
|
{ |
|
|
|
// throw exception("Eeprom finish reading is corrupted due to the error occurrence");
|
|
|
|
return nullptr; |
|
|
|
} |
|
|
|
throw SonoException("Eeprom reading is corrupted due to the error occurrence"); |
|
|
|
|
|
|
|
rdArray.append(static_cast<qint8>(status->dataOut->getValue())); |
|
|
|
|
|
|
@ -166,9 +159,9 @@ QByteArray BoardsCtrlMngt::eepromRead(quint32 addr, quint32 length, quint8 prbSe |
|
|
|
template<class T6> |
|
|
|
void BoardsCtrlMngt::setEepromRead(BoardsCtrlMngt::EepromReq *_rom, T6 *request) |
|
|
|
{ |
|
|
|
request->dataIn->setValue(static_cast<quint32>(_rom->dataIn)); |
|
|
|
request->address->setValue(static_cast<quint32>(_rom->address)); |
|
|
|
request->prbSel->setValue(static_cast<quint32>(_rom->probeSelect)); |
|
|
|
request->dataIn->setValue(_rom->dataIn); |
|
|
|
request->address->setValue(_rom->address); |
|
|
|
request->prbSel->setValue(_rom->probeSelect); |
|
|
|
request->rdReq->setValue(1); |
|
|
|
request->wrReq->setValue(0); |
|
|
|
request->update(); |
|
|
@ -188,8 +181,8 @@ QVector<float> BoardsCtrlMngt::voltPg(float adcVolt) |
|
|
|
{ |
|
|
|
QVector<float> pgVec; |
|
|
|
pgVec.clear(); |
|
|
|
pgVec.append(adcVolt * (95/100)); |
|
|
|
pgVec.append(adcVolt * (105/100)); |
|
|
|
pgVec.append(adcVolt * (95.0f/100.0f)); |
|
|
|
pgVec.append(adcVolt * (105.0f/100.0f)); |
|
|
|
return pgVec; |
|
|
|
} |
|
|
|
|
|
|
@ -522,14 +515,10 @@ bool BoardsCtrlMngt::getI2cBusy() const |
|
|
|
|
|
|
|
void BoardsCtrlMngt::getSupervisorI2cTimeout() const |
|
|
|
{ |
|
|
|
|
|
|
|
timerShot(10); |
|
|
|
while (getI2cBusy()) { |
|
|
|
if (checkTimerShot()) |
|
|
|
{ |
|
|
|
// throw exception("Supervisor request timeout is happened due to the MPS I2C busy");
|
|
|
|
timerStop(); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (checkTimeout()) |
|
|
|
throw SonoException("Supervisor request timeout is happened due to the MPS I2C busy"); |
|
|
|
} |
|
|
|
timerStop(); |
|
|
|
} |
|
|
@ -538,20 +527,13 @@ void BoardsCtrlMngt::getSupervisorI2cDone() const |
|
|
|
{ |
|
|
|
timerShot(10); |
|
|
|
while (!getI2cCmdDone() && !getI2cCmdErr()){ |
|
|
|
if (checkTimerShot()) |
|
|
|
{ |
|
|
|
// throw exception("Supervisor request is corrupted due to the failure to receive MPS I2C done");
|
|
|
|
timerStop(); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (checkTimeout()) |
|
|
|
throw SonoException("Supervisor request is corrupted due to the failure to receive MPS I2C done"); |
|
|
|
} |
|
|
|
timerStop(); |
|
|
|
|
|
|
|
if (getI2cCmdErr()) |
|
|
|
{ |
|
|
|
// throw exception("Supervisor request is corrupted due to the MPS I2C error occurrence");
|
|
|
|
return; |
|
|
|
} |
|
|
|
throw SonoException("Supervisor request is corrupted due to the MPS I2C error occurrence"); |
|
|
|
} |
|
|
|
|
|
|
|
void BoardsCtrlMngt::setSetupCmdP24vOnOff(bool p24vOnOff) const |
|
|
@ -607,12 +589,15 @@ void BoardsCtrlMngt::setMpsDacsValue(BoardsCtrlMngt::MpsDacs *_mpsDacs) const |
|
|
|
|
|
|
|
void BoardsCtrlMngt::timerShot(quint16 ms) const |
|
|
|
{ |
|
|
|
_timer->singleShot(ms, this, SLOT(checkTimerShot)); |
|
|
|
//_timer->singleShot(ms, this, SLOT(checkTimerShot));
|
|
|
|
_timer->setSingleShot(true); |
|
|
|
_timer->setInterval(ms); |
|
|
|
_timer->start(); |
|
|
|
} |
|
|
|
|
|
|
|
bool BoardsCtrlMngt::checkTimerShot() const |
|
|
|
bool BoardsCtrlMngt::checkTimeout() const |
|
|
|
{ |
|
|
|
return _timer->isSingleShot(); |
|
|
|
return (_timer->remainingTime()==0) ? true : false; |
|
|
|
} |
|
|
|
|
|
|
|
void BoardsCtrlMngt::timerStop() const |
|
|
@ -673,73 +658,68 @@ float BoardsCtrlMngt::getTrxTempSensor() const |
|
|
|
return (temp * TEMP_SENSOR_RESOLUTION); |
|
|
|
} |
|
|
|
|
|
|
|
AdcVoltages *BoardsCtrlMngt::getTrxBoardVoltages() |
|
|
|
void BoardsCtrlMngt::getTrxBoardVoltages(AdcVoltages* adc, VoltagesPg* pg) |
|
|
|
{ |
|
|
|
quint32 value(0); |
|
|
|
float voltValue(0); |
|
|
|
QVector<float> pgVec; |
|
|
|
AdcVoltages* adc; |
|
|
|
|
|
|
|
this->_adc3P3V->sync(); |
|
|
|
value = this->_adc3P3V->channel5Mon->getValue(); |
|
|
|
voltValue = resDiv(51,100000,value); |
|
|
|
voltValue = resDiv(51.0f,100000.0f,value); |
|
|
|
adc->mon3P3V = voltValue; |
|
|
|
pgVec= voltPg(3.3f); |
|
|
|
_pg->mon3P3V = (voltValue >= pgVec.at(0) && voltValue <= pgVec.at(1)) ? good : bad; |
|
|
|
pg->mon3P3V = (voltValue >= pgVec.at(0) && voltValue <= pgVec.at(1)) ? good : bad; |
|
|
|
|
|
|
|
this->_adc5Vin->sync(); |
|
|
|
value = this->_adc5Vin->channel1Mon->getValue(); |
|
|
|
voltValue = resDiv(1.2f,2,value); |
|
|
|
voltValue = resDiv(1.2f,2.0f,value); |
|
|
|
adc->mon5Vin = voltValue; |
|
|
|
pgVec= voltPg(5.0f); |
|
|
|
_pg->mon5Vin = (voltValue >= pgVec.at(0) && voltValue <= pgVec.at(1)) ? good : bad; |
|
|
|
pg->mon5Vin = (voltValue >= pgVec.at(0) && voltValue <= pgVec.at(1)) ? good : bad; |
|
|
|
|
|
|
|
this->_adc12Vin->sync(); |
|
|
|
value = this->_adc12Vin->channel0Mon->getValue(); |
|
|
|
voltValue = resDiv(30, 10, value); |
|
|
|
voltValue = resDiv(30.0f, 10.0f, value); |
|
|
|
adc->mon12Vin = voltValue; |
|
|
|
pgVec= voltPg(12.0f); |
|
|
|
_pg->mon12Vin = (voltValue >= pgVec.at(0) && voltValue <= pgVec.at(1)) ? good : bad; |
|
|
|
pg->mon12Vin = (voltValue >= pgVec.at(0) && voltValue <= pgVec.at(1)) ? good : bad; |
|
|
|
|
|
|
|
this->_adcA1P8V->sync(); |
|
|
|
value = this->_adcA1P8V->channel6Mon->getValue(); |
|
|
|
voltValue = resDiv(51,100000,value); |
|
|
|
voltValue = resDiv(51.0f,100000.0f,value); |
|
|
|
adc->monAfeA1P8V = voltValue; |
|
|
|
pgVec= voltPg(1.8f); |
|
|
|
_pg->monAfeA1P8V = (voltValue >= pgVec.at(0) && voltValue <= pgVec.at(1)) ? good : bad; |
|
|
|
pg->monAfeA1P8V = (voltValue >= pgVec.at(0) && voltValue <= pgVec.at(1)) ? good : bad; |
|
|
|
|
|
|
|
this->_adcD1P8V->sync(); |
|
|
|
value = this->_adcD1P8V->channel7Mon->getValue(); |
|
|
|
voltValue = resDiv(51,100000,value); |
|
|
|
voltValue = resDiv(51.0f,100000.0f,value); |
|
|
|
adc->monAfeD1P8V = voltValue; |
|
|
|
pgVec= voltPg(1.8f); |
|
|
|
_pg->monAfeD1P8V = (voltValue >= pgVec.at(0) && voltValue <= pgVec.at(1)) ? good : bad; |
|
|
|
pg->monAfeD1P8V = (voltValue >= pgVec.at(0) && voltValue <= pgVec.at(1)) ? good : bad; |
|
|
|
|
|
|
|
this->_adcVcntlp->sync(); |
|
|
|
value = this->_adcVcntlp->channel4Mon->getValue(); |
|
|
|
adc->afeVcntlp = resDiv(0,100,value); |
|
|
|
adc->afeVcntlp = resDiv(0.0f,100.0f,value); |
|
|
|
|
|
|
|
this->_adcPrb3P3V->sync(); |
|
|
|
value = this->_adcPrb3P3V->channel3Mon->getValue(); |
|
|
|
voltValue = resDiv(47,47,value); |
|
|
|
voltValue = resDiv(47.0f,47.0f,value); |
|
|
|
adc->prbCtrl3P3V = voltValue; |
|
|
|
pgVec= voltPg(3.3f); |
|
|
|
_pg->prbCtrl3P3V = (voltValue >= pgVec.at(0) && voltValue <= pgVec.at(1)) ? good : bad; |
|
|
|
pg->prbCtrl3P3V = (voltValue >= pgVec.at(0) && voltValue <= pgVec.at(1)) ? good : bad; |
|
|
|
|
|
|
|
this->_adcPrbEncoder->sync(); |
|
|
|
value = this->_adcPrbEncoder->channel2Mon->getValue(); |
|
|
|
adc->prbZeroEncoder = resDiv(47,47,value); |
|
|
|
|
|
|
|
return adc; |
|
|
|
adc->prbZeroEncoder = resDiv(47.0f,47.0f,value); |
|
|
|
} |
|
|
|
|
|
|
|
VoltagesPg *BoardsCtrlMngt::getTrxVoltagesPg() |
|
|
|
void BoardsCtrlMngt::getTrxVoltagesPg(VoltagesPg* pg) |
|
|
|
{ |
|
|
|
this->_tRgltorPg->sync(); |
|
|
|
_pg->regulatorA = ((this->_tRgltorPg->regA->getValue())!=0) ? good : bad; |
|
|
|
_pg->regulatorB = ((this->_tRgltorPg->regB->getValue())!=0) ? good : bad; |
|
|
|
|
|
|
|
return _pg; |
|
|
|
pg->regulatorA = ((this->_tRgltorPg->regA->getValue())!=0) ? good : bad; |
|
|
|
pg->regulatorB = ((this->_tRgltorPg->regB->getValue())!=0) ? good : bad; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -850,10 +830,8 @@ void BoardsCtrlMngt::mpsHvSet(float &hva, float &hvb) const |
|
|
|
getSupervisorI2cDone(); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
// throw exception("A and B voltage are out of range");
|
|
|
|
return; |
|
|
|
} |
|
|
|
throw SonoException("A and B voltage are out of range"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -861,54 +839,44 @@ void BoardsCtrlMngt::mpsHvSet(float &hva, float &hvb) const |
|
|
|
QByteArray BoardsCtrlMngt::trxEepromRead(quint32 address, quint32 length) |
|
|
|
{ |
|
|
|
if (address + length >= TRX_ROM_MAX_LEN) |
|
|
|
{ |
|
|
|
// throw exception("Out of range reading from TRX eeprom ");
|
|
|
|
return nullptr; |
|
|
|
} |
|
|
|
throw SonoException("Out of range reading from TRX eeprom "); |
|
|
|
|
|
|
|
quint8 prbSel = 0; |
|
|
|
eepromRead<TrxEepromRwReq, TrxEepromRwStatus>(address, length, prbSel, _tRomReq, _tRomStatus); |
|
|
|
return eepromRead<TrxEepromRwReq, TrxEepromRwStatus>(address, length, prbSel, _tRomReq, _tRomStatus); |
|
|
|
} |
|
|
|
|
|
|
|
QByteArray BoardsCtrlMngt::mpsEepromRead(quint32 address, quint32 length) |
|
|
|
{ |
|
|
|
if (address + length >= MPS_ROM_MAX_LEN) |
|
|
|
{ |
|
|
|
// throw exception("Out of range reading from MPS eeprom ");
|
|
|
|
return nullptr; |
|
|
|
} |
|
|
|
throw SonoException("Out of range reading from MPS eeprom "); |
|
|
|
|
|
|
|
quint8 prbSel = 0; |
|
|
|
eepromRead<MpsEepromRwReq, MpsEepromRwStatus>(address, length, prbSel, _mRomReq, _mRomStatus); |
|
|
|
return eepromRead<MpsEepromRwReq, MpsEepromRwStatus>(address, length, prbSel, _mRomReq, _mRomStatus); |
|
|
|
} |
|
|
|
|
|
|
|
QByteArray BoardsCtrlMngt::prbCtrlEepromRead(quint32 address, quint32 length) |
|
|
|
{ |
|
|
|
if (address + length >= PRB_CTRL_ROM_MAX_LEN) |
|
|
|
{ |
|
|
|
// throw exception("Out of range reading from Probe Control eeprom ");
|
|
|
|
return nullptr; |
|
|
|
} |
|
|
|
throw SonoException("Out of range reading from Probe Control eeprom "); |
|
|
|
|
|
|
|
quint8 prbSel = 0; |
|
|
|
eepromRead<PrbCtrlEepromRwReq, PrbCtrlEepromRwStatus>(address, length, prbSel, _pCtrlRomReq, _pCtrlRomStatus); |
|
|
|
return eepromRead<PrbCtrlEepromRwReq, PrbCtrlEepromRwStatus>(address, length, prbSel, _pCtrlRomReq, _pCtrlRomStatus); |
|
|
|
} |
|
|
|
|
|
|
|
QByteArray BoardsCtrlMngt::prbEepromRead(quint32 address, quint32 length, quint8 prbSel) |
|
|
|
{ |
|
|
|
if (address + length >= PRB_ROM_MAX_LEN) |
|
|
|
{ |
|
|
|
// throw exception("Out of range reading from Probe eeprom ");
|
|
|
|
return nullptr; |
|
|
|
} |
|
|
|
eepromRead<PrbEepromRwReq, PrbEepromRwStatus>(address, length, prbSel, _pRomReq, _pRomStatus); |
|
|
|
throw SonoException("Out of range reading from Probe eeprom "); |
|
|
|
|
|
|
|
return eepromRead<PrbEepromRwReq, PrbEepromRwStatus>(address, length, prbSel, _pRomReq, _pRomStatus); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void trxEepromWrite(QString str, quint32 address, BoardsCtrlMngt* boards) |
|
|
|
{ |
|
|
|
if (str.size() >= static_cast<qint32>(TRX_ROM_MAX_LEN)) |
|
|
|
{ |
|
|
|
// throw exception("Out of range writing into TRX eeprom ");
|
|
|
|
return; |
|
|
|
} |
|
|
|
throw SonoException("Out of range writing into TRX eeprom "); |
|
|
|
|
|
|
|
quint8 prbSel = 0; |
|
|
|
boards->eepromWrite<TrxEepromRwReq, TrxEepromRwStatus>(str, address, prbSel, boards->_tRomReq, boards->_tRomStatus); |
|
|
|
} |
|
|
@ -916,10 +884,8 @@ void trxEepromWrite(QString str, quint32 address, BoardsCtrlMngt* boards) |
|
|
|
void mpsEepromWrite(QString str, quint32 address, BoardsCtrlMngt *boards) |
|
|
|
{ |
|
|
|
if (str.size() >= static_cast<qint32>(MPS_ROM_MAX_LEN)) |
|
|
|
{ |
|
|
|
// throw exception("Out of range writing into MPS eeprom ");
|
|
|
|
return; |
|
|
|
} |
|
|
|
throw SonoException("Out of range writing into MPS eeprom "); |
|
|
|
|
|
|
|
quint8 prbSel = 0; |
|
|
|
boards->eepromWrite<MpsEepromRwReq, MpsEepromRwStatus>(str, address, prbSel, boards->_mRomReq, boards->_mRomStatus); |
|
|
|
} |
|
|
@ -927,10 +893,8 @@ void mpsEepromWrite(QString str, quint32 address, BoardsCtrlMngt *boards) |
|
|
|
void prbCtrlEepromWrite(QString str, quint32 address, BoardsCtrlMngt *boards) |
|
|
|
{ |
|
|
|
if (str.size() >= static_cast<qint32>(PRB_CTRL_ROM_MAX_LEN)) |
|
|
|
{ |
|
|
|
// throw exception("Out of range writing into Probe Control eeprom ");
|
|
|
|
return; |
|
|
|
} |
|
|
|
throw SonoException("Out of range writing into Probe Control eeprom "); |
|
|
|
|
|
|
|
quint8 prbSel = 0; |
|
|
|
boards->eepromWrite<PrbCtrlEepromRwReq, PrbCtrlEepromRwStatus>(str, address, prbSel, boards->_pCtrlRomReq, boards->_pCtrlRomStatus); |
|
|
|
} |
|
|
@ -938,10 +902,8 @@ void prbCtrlEepromWrite(QString str, quint32 address, BoardsCtrlMngt *boards) |
|
|
|
void prbEepromWrite(QString str, quint32 address, quint8 prbSel, BoardsCtrlMngt *boards) |
|
|
|
{ |
|
|
|
if (str.size() >= static_cast<qint32>(PRB_ROM_MAX_LEN)) |
|
|
|
{ |
|
|
|
// throw exception("Out of range writing into Probe eeprom ");
|
|
|
|
return; |
|
|
|
} |
|
|
|
throw SonoException("Out of range writing into Probe eeprom "); |
|
|
|
|
|
|
|
boards->eepromWrite<PrbEepromRwReq, PrbEepromRwStatus>(str, address, prbSel, boards->_pRomReq, boards->_pRomStatus); |
|
|
|
} |
|
|
|
|
|
|
|