FACT++  1.0
bool ConnectionFTM::CmdSetRegister ( uint16_t  addr,
uint16_t  val 
)
inline

Definition at line 547 of file ftmctrl.cc.

References data, FTM::kCmdRegister, FTM::kCmdWrite, and FTM::StaticData::kMaxAddr.

548  {
549  if (addr>FTM::StaticData::kMaxAddr)
550  return false;
551 
552  const array<uint16_t, 2> data = {{ addr, val }};
554 
555  reinterpret_cast<uint16_t*>(&fBufStaticData)[addr] = val;
556 
557  // Request the changed configuration to ensure the
558  // change is distributed in the network
559  CmdReqStatDat();
560 
561  return true;
562  }
FTM::StaticData fBufStaticData
Definition: ftmctrl.cc:57
void CmdReqStatDat()
Definition: ftmctrl.cc:505
void PostCmd(array< uint16_t, N > dat, uint16_t u1=0, uint16_t u2=0, uint16_t u3=0, uint16_t u4=0)
Definition: ftmctrl.cc:425
Specifies that a register is read/written.
Definition: HeadersFTM.h:71
float data[4 *1440]
Send data.
Definition: HeadersFTM.h:59