gotthard: temp readable

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@54 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
l_maliakal_d 2011-11-18 17:04:58 +00:00
parent e4495f2bf4
commit 19e2f2ef60

View File

@ -863,7 +863,7 @@ float getTemperature(int tempSensor, int imod)
#ifdef VERBOSE #ifdef VERBOSE
printf("Getting Temperature of module:%d for the %s\n",imod,cTempSensor[tempSensor]); printf("Getting Temperature of module:%d for the %s\n",imod,cTempSensor[tempSensor]);
#endif #endif
bus_w(TEMP_SPI_IN,T1_CLK_BIT|T1_CS_BIT|T2_CLK_BIT|T2_CS_BIT);//standby bus_w(TEMP_SPI_IN,(T1_CLK_BIT)|(T1_CS_BIT)|(T2_CLK_BIT)|(T2_CS_BIT));//standby
bus_w(TEMP_SPI_IN,(T1_CLK_BIT)&~(T1_CS_BIT)|(T2_CLK_BIT));//high clk low cs bus_w(TEMP_SPI_IN,(T1_CLK_BIT)&~(T1_CS_BIT)|(T2_CLK_BIT));//high clk low cs
for(k=0;k<2;k++){ for(k=0;k<2;k++){
@ -879,7 +879,7 @@ float getTemperature(int tempSensor, int imod)
} }
times=8; times=8;
} }
bus_w(TEMP_SPI_IN,T1_CLK_BIT|T1_CS_BIT|T2_CLK_BIT|T2_CS_BIT);//standby bus_w(TEMP_SPI_IN,(T1_CLK_BIT)|(T1_CS_BIT)|(T2_CLK_BIT)|(T2_CS_BIT));//standby
val=((float)tempVal)/4.0; val=((float)tempVal)/4.0;
#ifdef VERBOSE//read time from start needed?? #ifdef VERBOSE//read time from start needed??