FACT++  1.0
void ConnectionFAD::Cmd ( FAD::Enable  cmd,
bool  on = true 
)
inline

Definition at line 371 of file fadctrl.cc.

References kCmdBusyOff, kCmdBusyOn, kCmdContTrigger, kCmdDrsEnable, kCmdDwrite, kCmdSocket, and kCmdTriggerLine.

Referenced by StateMachineFAD< T >::Execute(), and StateMachineFAD< T >::StartConfigure().

372  {
373  switch (cmd)
374  {
375  case FAD::kCmdDrsEnable: fBufEventHeader.Enable(FAD::EventHeader::kDenable, on); break;
376  case FAD::kCmdDwrite: fBufEventHeader.Enable(FAD::EventHeader::kDwrite, on); break;
377  case FAD::kCmdTriggerLine: fBufEventHeader.Enable(FAD::EventHeader::kTriggerLine, on); break;
378  case FAD::kCmdBusyOn: fBufEventHeader.Enable(FAD::EventHeader::kBusyOn, on); break;
379  case FAD::kCmdBusyOff: fBufEventHeader.Enable(FAD::EventHeader::kBusyOff, on); break;
380  case FAD::kCmdContTrigger: fBufEventHeader.Enable(FAD::EventHeader::kContTrigger, on); break;
381  case FAD::kCmdSocket: fBufEventHeader.Enable(FAD::EventHeader::kSock17, !on); break;
382  default:
383  break;
384  }
385 
386  PostCmd(cmd + (on ? 0 : 0x100));
387  }
FAD::EventHeader fBufEventHeader
Definition: fadctrl.cc:50
void PostCmd(std::vector< uint16_t > cmd)
Definition: fadctrl.cc:308

+ Here is the caller graph for this function: