FACT++  1.0
vector<char> ConnectionBias::GetCmd ( uint16_t  board,
uint16_t  channel,
Command_t  cmd,
uint16_t  dac = 0 
)
inlineprivate

Definition at line 106 of file biasctrl.cc.

References data.

107  {
108  vector<char> data(3);
109 
110  /*
111  if (board>kNumBoards)
112  return;
113  if (channel>kNumChannelsPerBoard)
114  return;
115  if (dac>0xfff)
116  return;
117  */
118 
119  data[0] = (cmd<<5) | (board<<1) | (((channel&16)>>4) & 1);
120  data[1] = (channel<<4) | (dac>>8);
121  data[2] = dac&0xff;
122 
123  return data;
124  }
float data[4 *1440]