TDC32VL_ChannelMap

Channal map for TDC32VL module


const int tdc32vl_tdcid2tdcnum[16] = {

};

const int tdc32vl_tdcch2ch[32] = {

};


// data - 32 bit data packets

unsigned int tdc_id = (data >> 24) & 0xF;

unsigned int tdc_ch = (data >> 19) & 0x1F;

int tdcnum = tdc32vl_tdcid2tdcnum[tdc_id];

int ch = tdc32vl_tdcch2ch[tdc_ch%32];

return tdcnum*8+ch; // front panal number

TDC32VL_ChannelMap (last edited 2014-11-07 12:11:30 by filippov)