--- yoda/techmodel/forroutines/anticounter/ACphysics.h 2004/09/21 20:51:02 2.0 +++ yoda/techmodel/forroutines/anticounter/ACphysics.h 2004/10/17 12:28:41 2.1 @@ -1,6 +1,5 @@ struct datastruct{ - unsigned short header[2]; unsigned short status; unsigned short hitmap; @@ -15,5 +14,25 @@ unsigned short CRC; }; +//physics structure +datastruct physicsdata; + +//pointer to struct +datastruct *physicspointer; + +//read variables +int i,err,found; +unsigned short buffer[1000]; +unsigned short tmp1,tmp2; + +int flip(int i16) +{ + int temp; + + temp = 0; + temp |= 0xFF00 & ((0x00FF & i16) << 8); + temp |= 0x00FF & ((0xFF00 & i16) >> 8); + return temp; +}