struct calibstruct{ unsigned short header[2]; unsigned short status[5]; unsigned short temp[8]; unsigned short DAC1[8]; unsigned short DAC2[8]; unsigned short regist[6]; unsigned short time[8]; unsigned short n_tr; unsigned short hitmap_tr[16]; unsigned short curve1[4096]; unsigned short curve2[4096]; unsigned short iCRC; unsigned short tail; unsigned short CRC; unsigned short CRCcheck; }; struct physicsstruct{ unsigned short header[2]; unsigned short status; unsigned short hitmap; unsigned short regist[6]; unsigned short shift[16]; unsigned short counters[16]; unsigned short coinc[8]; unsigned short trigg; unsigned short clock[2]; unsigned short temp[2]; unsigned short DAC[8]; unsigned short CRC; unsigned short CRCcheck; };