struct datastruct{ 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[16]; unsigned short CRC; }; //physics structure struct datastruct physicsdata; //pointer to struct struct datastruct *physicspointer; //read variables int i,err,found; unsigned short buffer[100]; unsigned short tmp1,tmp2;