Changeset 11609 for trunk/FACT++/src
- Timestamp:
- 07/26/11 13:01:08 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/fadctrl.cc
r11588 r11609 1531 1531 1532 1532 // FAD Commands 1533 T::AddEvent("SEND_CMD", "I:1" )1533 T::AddEvent("SEND_CMD", "I:1", FAD::kConnecting, FAD::kConnected) 1534 1534 (bind(&StateMachineFAD::SendCmd, this, placeholders::_1)) 1535 1535 ("Send a command to the FADs. Values between 0 and 0xffff are allowed." 1536 1536 "|command[uint16]:Command to be transmittted."); 1537 T::AddEvent("SEND_DATA", "I:2" )1537 T::AddEvent("SEND_DATA", "I:2", FAD::kConnecting, FAD::kConnected) 1538 1538 (bind(&StateMachineFAD::SendCmdData, this, placeholders::_1)) 1539 1539 ("Send a command with data to the FADs. Values between 0 and 0xffff are allowed." … … 1541 1541 "|data[uint16]:Data to be sent with the command."); 1542 1542 1543 T::AddEvent("ENABLE_SRCLK", "B:1" )1543 T::AddEvent("ENABLE_SRCLK", "B:1", FAD::kConnecting, FAD::kConnected) 1544 1544 (bind(&StateMachineFAD::CmdEnable, this, placeholders::_1, FAD::kCmdSrclk)) 1545 1545 ("Set SRCLK"); 1546 T::AddEvent("ENABLE_BUSY", "B:1" )1546 T::AddEvent("ENABLE_BUSY", "B:1", FAD::kConnecting, FAD::kConnected) 1547 1547 (bind(&StateMachineFAD::CmdEnable, this, placeholders::_1, FAD::kCmdBusy)) 1548 1548 ("Set BUSY"); 1549 T::AddEvent("ENABLE_SCLK", "B:1" )1549 T::AddEvent("ENABLE_SCLK", "B:1", FAD::kConnecting, FAD::kConnected) 1550 1550 (bind(&StateMachineFAD::CmdEnable, this, placeholders::_1, FAD::kCmdSclk)) 1551 1551 ("Set SCLK"); 1552 T::AddEvent("ENABLE_DRS", "B:1" )1552 T::AddEvent("ENABLE_DRS", "B:1", FAD::kConnecting, FAD::kConnected) 1553 1553 (bind(&StateMachineFAD::CmdEnable, this, placeholders::_1, FAD::kCmdDrsEnable)) 1554 1554 ("Switch Domino wave"); 1555 T::AddEvent("ENABLE_DWRITE", "B:1" )1555 T::AddEvent("ENABLE_DWRITE", "B:1", FAD::kConnecting, FAD::kConnected) 1556 1556 (bind(&StateMachineFAD::CmdEnable, this, placeholders::_1, FAD::kCmdDwrite)) 1557 1557 ("Set Dwrite (possibly high / always low)"); 1558 T::AddEvent("ENABLE_CONTINOUS_TRIGGER", "B:1" )1558 T::AddEvent("ENABLE_CONTINOUS_TRIGGER", "B:1", FAD::kConnecting, FAD::kConnected) 1559 1559 (bind(&StateMachineFAD::CmdEnable, this, placeholders::_1, FAD::kCmdContTrigger)) 1560 1560 ("Enable continous (internal) trigger."); 1561 T::AddEvent("ENABLE_TRIGGER_LINE", "B:1" )1561 T::AddEvent("ENABLE_TRIGGER_LINE", "B:1", FAD::kConnecting, FAD::kConnected) 1562 1562 (bind(&StateMachineFAD::CmdEnable, this, placeholders::_1, FAD::kCmdTriggerLine)) 1563 1563 ("Incoming triggers can be accepted/will not be accepted"); 1564 T::AddEvent("ENABLE_COMMAND_SOCKET_MODE", "B:1" )1564 T::AddEvent("ENABLE_COMMAND_SOCKET_MODE", "B:1", FAD::kConnecting, FAD::kConnected) 1565 1565 (bind(&StateMachineFAD::CmdEnable, this, placeholders::_1, FAD::kCmdSocket)) 1566 1566 ("Set debug mode (yes: dump events through command socket, no=dump events through other sockets)"); 1567 1567 1568 T::AddEvent("SET_TRIGGER_RATE", "I:1" )1568 T::AddEvent("SET_TRIGGER_RATE", "I:1", FAD::kConnecting, FAD::kConnected) 1569 1569 (bind(&StateMachineFAD::SetTriggerRate, this, placeholders::_1)) 1570 1570 ("Enable continous trigger"); 1571 T::AddEvent("SEND_SINGLE_TRIGGER" )1571 T::AddEvent("SEND_SINGLE_TRIGGER", FAD::kConnecting, FAD::kConnected) 1572 1572 (bind(&StateMachineFAD::Trigger, this, 1)) 1573 1573 ("Issue software triggers"); 1574 T::AddEvent("SEND_N_TRIGGERS", "I" )1574 T::AddEvent("SEND_N_TRIGGERS", "I", FAD::kConnecting, FAD::kConnected) 1575 1575 (bind(&StateMachineFAD::SendTriggers, this, placeholders::_1)) 1576 1576 ("Issue software triggers"); 1577 T::AddEvent("START_RUN", "" )1577 T::AddEvent("START_RUN", "", FAD::kConnecting, FAD::kConnected) 1578 1578 (bind(&StateMachineFAD::StartRun, this, placeholders::_1, true)) 1579 1579 ("Set FAD DAQ mode. when started, no configurations must be send."); 1580 T::AddEvent("STOP_RUN" )1580 T::AddEvent("STOP_RUN", FAD::kConnecting, FAD::kConnected) 1581 1581 (bind(&StateMachineFAD::StartRun, this, placeholders::_1, false)) 1582 1582 (""); 1583 T::AddEvent("PHASE_SHIFT", "S:1" )1583 T::AddEvent("PHASE_SHIFT", "S:1", FAD::kConnecting, FAD::kConnected) 1584 1584 (bind(&StateMachineFAD::PhaseShift, this, placeholders::_1)) 1585 1585 ("Adjust ADC phase (in 'steps')"); 1586 1586 1587 T::AddEvent("RESET_EVENT_COUNTER" )1587 T::AddEvent("RESET_EVENT_COUNTER", FAD::kConnecting, FAD::kConnected) 1588 1588 (bind(&StateMachineFAD::Cmd, this, FAD::kCmdResetEventCounter)) 1589 1589 (""); 1590 1590 1591 T::AddEvent("SET_RUN_NUMBER", "X:1" )1591 T::AddEvent("SET_RUN_NUMBER", "X:1", FAD::kConnecting, FAD::kConnected) 1592 1592 (bind(&StateMachineFAD::SetRunNumber, this, placeholders::_1)) 1593 1593 (""); … … 1598 1598 "|memory[short]:Buffer size in Mega-bytes."); 1599 1599 1600 T::AddEvent("SET_REGISTER", "I:2" )1600 T::AddEvent("SET_REGISTER", "I:2", FAD::kConnecting, FAD::kConnected) 1601 1601 (bind(&StateMachineFAD::SetRegister, this, placeholders::_1)) 1602 1602 ("set register to value" … … 1605 1605 1606 1606 // FIXME: Maybe add a mask which channels should be set? 1607 T::AddEvent("SET_REGION_OF_INTEREST", "I:2" )1607 T::AddEvent("SET_REGION_OF_INTEREST", "I:2", FAD::kConnecting, FAD::kConnected) 1608 1608 (bind(&StateMachineFAD::SetRoi, this, placeholders::_1)) 1609 1609 ("Set region-of-interest to value" … … 1612 1612 1613 1613 // FIXME: Maybe add a mask which channels should be set? 1614 T::AddEvent("SET_DAC_VALUE", "I:2" )1614 T::AddEvent("SET_DAC_VALUE", "I:2", FAD::kConnecting, FAD::kConnected) 1615 1615 (bind(&StateMachineFAD::SetDac, this, placeholders::_1)) 1616 1616 ("Set DAC numbers in range to value" … … 1691 1691 "|enable[bool]:Whether the event builder should ignore data from this slot (yes) or allowed (no)"); 1692 1692 1693 T::AddEvent("CLOSE_OPEN_FILES", FAD::k Connecting, FAD::kConnected)1693 T::AddEvent("CLOSE_OPEN_FILES", FAD::kDisconnected, FAD::kConnecting, FAD::kConnected) 1694 1694 (bind(&StateMachineFAD::CloseOpenFiles, this)) 1695 1695 ("Close all run files opened by the EventBuilder.");
Note:
See TracChangeset
for help on using the changeset viewer.