- Timestamp:
- 07/12/11 12:00:08 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/fad.cc
r11284 r11357 176 176 case kCmdDrsEnable+0x100: 177 177 fHeader.Enable(FAD::EventHeader::kDenable, fBufCommand[0]==kCmdDrsEnable); 178 cout << "-> DrsEnable "<< endl;178 cout << "-> DrsEnable " << fBoardId << " " << (fBufCommand[0]==kCmdDrsEnable) << endl; 179 179 break; 180 180 … … 182 182 case kCmdDwrite+0x100: 183 183 fHeader.Enable(FAD::EventHeader::kDwrite, fBufCommand[0]==kCmdDwrite); 184 cout << "-> Dwrite "<< endl;184 cout << "-> Dwrite " << fBoardId << " " << (fBufCommand[0]==kCmdDwrite) << endl; 185 185 break; 186 186 187 187 case kCmdTriggerLine: 188 188 case kCmdTriggerLine+0x100: 189 cout << "-> Trigger line "<< endl;189 cout << "-> Trigger line " << fBoardId << " " << (fBufCommand[0]==kCmdTriggerLine) << endl; 190 190 fTriggerEnabled = fBufCommand[0]==kCmdTriggerLine; 191 191 fHeader.Enable(FAD::EventHeader::kTriggerLine, fTriggerEnabled); … … 194 194 case kCmdSclk: 195 195 case kCmdSclk+0x100: 196 cout << "-> Sclk "<< endl;196 cout << "-> Sclk " << fBoardId << endl; 197 197 fHeader.Enable(FAD::EventHeader::kSpiSclk, fBufCommand[0]==kCmdSclk); 198 198 break; … … 200 200 case kCmdSrclk: 201 201 case kCmdSrclk+0x100: 202 cout << "-> Drclk "<< endl;202 cout << "-> Drclk " << fBoardId << endl; 203 203 break; 204 204 … … 206 206 case kCmdRun+0x100: 207 207 fStartTime = Time(Time::utc).UnixTime(); 208 cout << "-> Run "<< endl;208 cout << "-> Run " << fBoardId << endl; 209 209 break; 210 210 211 211 case kCmdBusy: 212 212 case kCmdBusy+0x100: 213 cout << "-> Busy "<< endl;213 cout << "-> Busy " << fBoardId << " " << (fBufCommand[0]==kCmdBusy) << endl; 214 214 fHeader.Enable(FAD::EventHeader::kBusy, fBufCommand[0]==kCmdBusy); 215 215 break; … … 217 217 case kCmdSocket: 218 218 case kCmdSocket+0x100: 219 cout << "-> Socket "<< endl;219 cout << "-> Socket " << fBoardId << " " << (fBufCommand[0]==kCmdSocket) << endl; 220 220 fCommandSocket = fBufCommand[0]==kCmdSocket; 221 221 fHeader.Enable(FAD::EventHeader::kSock17, !fCommandSocket); … … 229 229 fTriggerSendData.cancel(); 230 230 fHeader.Enable(FAD::EventHeader::kContTrigger, fBufCommand[0]==kCmdContTrigger); 231 cout << "-> ContTrig "<< endl;231 cout << "-> ContTrig " << fBoardId << " " << (fBufCommand[0]==kCmdContTrigger) << endl; 232 232 break; 233 233 234 234 case kCmdResetTriggerId: 235 cout << "-> ResetId "<< endl;235 cout << "-> ResetId " << fBoardId << endl; 236 236 fHeader.fEventCounter = 0; 237 237 break; … … 243 243 244 244 case kCmdWriteExecute: 245 cout << "-> Execute "<< endl;245 cout << "-> Execute " << fBoardId << endl; 246 246 memcpy(fHeader.fDac, fRam.fDac, sizeof(fHeader.fDac)); 247 247 for (int i=0; i<kNumChannels; i++) … … 298 298 fRam.fRunNumber &= 0xffff; 299 299 fRam.fRunNumber |= fBufCommand[0]<<16; 300 cout << "-> Set RunNumber MSW" << endl;300 cout << "-> Set RunNumber " << fBoardId << " MSW" << endl; 301 301 break; 302 302 case kCmdWriteRunNumberLSW: 303 303 fRam.fRunNumber &= 0xffff0000; 304 304 fRam.fRunNumber |= fBufCommand[0]; 305 cout << "-> Set RunNumber LSW" << endl;305 cout << "-> Set RunNumber " << fBoardId << " LSW" << endl; 306 306 break; 307 307 case kCmdWriteRoi: 308 cout << "-> Set Roi[" << fCommand[1] << "]=" << fBufCommand[0] << endl;308 cout << "-> Set " << fBoardId << " Roi[" << fCommand[1] << "]=" << fBufCommand[0] << endl; 309 309 //fChHeader[fCommand[1]].fRegionOfInterest = fBufCommand[0]; 310 310 fRamRoi[fCommand[1]] = fBufCommand[0]; … … 312 312 313 313 case kCmdWriteDac: 314 cout << "-> Set Dac[" << fCommand[1] << "]=" << fBufCommand[0] << endl;314 cout << "-> Set " << fBoardId << " Dac[" << fCommand[1] << "]=" << fBufCommand[0] << endl; 315 315 fRam.fDac[fCommand[1]] = fBufCommand[0]; 316 316 break; 317 317 318 318 case kCmdWriteRate: 319 cout << "-> Set Rate =" << fBufCommand[0] << endl;319 cout << "-> Set " << fBoardId << " Rate =" << fBufCommand[0] << endl; 320 320 fHeader.fTriggerGeneratorPrescaler = fBufCommand[0]; 321 321 break;
Note:
See TracChangeset
for help on using the changeset viewer.