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

Definition at line 655 of file fadctrl.cc.

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

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

656  {
657  if (!CheckEventSize(evt.GetSize(), "SetRegister", 8))
658  return T::kSM_FatalError;
659 
660  const uint32_t *dat = evt.Ptr<uint32_t>();
661 
663  return T::GetCurrentState();
664 
665  for (BoardList::iterator i=fBoards.begin(); i!=fBoards.end(); i++)
666  i->second->CmdSetRegister(dat[0], dat[1]);
667 
668  return T::GetCurrentState();
669  }
bool Check(const uint32_t *dat, uint32_t maxaddr, uint32_t maxval)
Definition: fadctrl.cc:634
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: