FACT++  1.0
template<class T , class S >
int StateMachineFTM< T, S >::EnableFTU ( const EventImp evt)
inlineprivate

Definition at line 1696 of file ftmctrl.cc.

References EventImp::Get(), and EventImp::GetSize().

Referenced by StateMachineFTM< T, S >::StateMachineFTM().

1697  {
1698  if (!CheckEventSize(evt.GetSize(), "EnableFTU", 5))
1699  return T::kSM_FatalError;
1700 
1701  const int32_t &board = evt.Get<int32_t>();
1702  const int8_t &enable = evt.Get<int8_t>(4);
1703 
1704  if (!fFTM.EnableFTU(board, enable))
1705  T::Warn("EnableFTU - Board number must be <40.");
1706 
1707  return T::GetCurrentState();
1708  }
bool CheckEventSize(size_t has, const char *name, size_t size)
Definition: ftmctrl.cc:1467
T Get(size_t offset=0) const
Definition: EventImp.h:66
virtual size_t GetSize() const
Definition: EventImp.h:55

+ Here is the call graph for this function:

+ Here is the caller graph for this function: