implemented fifo depth configurable from client

This commit is contained in:
Dhanya Maliakal
2015-11-17 10:30:53 +01:00
parent f68d6d0ab6
commit 66db11421f
8 changed files with 86 additions and 3 deletions

View File

@ -4938,6 +4938,25 @@ int multiSlsDetector::enableTenGigabitEthernet(int i){
int multiSlsDetector::setReceiverFifoDepth(int i){
int ret=-100,ret1;
for (int idet=0; idet<thisMultiDetector->numberOfDetectors; idet++)
if (detectors[idet]){
ret1=detectors[idet]->setReceiverFifoDepth(i);
if(detectors[idet]->getErrorMask())
setErrorMask(getErrorMask()|(1<<idet));
if(ret==-100)
ret=ret1;
else if (ret!=ret1)
ret=-1;
}
return ret;
}
/** opens pattern file and sends pattern to CTB
@param fname pattern file to open