5 #include "qt32b_fms_2015_a.hh"
8 #include "registerHack.hh"
10 void qt32b_fms_2015_a(
Board& qt,
int t){
13 for (
int i=0; i<2; i++) {
14 for (
int j = 0; j<16; j++) {
16 int adc = qt.channels[t][id];
22 if(sum[i] > 0xfff) sum[i] = 0xfff;
25 qt.output[t] |= sum[0];
26 qt.output[t] |= sum[1]<<16;
29 if(sum[0]>0 || sum[1]>0)
30 printf(
"%s=%08x sum=%4d %4d\n",
31 qt.name,qt.output[t],getQT01Sum(qt.output[t]),getQT23Sum(qt.output[t]));
34 int getQT01Sum(
int qtout){
return getbits(qtout, 0,12);}
35 int getQT23Sum(
int qtout){
return getbits(qtout,16,12);}