ECCE @ EIC Software
Reference for
ECCE @ 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
packetHdr.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file packetHdr.h
1
/*
2
** packetHdr.h
3
**
4
** Author: $Author: purschke $
5
** Date: $Date: 2000/07/21 01:51:16 $
6
**
7
** $Log: packetHdr.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:45 markacs
13
** (stephen markacs) adding log into cvs tags
14
**
15
*/
16
/*
17
** packetHdr.h
18
**
19
**
20
** Include file which defines the header for packets and
21
** some constants used in accessing, interpreting or
22
** storing data in the packet header. All constants
23
** defined here are for fields with version independent
24
** values. Also defined here are the default values for
25
** all of the version independent fields. Version dependent
26
** values for the Version 1 packet header are found in
27
** packetHdrV1.h. Value for the fields defined in the
28
** data descriptor are found in dataBlockHdr.h. All fields
29
** have default values listed, even those which are
30
** typically user specified.
31
**/
32
33
#include "
packetHdrV1.h
"
34
#ifndef _PACKETHDR__
35
#define _PACKETHDR__
36
37
/*
38
** Use C linkage
39
*/
40
41
#ifdef __cplusplus
42
extern
"C"
{
43
#endif
44
45
#define PACKET_LENGTH_OFFSET_OF_DWORD 0
46
47
#define PACKET_HDR_VERSION_OFFSET_OF_DWORD 1
48
#define PACKET_HDR_VERSION_OFFSET_IN_DWORD 24
49
#define PACKET_HDR_VERSION_NUM_BITS 8
50
#define PACKET_HDR_VERSION_MASK 0xff000000
51
52
#define PACKET_HDR_LENGTH_OFFSET_OF_DWORD 1
53
#define PACKET_HDR_LENGTH_OFFSET_IN_DWORD 16
54
#define PACKET_HDR_LENGTH_NUM_BITS 8
55
#define PACKET_HDR_LENGTH_MASK 0x00ff0000
56
57
/*
58
** Define standard packet to be "current"
59
*/
60
#define CURRENT_PACKET_VERSION 1
61
#define CURRENT_PACKETHDR_LENGTH PACKETV1_HDR_LENGTH
62
63
CONSTANT
UINT
currentPacketHdrLength
=
CURRENT_PACKETHDR_LENGTH
;
64
65
#define PACKETV1_QUANTUM
66
const
UINT
packetQuantum
= 2;
67
68
#ifdef __cplusplus
69
}
70
/* end of extern "C" */
71
#endif
72
73
#endif
74
/* end the ifndef _PACKETHDR_ block */
75
76
77
78
79
80
81
82
83
84
85
86
online_distribution
blob
master
newbasic
packetHdr.h
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:59
using
1.8.2 with
ECCE GitHub integration