ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
frameHdrV1.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file frameHdrV1.h
1 /*
2 ** frameHdrV1.h
3 **
4 ** Author: $Author: purschke $
5 ** Date: $Date: 2000/07/21 01:51:13 $
6 **
7 ** $Log: frameHdrV1.h,v $
8 ** Revision 1.1.1.1 2000/07/21 01:51:13 purschke
9 ** mlp -- adding the new automakified "basic" module to CVS.
10 **
11 **
12 ** Revision 1.3 1998/12/11 22:01:33 markacs
13 ** (stephen markacs) adding log into cvs tags
14 **
15 */
16 /*
17 ** Version 1 frame header definitions
18 **
19 */
20 
21 #ifndef _FRAMEHDRV1_
22 #define _FRAMEHDRV1_
23 
24 #include "phenixOnline.h"
25 #include "frameV1Public.h"
26 
27 /*
28 ** Use C linkage for below structures
29 */
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 
35 #define STATUS_OFFSET_OF_DWORD 2
36 #define STATUS_OFFSET_IN_DWORD 0
37 #define STATUS_NUM_BITS 16
38 #define STATUS_MASK 0x0000ffff
39 
40 #define SEQUENCE_NUMBER_OFFSET_OF_DWORD 3
41 #define SEQUENCE_NUMBER_OFFSET_IN_DWORD 24
42 #define SEQUENCE_NUMBER_NUM_BITS 8
43 #define SEQUENCE_NUMBER_MASK 0xff000000
44 
45 #define SEQUENCE_CODE_OFFSET_OF_DWORD 3
46 #define SEQUENCE_CODE_OFFSET_IN_DWORD 16
47 #define SEQUENCE_CODE_NUM_BITS 8
48 #define SEQUENCE_CODE_MASK 0x00ff0000
49 
50 #define SOURCE_ID_OFFSET_OF_DWORD 3
51 #define SOURCE_ID_OFFSET_IN_DWORD 0
52 #define SOURCE_ID_NUM_BITS 16
53 #define SOURCE_ID_MASK 0x0000ffff
54 
55 #define DATA_TYPE_OFFSET_OF_DWORD 4
56 #define DATA_TYPE_OFFSET_IN_DWORD 24
57 #define DATA_TYPE_NUM_BITS 8
58 #define DATA_TYPE_MASK 0xff000000
59 
60 #define FRAME_TYPE_OFFSET_OF_DWORD 4
61 #define FRAME_TYPE_OFFSET_IN_DWORD 16
62 #define FRAME_TYPE_NUM_BITS 8
63 #define FRAME_TYPE_MASK 0x00ff0000
64 
65 #define ERROR_LENGTH_OFFSET_OF_DWORD 4
66 #define ERROR_LENGTH_OFFSET_IN_DWORD 0
67 #define ERROR_LENGTH_NUM_BITS 16
68 #define ERROR_LENGTH_MASK 0x0000ffff
69 
70 #define HISTORY_LENGTH_OFFSET_OF_DWORD 5
71 #define HISTORY_LENGTH_OFFSET_IN_DWORD 16
72 #define HISTORY_LENGTH_NUM_BITS 16
73 #define HISTORY_LENGTH_MASK 0xffff0000
74 
75 #define ALIGN_LENGTH_OFFSET_OF_DWORD 5
76 #define ALIGN_LENGTH_OFFSET_IN_DWORD 8
77 #define ALIGN_LENGTH_NUM_BITS 8
78 #define ALIGN_LENGTH_MASK 0x0000ff00
79 
80 #define PADDING_OFFSET_OF_DWORD 5
81 #define PADDING_OFFSET_IN_DWORD 0
82 #define PADDING_NUM_BITS 8
83 #define PADDING_MASK 0x000000ff
84 
85 #define ALIGN_OFFSET_OF_DWORD 6
86 
87 /*
88 ** Parameters specific to V1 frames
89 */
90 #define V1_FRAMEHDR_VERSION 1
91 #define V1_FRAMEHDR_LENGTH 8
92 #define V1_FRAMEMARK 0xFFFFFF00
93 #define V1_ALIGN_LENGTH 2
94 #define V1_FRAME_QUANTUM 2
95 
96 /*
97 ** Some constants for V1 frame definition
98 */
99 
105 
106 #ifdef __cplusplus
107 }
108 /* end of extern "C" */
109 #endif
110 
111 #endif
112 /* end of ifndef _FRAMEHDRV1_ */
113 
114 
115 
116 
117 
118 
119 
120