Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
packetPublic.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file packetPublic.h
1
/*
2
** packetPublic.h
3
**
4
** Author: $Author: purschke $
5
** Date: $Date: 2000/07/21 01:51:17 $
6
**
7
** $Log: packetPublic.h,v $
8
** Revision 1.1.1.1 2000/07/21 01:51:17 purschke
9
** mlp -- adding the new automakified "basic" module to CVS.
10
**
11
**
12
** Revision 1.3 1998/12/11 22:01:47 markacs
13
** (stephen markacs) adding log into cvs tags
14
**
15
*/
16
/*
17
** packetPublic.h
18
**
19
** This file contains enumerations, typedefs etc. that public users of
20
** packet C and C++ routines might need.
21
**
22
*/
23
24
#include "
phenixOnline.h
"
25
#include "
packetV1Public.h
"
26
#include "
errorBlock.h
"
27
28
#ifndef _PACKETPUBLIC_
29
#define _PACKETPUBLIC_
30
31
/*
32
** Use C linkage in C++ code
33
*/
34
#ifdef __cplusplus
35
extern
"C"
{
36
#endif
37
38
/*
39
** We point to packets using a PHDWORD pointer.
40
*/
41
typedef
PHDWORD
*
PACKET_ptr
;
42
43
/*
44
** Typedef for the error entry structure which users may interact with
45
** directly.
46
**
47
** *** currently the packet and frame errors share the same structure
48
** defined in errorBlock.h
49
*/
50
typedef
struct
errorEntryV1
PACKETERROR
;
51
52
/*
53
** How many different packet header versions there are
54
*/
55
#define NUM_PACKET_VERSIONS 2
56
#define CURRENT_PACKETHDR_VERSION 1
57
58
CONSTANT
UINT
numPacketVersions
=
NUM_PACKET_VERSIONS
;
59
CONSTANT
UINT
currentPacketHdrVersion
=
CURRENT_PACKETHDR_VERSION
;
60
61
/*
62
** Enumerations for packet structure types.
63
*/
64
enum
PacketStructEnum
{
65
defaultStructure
= 0,
66
Unstructured
= 0,
67
Packets
= 1,
68
hitArray
= 2,
69
hitList
= 3
70
} ;
71
typedef
enum
PacketStructEnum
PACKETSTRUCTENUM
;
72
73
/*
74
** Status code enumerations
75
*/
76
enum
PacketStatusBits
{
77
errorBlockInvalid
= 0
78
} ;
79
80
#ifdef __cplusplus
81
}
/* end extern C block */
82
#endif
83
84
#endif
85
/* end ifdef _PACKETPUBLIC_ */
online_distribution
blob
master
newbasic
packetPublic.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:28
using
1.8.2 with
sPHENIX GitHub integration