mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-26 00:00:02 +02:00
fixed clean fifo roi_flag error(being set after cleanfifo called)
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@433 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
parent
47a9d34991
commit
3be74327f3
@ -262,7 +262,7 @@ int cleanFifo(){
|
||||
}
|
||||
reg=bus_r(addr);
|
||||
#ifdef DDEBUG
|
||||
printf("\nADC SYNC reg:%d\n",reg);
|
||||
printf("\nADC SYNC reg:%x\n",reg);
|
||||
#endif
|
||||
return OK;
|
||||
}
|
||||
@ -1177,8 +1177,12 @@ int initConfGain(int isettings,int val,int imod){
|
||||
|
||||
|
||||
int configureMAC(int ipad,long long int macad,long long int detectormacad, int detipad, int ival, int adc,int udpport){
|
||||
//setting daqregister
|
||||
setDAQRegister(adc);
|
||||
|
||||
if(runBusy())
|
||||
if(stopStateMachine()==FAIL)
|
||||
return FAIL;
|
||||
|
||||
|
||||
//setting adc mask
|
||||
int reg;
|
||||
int udpPacketSize=0x050E;
|
||||
@ -1209,6 +1213,9 @@ int configureMAC(int ipad,long long int macad,long long int detectormacad, int d
|
||||
}
|
||||
|
||||
|
||||
//setting daqregister
|
||||
setDAQRegister(adc);
|
||||
|
||||
#ifdef DDEBUG
|
||||
printf("Chip of Intrst Reg:%x\n",bus_r(CHIP_OF_INTRST_REG));
|
||||
printf("IP Packet Size:%d\n",ipPacketSize);
|
||||
|
@ -2600,8 +2600,11 @@ int configure_mac(int file_des) {
|
||||
printf("Configuring MAC of module %d and adc %d at port %x\n", imod, adc,udpport);
|
||||
//#endif
|
||||
#ifdef MCB_FUNCS
|
||||
if (ret==OK)
|
||||
configureMAC(ipad,imacadd,idetectormacadd,detipad,digitalTestBit,adc,udpport);
|
||||
if (ret==OK){
|
||||
ret=configureMAC(ipad,imacadd,idetectormacadd,detipad,digitalTestBit,adc,udpport);
|
||||
if(ret==FAIL)
|
||||
strcpy(mess,"could not stop detector acquisition to configure mac");
|
||||
}
|
||||
#endif
|
||||
if (ret==FAIL)
|
||||
printf("configuring MAC of mod %d failed\n", imod);
|
||||
|
Loading…
x
Reference in New Issue
Block a user