mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 12:57:13 +02:00
a check in gotthard server to ensure that it is really gotthard and not moench module
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@528 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
Binary file not shown.
@ -78,12 +78,12 @@ int init_detector( int b) {
|
|||||||
setPhaseShiftOnce();
|
setPhaseShiftOnce();
|
||||||
prepareADC();
|
prepareADC();
|
||||||
setADC(-1); //already does setdaqreg and clean fifo
|
setADC(-1); //already does setdaqreg and clean fifo
|
||||||
printf("in chip of interest reg:0x%x\n",bus_r(CHIP_OF_INTRST_REG));
|
printf("Chip of interest:0x%x\n",bus_r(CHIP_OF_INTRST_REG));
|
||||||
int reg = (NCHAN*NCHIP)<<CHANNEL_OFFSET;
|
int reg = (NCHAN*NCHIP)<<CHANNEL_OFFSET;
|
||||||
reg&=CHANNEL_MASK;
|
reg&=CHANNEL_MASK;
|
||||||
reg|=ACTIVE_ADC_MASK;
|
reg|=ACTIVE_ADC_MASK;
|
||||||
bus_w(CHIP_OF_INTRST_REG,reg);
|
bus_w(CHIP_OF_INTRST_REG,reg);
|
||||||
printf("in chip of interest reg:0x%x\n",bus_r(CHIP_OF_INTRST_REG));
|
printf("Chip of interest:0x%x\n",bus_r(CHIP_OF_INTRST_REG));
|
||||||
setSettings(GET_SETTINGS,-1);
|
setSettings(GET_SETTINGS,-1);
|
||||||
//Initialization
|
//Initialization
|
||||||
setFrames(1);
|
setFrames(1);
|
||||||
|
Reference in New Issue
Block a user