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

Definition at line 1833 of file ftmctrl.cc.

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

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

1834  {
1835  if (!CheckEventSize(evt.GetSize(), "SetClockRegister", 8*8))
1836  return T::kSM_FatalError;
1837 
1838  const uint64_t *reg = evt.Ptr<uint64_t>();
1839 
1840  if (!fFTM.SetClockRegister(reg))
1841  T::Warn("SetClockRegister - Value out of range.");
1842 
1843  return T::GetCurrentState();
1844  }
bool CheckEventSize(size_t has, const char *name, size_t size)
Definition: ftmctrl.cc:1467
const T * Ptr(size_t offset=0) const
Definition: EventImp.h:74
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: