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

View File

@@ -1248,6 +1248,12 @@ class multiSlsDetector : public slsDetectorUtils {
*/
int enableTenGigabitEthernet(int i = -1);
/** set/get receiver fifo depth
* @param i is -1 to get, any other value to set the fifo deph
/returns the receiver fifo depth
*/
int setReceiverFifoDepth(int i = -1);
/******** CTB funcs */