Changeset 11210
- Timestamp:
- 06/29/11 15:15:37 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/HeadersFAD.h
r11193 r11210 219 219 Reverse(&fRunNumber); 220 220 Reverse(&fDNA); 221 222 for (int i=0; i<kNumTemp; i++) 223 { 224 fTempDrs[i] = 225 (fTempDrs[i]&0x8000) ? 226 ((fTempDrs[i]&0x007fff)^0xffffffff) : 227 (fTempDrs[i]&0x007fff); 228 fTempDrs[i]>>=3; 229 } 230 221 231 } 222 232 … … 246 256 Reverse(&h.fDNA); 247 257 258 for (int i=0; i<kNumTemp; i++) 259 { 260 h.fTempDrs[i] <<= 3; 261 h.fTempDrs[i] = ((h.fTempDrs[i]&0x800000) ? 262 (((h.fTempDrs[i]^0xffffffff)&0x007fff)|0x8000) : 263 (h.fTempDrs[i]&0x007fff)); 264 } 265 248 266 return htoncpy(h); 249 267 } 250 268 269 float GetTemp(int i) const { return fTempDrs[i]/16.; } 270 271 /* 251 272 float GetTemp(int i) const 252 273 { 253 return (((fTempDrs[i]&0x8000) 254 ? 274 return (((fTempDrs[i]&0x8000) ? 255 275 ((fTempDrs[i]&0x007fff)^0xffffffff) 256 : (fTempDrs[i]&0x007fff))>>3)/16.; } 276 : (fTempDrs[i]&0x007fff))>>3)/16.; }*/ 257 277 258 278 uint8_t PLLLCK() const { return fStatus>>12; }
Note:
See TracChangeset
for help on using the changeset viewer.