Back to home page

sPhenix code displayed by LXR

 
 

    


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

0001 /* 
0002 ** frameHdr.h
0003 ** 
0004 ** Author: $Author: purschke $  
0005 **   Date: $Date: 2000/07/21 01:51:13 $ 
0006 ** 
0007 ** $Log: frameHdr.h,v $
0008 ** Revision 1.1.1.1  2000/07/21 01:51:13  purschke
0009 ** mlp -- adding the new automakified "basic" module to CVS.
0010 **
0011 **
0012 ** Revision 1.4  1998/12/11 22:01:30  markacs
0013 ** (stephen markacs) adding log into cvs tags
0014 ** 
0015 */
0016 /*
0017 **
0018 */
0019 
0020 #ifndef _FRAMEHDR_
0021 #define _FRAMEHDR_
0022 
0023 #include "framePublic.h"
0024 #include "frameHdrV1.h"
0025 
0026 #ifdef __cplusplus
0027 extern "C" {
0028 #endif
0029 
0030 #define FRAME_LENGTH_OFFSET_OF_DWORD 0
0031 
0032 #define FRAME_MARK_OFFSET_OF_DWORD 1
0033 
0034 #define FRAME_HDR_VERSION_OFFSET_OF_DWORD 2
0035 #define FRAME_HDR_VERSION_OFFSET_IN_DWORD 24
0036 #define FRAME_HDR_VERSION_NUM_BITS 8
0037 #define FRAME_HDR_VERSION_MASK 0xff000000
0038 
0039 #define FRAME_HDR_LENGTH_OFFSET_OF_DWORD 2
0040 #define FRAME_HDR_LENGTH_OFFSET_IN_DWORD 16
0041 #define FRAME_HDR_LENGTH_NUM_BITS 8
0042 #define FRAME_HDR_LENGTH_MASK 0x00ff0000
0043 
0044 #define FRAME_LENGTH_OFFSET 0
0045 #define FRAME_MARK_OFFSET 1
0046 
0047 #define NUM_FRAME_VERSIONS 2        /* we have a dummy version 0 */
0048 #define CURRENT_FRAME_HDR_VERSION 1
0049     
0050   CONSTANT UINT numFrameVersions = NUM_FRAME_VERSIONS;  
0051   CONSTANT UINT frameMarkV[NUM_FRAME_VERSIONS] = {0, V1_FRAMEMARK};
0052   CONSTANT UINT frameHdrLengthV[NUM_FRAME_VERSIONS] = {0, V1_FRAMEHDR_LENGTH};
0053   
0054   CONSTANT UINT frameLengthOffset = FRAME_LENGTH_OFFSET;
0055   CONSTANT UINT frameMarkOffset = FRAME_MARK_OFFSET;
0056   
0057   /*
0058   ** Define "current" header type for use in creating new frames
0059   */
0060   CONSTANT UINT currentFrameHdrVersion = CURRENT_FRAME_HDR_VERSION;
0061   CONSTANT UINT currentFrameHdrLength = V1_FRAMEHDR_LENGTH;
0062   CONSTANT UINT currentFrameMark = V1_FRAMEMARK;
0063   CONSTANT UINT currentAlignLength = V1_ALIGN_LENGTH;
0064   CONSTANT UINT currentFrameQuantum = V1_FRAME_QUANTUM;    
0065 
0066   CONSTANT UINT maxFrameHdrLength = V1_FRAMEHDR_LENGTH;
0067   
0068   /* *** temporarily in framePublic.h ***    typedef ALIGNBLKV1 ALIGNBLK; */
0069   
0070 #ifdef __cplusplus
0071 }
0072 #endif
0073 
0074 #endif
0075 
0076 
0077 
0078