mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 12:57:13 +02:00
a few more changes for phaseshiftonce
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@80 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -176,7 +176,7 @@ int setDAQRegister()
|
||||
|
||||
int setPhaseShiftOnce(){
|
||||
u_int32_t addr, reg;
|
||||
int result=OK, i,val,powerOn=0;
|
||||
int result=OK, i,val;
|
||||
addr=MULTI_PURPOSE_REG;
|
||||
reg=bus_r(addr);
|
||||
#ifdef VERBOSE
|
||||
@ -200,7 +200,26 @@ int setPhaseShiftOnce(){
|
||||
}
|
||||
|
||||
reg=bus_r(addr);
|
||||
printf("\nREG:%d\n",reg);
|
||||
printf("Multipupose reg now:%d\n",reg);
|
||||
|
||||
//for init_enet.. to convert ipaddress
|
||||
/*
|
||||
string sval;
|
||||
sval.assign("129.129.202.176");
|
||||
stringstream sstr(sval);
|
||||
string word;
|
||||
char chex[50],cword[50];
|
||||
int i,inum;
|
||||
|
||||
|
||||
while(getline(sstr,word,'.')){
|
||||
i=atoi(word.c_str());
|
||||
sprintf(chex,"%02x",i);
|
||||
strcat(cword,chex);
|
||||
}
|
||||
printf("%s\n\n",cword);
|
||||
*/
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user