|
|
@ -1688,8 +1688,13 @@ void TrxBoard::scenStopAfterReadLimited() |
|
|
|
#endif |
|
|
|
|
|
|
|
/* set afeHvPwrOn true when unfreeze happen */ |
|
|
|
void TrxBoard::scenPlayerStart(bool afeHvPwrOn) |
|
|
|
void TrxBoard::scenPlayerStart(bool unfreezeWithoutScenChanging) |
|
|
|
{ |
|
|
|
if(isScenarioStart()) |
|
|
|
{ |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
if(_allow) |
|
|
|
{ |
|
|
|
_run = false; |
|
|
@ -1708,18 +1713,10 @@ void TrxBoard::scenPlayerStart(bool afeHvPwrOn) |
|
|
|
|
|
|
|
this->_device.startDma(); |
|
|
|
|
|
|
|
if(afeHvPwrOn) |
|
|
|
if(unfreezeWithoutScenChanging) |
|
|
|
{ |
|
|
|
setAfesPwr(afePwrdnDisable); |
|
|
|
// setAfesFastPwr(afePwrdnDisable);
|
|
|
|
|
|
|
|
#ifdef MPS_BOARD |
|
|
|
this->_bCtrlMngt->mpsDacsOn(); |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifdef DEVELOP_UI |
|
|
|
afesHvDacsOn(); |
|
|
|
this->delay(170); |
|
|
|
#endif |
|
|
|
} |
|
|
|
|
|
|
|
this->_scenPlayer->control.setCommand(true); |
|
|
@ -1744,8 +1741,13 @@ void TrxBoard::scenPlayerStart(bool afeHvPwrOn) |
|
|
|
} |
|
|
|
|
|
|
|
/* set afeHvPwrOff true when freeze happen */ |
|
|
|
void TrxBoard::scenPlayerStop(bool afeHvPwrOff) |
|
|
|
void TrxBoard::scenPlayerStop(bool freezeWithoutScenChanging) |
|
|
|
{ |
|
|
|
if(!isScenarioStart()) |
|
|
|
{ |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
_run = false; |
|
|
|
|
|
|
|
this->_device.stopDma(); |
|
|
@ -1761,18 +1763,10 @@ void TrxBoard::scenPlayerStop(bool afeHvPwrOff) |
|
|
|
|
|
|
|
this->_scenPlayer->control.setCommand(false); |
|
|
|
|
|
|
|
if(afeHvPwrOff) |
|
|
|
if(freezeWithoutScenChanging) |
|
|
|
{ |
|
|
|
setAfesPwr(afePwrdnEnable); |
|
|
|
// setAfesFastPwr(afePwrdnEnable);
|
|
|
|
|
|
|
|
#ifdef MPS_BOARD |
|
|
|
this->_bCtrlMngt->mpsDacsOff(); |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifdef DEVELOP_UI |
|
|
|
this->delay(140); |
|
|
|
#endif |
|
|
|
afesHvDacsOff(); |
|
|
|
this->delay(140); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|