acquire works with receiver now

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@324 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
l_maliakal_d
2012-10-29 17:00:53 +00:00
parent 30e6c810a8
commit f37cd6640f
3 changed files with 13 additions and 6 deletions

View File

@ -1445,8 +1445,12 @@ int configureMAC(int ipad,long long int macad,long long int servermacad,int ival
u_int32_t runBusy(void) {
return (bus_r(STATUS_REG)&RUN_BUSY_BIT);
u_int32_t s = bus_r(STATUS_REG);
//s=((s & RUN_BUSY_BIT) | (s & READMACHINE_BUSY_BIT));
//s=(s & RUN_BUSY_BIT);
//if(s!=0x62721)
// printf("status=%x\n",s);
return s;
}
u_int32_t dataPresent(void) {
@ -1618,8 +1622,10 @@ u_int32_t* fifo_read_event()
while ((t&0x1)==0)
{
t = bus_r(LOOK_AT_ME_REG);
if (!runBusy())
return NULL;
if (!runBusy()){
printf("\n\ngonna return null STATUS=%08x\n",runState());
return NULL;
}
}