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

Definition at line 2243 of file drivectrl.cc.

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

2244  {
2245  if (!CheckEventSize(evt.GetSize(), "SetLedBrightness", 8))
2246  return T::kSM_FatalError;
2247 
2248  const uint32_t *led = evt.Ptr<uint32_t>();
2249 
2250  fDrive.SetLedVoltage(led[0], led[1]);
2251 
2252  return T::GetCurrentState();
2253  }
bool CheckEventSize(size_t has, const char *name, size_t size)
Definition: cosyctrl.cc:804
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: