= TDC32VL_ChannelMap = Channal map for [[TDC32VL|TDC32VL module]] ----- const int tdc32vl_tdcid2tdcnum[16] = { -1, 0, 1, -1, 3, -1, -1, -1, 2, -1, -1, -1, -1, -1, -1, -1 }; const int tdc32vl_tdcch2ch[32] = { 7,-1,-1,-1, 6,-1,-1,-1,<
> 5,-1,-1,-1, 4,-1,-1,-1,<
> 3,-1,-1,-1, 2,-1,-1,-1,<
> 1,-1,-1,-1, 0,-1,-1,-1 }; ---- ''// 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''