FACT++  1.0
template<class T>
int StateMachineFAD< T >::SendCmdData ( const EventImp evt)
inlineprivate

Definition at line 598 of file fadctrl.cc.

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

Referenced by StateMachineFAD< T >::StateMachineFAD().

599  {
600  if (!CheckEventSize(evt.GetSize(), "SendCmdData", 8))
601  return T::kSM_FatalError;
602 
603  const uint32_t *ptr = evt.Ptr<uint32_t>();
604 
605  if (ptr[0]>0xffff)
606  {
607  T::Warn("Command value out of range (0-65535).");
608  return T::GetCurrentState();
609  }
610 
611  if (ptr[1]>0xffff)
612  {
613  T::Warn("Data value out of range (0-65535).");
614  return T::GetCurrentState();
615  }
616 
617  for (BoardList::iterator i=fBoards.begin(); i!=fBoards.end(); i++)
618  i->second->PostCmd(ptr[0], ptr[1]);
619 
620  return T::GetCurrentState();
621  }
BoardList fBoards
Definition: fadctrl.cc:555
int i
Definition: db_dim_client.c:21
bool CheckEventSize(size_t has, const char *name, size_t size)
Definition: fadctrl.cc:562
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: