FACT++  1.0
bool ConnectionFTM::SetAllThresholds ( const int32_t *  th)
inline

Definition at line 752 of file ftmctrl.cc.

References data, fDAC, i, FTM::StaticData::kMaxDAC, and FTM::StaticData::kMaxPatchIdx.

753  {
754  for (int i=0; i<FTM::StaticData::kMaxPatchIdx; i++)
755  if (th[i]<0 || th[i]>FTM::StaticData::kMaxDAC)
756  return false;
757 
759 
760  for (int i=0; i<=FTM::StaticData::kMaxPatchIdx; i++)
761  data[i/4].fDAC[i%4] = th[i];
762 
764 
765  return true;
766  }
int i
Definition: db_dim_client.c:21
FTM::StaticData fBufStaticData
Definition: ftmctrl.cc:57
float data[4 *1440]
void CmdSendStatDat(const FTM::StaticData &data)
Definition: ftmctrl.cc:510
uint16_t fDAC[5]
enable of 4x9 pixels coded as 4x9bits
Definition: HeadersFTM.h:187