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

Definition at line 2014 of file ftmctrl.cc.

References Error(), EventImp::GetText(), FTM::State::kConfiguring1, and FTM::kRegister.

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

2015  {
2016  const string name = evt.GetText();
2017 
2018  fTargetConfig = fConfigs.find(name);
2019  if (fTargetConfig==fConfigs.end())
2020  {
2021  T::Error("ConfigureFTM - Run-type '"+name+"' not found.");
2022  return T::GetCurrentState();
2023  }
2024 
2025  T::Message("Starting configuration for '"+name+"' ["+to_string(fFTM.IsTxQueueEmpty())+"]");
2026 
2027  fCounterReg = fFTM.GetCounter(FTM::kRegister);
2028  fFTM.CmdStopRun();
2029 
2031  }
const char * GetText() const
Definition: EventImp.h:88
Configs::const_iterator fTargetConfig
Definition: ftmctrl.cc:2012
Configs fConfigs
Definition: ftmctrl.cc:2011
uint32_t fCounterReg
Definition: ftmctrl.cc:2007
A requested register value.
Definition: HeadersFTM.h:93
Error()
Definition: HeadersFTM.h:197

+ Here is the call graph for this function:

+ Here is the caller graph for this function: