EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
packetHdrV1.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file packetHdrV1.h
1
/*
2
** packetHdrV1.h
3
**
4
** Author: $Author: purschke $
5
** Date: $Date: 2000/07/21 01:51:16 $
6
**
7
** $Log: packetHdrV1.h,v $
8
** Revision 1.1.1.1 2000/07/21 01:51:16 purschke
9
** mlp -- adding the new automakified "basic" module to CVS.
10
**
11
**
12
** Revision 1.3 1998/12/11 22:01:46 markacs
13
** (stephen markacs) adding log into cvs tags
14
**
15
*/
16
/*
17
** packetHdrV1.h
18
**
19
** Include file which defines the header for Version 1 packets
20
** and some constants used in accessing, interpreting or storing
21
** data in the header. It also provides default settings for the
22
** fields manipulated in the Version 1 packet headers. Version
23
** independent constants and defaults are defined in packetHdr.h and
24
** constants and defaults used in the data descriptor fields are
25
** set in dataBlockHdr.h.
26
*/
27
28
29
#ifndef _PACKETHDRV1__
30
#define _PACKETHDRV1__
31
32
/*
33
** Use C linkage
34
*/
35
#ifdef __cplusplus
36
extern
"C"
{
37
#endif
38
39
#define PACKET_LENGTH_OFFSET_OF_DWORD 0
40
41
#define PACKET_STATUS_OFFSET_OF_DWORD 1
42
#define PACKET_STATUS_OFFSET_IN_DWORD 0
43
#define PACKET_STATUS_NUM_BITS 16
44
#define PACKET_STATUS_MASK 0x0000ffff
45
46
#define ID_OFFSET_OF_DWORD 2
47
48
#define DEBUG_LENGTH_OFFSET_OF_DWORD 3
49
#define DEBUG_LENGTH_OFFSET_IN_DWORD 16
50
#define DEBUG_LENGTH_NUM_BITS 16
51
#define DEBUG_LENGTH_MASK 0xffff0000
52
53
#define PACKET_ERROR_LENGTH_OFFSET_OF_DWORD 3
54
#define PACKET_ERROR_LENGTH_OFFSET_IN_DWORD 0
55
#define PACKET_ERROR_LENGTH_NUM_BITS 16
56
#define PACKET_ERROR_LENGTH_MASK 0x0000ffff
57
58
#define STRUCTURE_OFFSET_OF_DWORD 4
59
#define STRUCTURE_OFFSET_IN_DWORD 24
60
#define STRUCTURE_NUM_BITS 8
61
#define STRUCTURE_MASK 0xff000000
62
63
#define DESCR_LENGTH_OFFSET_OF_DWORD 4
64
#define DESCR_LENGTH_OFFSET_IN_DWORD 16
65
#define DESCR_LENGTH_NUM_BITS 8
66
#define DESCR_LENGTH_MASK 0x00ff0000
67
68
#define ENDIANISM_OFFSET_OF_DWORD 4
69
#define ENDIANISM_OFFSET_IN_DWORD 8
70
#define ENDIANISM_NUM_BITS 8
71
#define ENDIANISM_MASK 0x0000ff00
72
73
#define PACKET_PADDING_OFFSET_OF_DWORD 4
74
#define PACKET_PADDING_OFFSET_IN_DWORD 0
75
#define PACKET_PADDING_NUM_BITS 8
76
#define PACKET_PADDING_MASK 0x000000ff
77
78
#define DATADESCR_OFFSET_OF_DWORD 5
79
80
#define PACKETV1_HDR_LENGTH 6
81
const
UINT
packetV1HdrLength
=
PACKETV1_HDR_LENGTH
;
82
83
#define PACKETV1_HDR_VERSION 1
84
const
UINT
packetV1HdrVersion
=
PACKETV1_HDR_VERSION
;
85
86
#ifdef __cplusplus
87
}
88
/* end of extern "C" */
89
#endif
90
91
#endif
92
/* end the ifndef _PACKETHDR_ block */
93
94
95
96
97
98
99
100
online_distribution
blob
master
newbasic
packetHdrV1.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:55
using
1.8.2 with
EIC GitHub integration