Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:20:41

0001 /* 
0002 ** packetPublic.h
0003 ** 
0004 ** Author: $Author: purschke $  
0005 **   Date: $Date: 2000/07/21 01:51:17 $ 
0006 ** 
0007 ** $Log: packetPublic.h,v $
0008 ** Revision 1.1.1.1  2000/07/21 01:51:17  purschke
0009 ** mlp -- adding the new automakified "basic" module to CVS.
0010 **
0011 **
0012 ** Revision 1.3  1998/12/11 22:01:47  markacs
0013 ** (stephen markacs) adding log into cvs tags
0014 ** 
0015 */
0016 /*
0017 ** packetPublic.h
0018 **
0019 **   This file contains enumerations, typedefs etc. that public users of 
0020 **   packet C and C++ routines might need. 
0021 **
0022 */
0023 
0024 #include "phenixOnline.h"
0025 #include "packetV1Public.h"
0026 #include "errorBlock.h"
0027 
0028 #ifndef _PACKETPUBLIC_
0029 #define _PACKETPUBLIC_
0030 
0031 /*
0032 **  Use C linkage in C++ code
0033 */
0034 #ifdef __cplusplus
0035 extern "C" {
0036 #endif
0037 
0038   /*
0039   **  We point to packets using a PHDWORD pointer.
0040   */
0041   typedef PHDWORD* PACKET_ptr ;
0042 
0043   /*
0044   **  Typedef for the error entry structure which users may interact with
0045   **  directly.
0046   **
0047   **  *** currently the packet and frame errors share the same structure 
0048   **      defined in errorBlock.h
0049   */
0050   typedef struct errorEntryV1 PACKETERROR;
0051   
0052   /*
0053   **  How many different packet header versions there are
0054   */
0055 #define NUM_PACKET_VERSIONS 2
0056 #define CURRENT_PACKETHDR_VERSION 1
0057 
0058   CONSTANT UINT numPacketVersions = NUM_PACKET_VERSIONS;
0059   CONSTANT UINT currentPacketHdrVersion = CURRENT_PACKETHDR_VERSION;
0060   
0061   /*
0062   **  Enumerations for packet structure types.
0063   */
0064   enum PacketStructEnum {
0065     defaultStructure = 0,
0066     Unstructured = 0,
0067     Packets = 1,
0068     hitArray = 2,
0069     hitList = 3
0070   } ;
0071   typedef enum PacketStructEnum PACKETSTRUCTENUM;
0072   
0073   /*
0074   **  Status code enumerations
0075   */
0076   enum PacketStatusBits {
0077     errorBlockInvalid = 0
0078   } ;
0079   
0080 #ifdef __cplusplus
0081 }  /* end extern C block */
0082 #endif
0083 
0084 #endif 
0085 /* end ifdef _PACKETPUBLIC_ */