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

Definition at line 1504 of file ftmctrl.cc.

References Error(), EventImp::GetInt(), and EventImp::GetSize().

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

1505  {
1506  if (!CheckEventSize(evt.GetSize(), "GetRegister", 4))
1507  return T::kSM_FatalError;
1508 
1509  const unsigned int addr = evt.GetInt();
1510  if (addr>uint16_t(-1) || !fFTM.CmdGetRegister(addr))
1511  {
1512  ostringstream msg;
1513  msg << hex << "Address " << addr << " out of range.";
1514  T::Error(msg);
1515  }
1516 
1517  return T::GetCurrentState();
1518  }
bool CheckEventSize(size_t has, const char *name, size_t size)
Definition: ftmctrl.cc:1467
int32_t GetInt() const
Definition: EventImp.h:93
Error()
Definition: HeadersFTM.h:197
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: