mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-28 01:00:02 +02:00
gotthard: everything done except gigabyte and adcwrite upto now
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@73 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
parent
15a649c767
commit
a77a6bac21
@ -944,10 +944,12 @@ int initConfGain(int val, int imod){
|
||||
printf("Setting/Getting confgain of module:%d with val:%d\n",imod,val);
|
||||
#endif
|
||||
u_int32_t addr=GAIN_REG;
|
||||
bus_w(addr,val);
|
||||
if(val!=-1){
|
||||
bus_w(addr,val);
|
||||
#ifdef VERBOSE
|
||||
printf("Value sent to confGain reg is %d\n",val);
|
||||
printf("Value sent to confGain reg is %d\n",val);
|
||||
#endif
|
||||
}
|
||||
val=bus_r(addr);
|
||||
#ifdef VERBOSE
|
||||
printf("Value read from confGain reg is %d\n",val);
|
||||
|
@ -931,7 +931,7 @@ int setSettings(int i)
|
||||
}
|
||||
|
||||
#ifdef VERBOSE
|
||||
printf("detector settings are %d\n",isett);
|
||||
printf("detector settings are %d and confGain is %d\n",isett,initConfGainByModule(-1,-1));
|
||||
#endif
|
||||
if (isett==UNDEFINED && thisSettings==UNINITIALIZED)
|
||||
;
|
||||
|
Loading…
x
Reference in New Issue
Block a user