/[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 1.1 by kusanagi, Thu Jul 8 12:48:23 2004 UTC revision 2.1 by kusanagi, Sun Oct 17 12:28:41 2004 UTC
# Line 1  Line 1 
 struct datastruct{  
1    
2    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 15  struct datastruct{
15  };  };
16    
17  //physics structure  //physics structure
18  struct datastruct physicsdata;  datastruct physicsdata;
19    
20  //pointer to struct  //pointer to struct
21  struct datastruct *physicspointer;  datastruct *physicspointer;
22    
23  //read variables  //read variables
24  int i,err,found;  int i,err,found;
25  unsigned short buffer[100];  unsigned short buffer[1000];
26  unsigned short tmp1,tmp2;  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.1.1  
changed lines
  Added in v.2.1

  ViewVC Help
Powered by ViewVC 1.1.23