/[PAMELA software]/yoda/techmodel/forroutines/anticounter/ACphysics.h
ViewVC logotype

Diff of /yoda/techmodel/forroutines/anticounter/ACphysics.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2.0 by kusanagi, Tue Sep 21 20:51:02 2004 UTC revision 2.1 by kusanagi, Sun Oct 17 12:28:41 2004 UTC
# Line 1  Line 1 
1    
2  struct datastruct{  struct datastruct{
   
3    unsigned short header[2];    unsigned short header[2];
4    unsigned short status;    unsigned short status;
5    unsigned short hitmap;          unsigned short hitmap;      
# Line 15  struct datastruct{ Line 14  struct datastruct{
14    unsigned short CRC;    unsigned short CRC;
15  };  };
16    
17    //physics structure
18    datastruct physicsdata;
19    
20    //pointer to struct
21    datastruct *physicspointer;
22    
23    //read variables
24    int i,err,found;
25    unsigned short buffer[1000];
26    unsigned short tmp1,tmp2;
27    
28    int flip(int i16)
29    {
30      int temp;
31      
32      temp = 0;
33      temp |= 0xFF00 & ((0x00FF & i16) << 8);
34      temp |= 0x00FF & ((0xFF00 & i16) >> 8);
35      return temp;
36    }
37    
38    

Legend:
Removed from v.2.0  
changed lines
  Added in v.2.1

  ViewVC Help
Powered by ViewVC 1.1.23