Changeset 10789
- Timestamp:
- 05/23/11 15:42:12 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/ftmctrl.cc
r10785 r10789 574 574 } 575 575 576 bool CmdResetCrate(uint16_t addr) 577 { 578 if (addr>3) 579 return false; 580 581 PostCmd(FTM::kCmdCrateReset, 1<<addr); 582 583 return true; 584 } 585 586 bool CmdResetCamera() 587 { 588 PostCmd(FTM::kCmdCrateReset, FTM::kResetCrate0); 589 PostCmd(FTM::kCmdCrateReset, FTM::kResetCrate1); 590 PostCmd(FTM::kCmdCrateReset, FTM::kResetCrate2); 591 PostCmd(FTM::kCmdCrateReset, FTM::kResetCrate3); 592 593 return true; 594 } 595 576 596 bool CmdDisableReports(bool b) 577 597 { … … 1366 1386 } 1367 1387 1388 int ResetCrate(const EventImp &evt) 1389 { 1390 if (!CheckEventSize(evt.GetSize(), "ResetCrate", 2)) 1391 return T::kSM_FatalError; 1392 1393 fFTM.CmdResetCrate(evt.GetUShort()); 1394 1395 return T::GetCurrentState(); 1396 } 1397 1368 1398 int Disconnect() 1369 1399 { … … 1596 1626 AddEvent("SET_CALIBRATION_WINDOW", "S:1", kStateIdle) 1597 1627 (boost::bind(&StateMachineFTM::SetCalibWindow, this, _1)) 1628 (""); 1629 1630 AddEvent("RESET_CRATE", "S:1", kStateIdle) 1631 (boost::bind(&StateMachineFTM::ResetCrate, this, _1)) 1632 (""); 1633 1634 AddEvent("RESET_CAMERA", kStateIdle) 1635 (Wrapper(boost::bind(&ConnectionFTM::CmdResetCamera, &fFTM))) 1598 1636 (""); 1599 1637
Note:
See TracChangeset
for help on using the changeset viewer.