FACT++  1.0
template<class T , class S >
int StateMachineFTM< T, S >::StartRun ( )
inlineprivate

Definition at line 1520 of file ftmctrl.cc.

References FTM::State::kConfigured1, FTM::State::kConfigured2, and FTM::kRegister.

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

1521  {
1522  // This is a workaround... it seems that the FTM ignored the 'trigger on'
1523  // as long as it is still sending thresholds to the FTUs (and it seems
1524  // that this is the only command/confguration) which gets ignored.
1525  // So if we are configuring, we resent this command until we got a
1526  // reasonable answer (TriggerOn) back from the FTM.
1527  // There is no need to send the command here, because Execute
1528  // will be called immediately after this anyway before any
1529  // answer could be processed. So it would just guarantee that
1530  // the command is sent twice for no reason.
1531 
1532  fFTM.CmdStartRun();
1533 
1534  if (T::GetCurrentState()!=FTM::State::kConfigured1)
1535  return T::GetCurrentState();
1536 
1537  fCounterReg = fFTM.GetCounter(FTM::kRegister);
1538  return FTM::State::kConfigured2;
1539  }
uint32_t fCounterReg
Definition: ftmctrl.cc:2007
A requested register value.
Definition: HeadersFTM.h:93

+ Here is the caller graph for this function: