FACT++  1.0
bool ConnectionFAD::CmdSetDacValue ( int8_t  addr,
uint16_t  val 
)
inline

Definition at line 429 of file fadctrl.cc.

References i, kCmdWriteDac, kCmdWriteExecute, and kMaxDacAddr.

Referenced by StateMachineFAD< T >::StartConfigure().

430  {
431  if (addr<0)
432  {
433  for (unsigned int i=0; i<=FAD::kMaxDacAddr; i++)
434  {
435  fBufEventHeader.fDac[i] = val;
436  PostCmd(FAD::kCmdWriteDac + i, val);
437  }
439  return true;
440  }
441 
442  if (uint8_t(addr)>FAD::kMaxDacAddr) // NDAC
443  return false;
444 
445  fBufEventHeader.fDac[addr] = val;
446 
447  PostCmd(FAD::kCmdWriteDac + addr, val);
449  return true;
450  }
FAD::EventHeader fBufEventHeader
Definition: fadctrl.cc:50
int i
Definition: db_dim_client.c:21
void PostCmd(std::vector< uint16_t > cmd)
Definition: fadctrl.cc:308

+ Here is the caller graph for this function: