FACT++  1.0
uint16_t* FTM::StaticData::EnablePixel ( int  idx,
bool  enable 
)
inline

Definition at line 308 of file HeadersFTM.h.

Referenced by ConnectionFTM::DisableAllPatchesExcept(), ConnectionFTM::DisableAllPixelsExcept(), ConnectionFTM::EnablePatch(), ConnectionFTM::EnablePixel(), and ConnectionFTM::TogglePixel().

309  {
310  const int pixel = idx%9;
311  const int patch = (idx/9)%4;
312  const int board = (idx/9)/4;
313 
314  uint16_t &pix = fBoard[board/10][board%10].fEnable[patch];
315 
316  if (enable)
317  pix |= (1<<pixel);
318  else
319  pix &= ~(1<<pixel);
320 
321  return &pix;
322  }
StaticDataBoard fBoard[4][10]
Definition: HeadersFTM.h:236
uint16_t fEnable[4]
Definition: HeadersFTM.h:169

+ Here is the caller graph for this function: