FACT++  1.0
bool ConnectionFTM::SetPrescaling ( uint32_t  value)
inline

Definition at line 828 of file ftmctrl.cc.

References data, fPrescaling, i, and FTM::StaticData::SetPrescaling().

829  {
830  if (value>0xffff)
831  return false;
832 
834 
835  bool ident = true;
836  for (int i=0; i<40; i++)
837  if (data[i].fPrescaling != value)
838  {
839  ident = false;
840  break;
841  }
842 
843  if (ident)
844  return true;
845 
846  data.SetPrescaling(value);
847 
848  // Maybe move to a "COMMIT" command?
850 
851  return true;
852  }
int i
Definition: db_dim_client.c:21
FTM::StaticData fBufStaticData
Definition: ftmctrl.cc:57
uint16_t fPrescaling
0-3 (A-D) Threshold of patches, 4 (H) Threshold for N out of 4 (12 bit each)
Definition: HeadersFTM.h:188
float data[4 *1440]
void CmdSendStatDat(const FTM::StaticData &data)
Definition: ftmctrl.cc:510

+ Here is the call graph for this function: