- Timestamp:
- 06/23/11 22:11:25 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/HeadersFAD.cc
r11130 r11156 51 51 << "2:" << ((PLLLCK()&4)?"yes":"no") << " " 52 52 << "3:" << ((PLLLCK()&8)?"yes":"no") << endl; 53 if (IsRefClockTooHigh())54 out << " (too high)";53 // if (IsRefClockTooHigh()) 54 // out << " (too high)"; 55 55 if (IsRefClockTooLow()) 56 56 out << " (too low)"; 57 57 out << endl; 58 out << " Domino wave (Denable): " << (HasDenable()?"enabled":"disabled") << endl;59 out << " DRS sampling (Dwrite): " << (HasDwrite()?"enabled":"disabled") << endl;60 out << " Dig.clock manager (DCM): " << (IsDcmLocked()?"locked":"unlocked");58 out << " Domino wave (Denable): " << (HasDenable()?"enabled":"disabled") << endl; 59 out << " DRS sampling (Dwrite): " << (HasDwrite()?"enabled":"disabled") << endl; 60 out << " Dig.clock manager (DCM): " << (IsDcmLocked()?"locked":"unlocked"); 61 61 out << " / " << (IsDcmReady()?"ready":"not ready") << endl; 62 out << " SPI Serial Clock (SCLK): " << (HasSpiSclk()?"enabled":"disabled") << endl; 62 out << " SPI Serial Clock (SCLK): " << (HasSpiSclk()?"enabled":"disabled") << endl; 63 out << " Busy enabled: " << (HasBusy()?"enabled":"disabled") << endl; 64 out << " Trigger line enabled: " << (HasTriggerEnabled()?"enabled":"disabled") << endl; 65 out << " Continous trigger enabled: " << (HasContTriggerEnabled()?"enabled":"disabled") << endl; 66 out << " Data transmission socket: " << (IsInSock17Mode()?"Socket 0":"Sockets 1-7") << endl; 63 67 } 64 68 -
trunk/FACT++/src/HeadersFAD.h
r11154 r11156 25 25 kCmdContTriggerOff = 0x2000, 26 26 kCmdRun = 0x2200, // CMD_Start/Stop 27 kCmdBusy = 0x2400, // 27 28 kCmdResetTriggerId = 0x2A00, // 28 29 kCmdSocket = 0x3000, // CMD_mode_command/CMD_mode_all_sockets … … 100 101 kDenable = 1<<11, 101 102 kDwrite = 1<<10, 102 kRefClkTooHigh = 1<< 9,103 //kRefClkTooHigh = 1<< 9, 103 104 kRefClkTooLow = 1<< 8, 104 105 kDcmLocked = 1<< 7, 105 106 kDcmReady = 1<< 6, 106 107 kSpiSclk = 1<< 5, 108 kBusy = 1<< 4, // Busy enabled 109 kTriggerLine = 1<< 3, // Trigger line enabled 110 kContTrigger = 1<< 2, // Cont trigger enabled 111 kSock17 = 1<< 1, // Socket 1-7 for data transfer 107 112 }; 108 113 #endif … … 249 254 bool HasDenable() const { return fStatus&kDenable; } 250 255 bool HasDwrite() const { return fStatus&kDwrite; } 251 bool IsRefClockTooHigh() const { return fStatus&kRefClkTooHigh; }256 // bool IsRefClockTooHigh() const { return fStatus&kRefClkTooHigh; } 252 257 bool IsRefClockTooLow() const { return fStatus&kRefClkTooLow; } 253 258 bool IsDcmLocked() const { return fStatus&kDcmLocked; } 254 259 bool IsDcmReady() const { return fStatus&kDcmReady; } 255 260 bool HasSpiSclk() const { return fStatus&kSpiSclk; } 261 bool HasBusy() const { return fStatus&kBusy; } 262 bool HasTriggerEnabled() const { return fStatus&kTriggerLine; } 263 bool HasContTriggerEnabled() const { return fStatus&kContTrigger; } 264 bool IsInSock17Mode() const { return fStatus&kSock17; } 256 265 257 266 uint16_t Crate() const { return fBoardId>>8; } -
trunk/FACT++/src/fadctrl.cc
r11139 r11156 1367 1367 (boost::bind(&StateMachineFAD::CmdEnable, this, _1, FAD::kCmdSrclk)) 1368 1368 ("Set SRCLK"); 1369 T::AddEvent("ENABLE_BUSY", "B:1") 1370 (boost::bind(&StateMachineFAD::CmdEnable, this, _1, FAD::kCmdBusy)) 1371 ("Set BUSY"); 1369 1372 T::AddEvent("ENABLE_SCLK", "B:1") 1370 1373 (boost::bind(&StateMachineFAD::CmdEnable, this, _1, FAD::kCmdSclk))
Note:
See TracChangeset
for help on using the changeset viewer.