EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dataBlockHdr.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file dataBlockHdr.h
1 /*
2 ** dataBlockHdr.h
3 **
4 ** Author: $Author: purschke $
5 ** Date: $Date: 2000/07/21 01:51:11 $
6 **
7 ** $Log: dataBlockHdr.h,v $
8 ** Revision 1.1.1.1 2000/07/21 01:51:11 purschke
9 ** mlp -- adding the new automakified "basic" module to CVS.
10 **
11 **
12 ** Revision 1.3 1998/12/11 22:01:15 markacs
13 ** (stephen markacs) adding log into cvs tags
14 **
15 */
16 /*
17 **
18 ** dataBlockHdr.h
19 **
20 ** This file defines the descriptor for the data block and some constants
21 ** used for interpreting, accessing or storing data in the descriptor.
22 ** It also defines the default setting for all of the data descriptor
23 ** fields, even those set by the user.
24 **/
25 
26 
27 #ifndef _DATABLOCKHDR_
28 #define _DATABLOCKHDR_
29 
30 /*
31 ** Use C linkage
32 */
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37  typedef
38  struct dataBlockHdr {
39 
40  BYTE wordSize ; /* "Word" size used to store packet data */
41  BYTE addrLength ; /* number of bytes used for channel address*/
42  BYTE hitLength ; /* Length of a single "hit" in bytes */
43  BYTE dataPadding ; /* Padding of the data block */
44 
45  SWORD hitFormat ; /* Format of a single hit */
46  SWORD numEntries ; /* Number of "objects" stored in packet *
47  * (definition depends on packetStruct) */
49  /*
50  ** These are the default settings for all of the fields
51  ** in the data descriptor. Some of the fields are user specified,
52  ** but still have default values listed here.
53  */
54 
55 #define CURRENT_NUM_ENTRIES 0
56 #define CURRENT_WORD_SIZE 0
57 #define CURRENT_HIT_LENGTH 0
58 #define CURRENT_HIT_FORMAT 0
59 #define CURRENT_ADDR_LENGTH 0
60 #define CURRENT_DATA_PADDING 0
61 #define CURRENT_DESC_LENGTH 2
62 #define CURRENT_UNSTRUCT_DESC_LENGTH 1
63 
72 #ifdef __cplusplus
73 }
74 /* end of extern "C" */
75 #endif
76 
77 #endif
78 /* end the ifndef in _DATABLOCKHDR_ block */