-
Notifications
You must be signed in to change notification settings - Fork 26
/
frameV1Public.h
85 lines (73 loc) · 1.65 KB
/
frameV1Public.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
** frameV1Public.h
**
** Author: $Author: purschke $
** Date: $Date: 2000/07/21 01:51:14 $
**
** $Log: frameV1Public.h,v $
** Revision 1.1.1.1 2000/07/21 01:51:14 purschke
** mlp -- adding the new automakified "basic" module to CVS.
**
**
** Revision 1.3 1998/12/11 22:01:44 markacs
** (stephen markacs) adding log into cvs tags
**
*/
/*
** Public definitions for V1 frames.
**
*/
#ifndef _FRAMEV1PUBLIC_
#define _FRAMEV1PUBLIC_
#include "phenixOnline.h"
/*
** Use C linkage for below structures
*/
#ifdef __cplusplus
extern "C" {
#endif
/*
** alignment block definitions (still not fully specified)
*/
struct dcmAlignBlk {
SWORD timeStamp;
SWORD granuleEvtcnt; /* (lowest 16 bits) */
PHDWORD partitionVec;
};
typedef struct dcmAlignBlk DCMALIGNBLK;
struct dcbAlignBlk {
SWORD timeStamp;
SWORD granuleEvtcnt; /* (lowest 16 bits) */
PHDWORD partitionVec;
};
typedef struct dcbAlignBlk DCBALIGNBLK;
struct sebAlignBlk {
PHDWORD globalEventNum;
PHDWORD partitionVec;
};
typedef struct sebAlignBlk SEBALIGNBLK;
struct atpAlignBlk {
PHDWORD globalEventNum;
PHDWORD partitionVec;
};
typedef struct atpAlignBlk ATPALIGNBLK;
/*
** For now handle the alignment block as a union.
*/
typedef union alignBlkV1 {
DCMALIGNBLK dcm;
DCBALIGNBLK dcb;
SEBALIGNBLK seb;
ATPALIGNBLK atp;
/* ONCSALIGNBLK oncs; */
} ALIGNBLKV1;
/*
** We point to V1 frames using PHDWORD pointers
*/
typedef PHDWORD* V1FRAME_ptr;
#ifdef __cplusplus
}
/* end of extern "C" */
#endif
#endif
/* end of ifndef _FRAMESV1_ */