CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10/src/DataFormats/FEDRawData/src/fed_trailer.h

Go to the documentation of this file.
00001 /* NOTE: this file temporarily stolen from the XDAQ project
00002  *
00003  * fed_trailer.h  
00004  *
00005  * $Header: /local/reps/CMSSW/CMSSW/DataFormats/FEDRawData/src/fed_trailer.h,v 1.2 2005/10/06 18:25:22 namapane Exp $
00006  *
00007  * This file contains the struct definition of the FED-trailer.
00008  * The FED-trailer is inserted by the FED at the bottom of a data fragment
00009  */
00010 
00011 
00012 #ifndef _FED_TRAILER_H
00013 #define _FED_TRAILER_H
00014 
00015 #ifdef __cplusplus
00016 extern "C" {
00017 #endif
00018 
00019 
00020 /*************************************************************************
00021  *
00022  * data structures and associated typedefs
00023  *
00024  *************************************************************************/
00025 
00026 
00027 /*
00028  * FED trailer - at the end of each FED block
00029  */
00030 
00031 typedef struct fedt_struct {
00032   unsigned int conscheck;
00033   unsigned int eventsize;
00034 } fedt_t ;
00035 
00036 
00037 #define FED_TCTRLID_MASK   0xF0000000
00038 #define FED_EVSZ_MASK      0x00FFFFFF
00039 
00040 #define FED_CRCS_MASK      0xFFFF0000
00041 #define FED_STAT_MASK      0x00000F00
00042 #define FED_TTSI_MASK      0x000000F0
00043 #define FED_MORE_TRAILERS  0x00000008
00044 
00045 
00046 #define FED_TCTRLID        0xA0000000
00047 
00048 
00049 #define FED_EVSZ_SHIFT      0
00050 
00051 #define FED_CRCS_SHIFT      16
00052 #define FED_STAT_SHIFT      8
00053 #define FED_TTSI_SHIFT      4
00054 
00055 #ifdef __cplusplus
00056 }
00057 #endif
00058 
00059 #endif  /* _FED_TRAILER_H */
00060 
00061