00001 // $Id: s_bufhe.h 478 2009-10-29 12:26:09Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #ifndef S_BUFHE 00015 #define S_BUFHE 00016 00017 #include "typedefs.h" 00018 /* Generated from SA$BUFHE.TXT */ 00019 /* Swapping enabled */ 00020 /* ================= GSI Buffer header ======================= */ 00021 #define MAX__DLEN 16360 00022 00023 #if MBS_ENDIAN == 1 00024 00025 typedef struct 00026 { 00027 INTS4 l_dlen; /* Length of data field in words */ 00028 INTS2 i_subtype; 00029 INTS2 i_type; 00030 CHARS h_begin; /* Fragment at end of buffer */ 00031 CHARS h_end; /* Fragment at begin of buffer */ 00032 INTS2 i_used; /* Used length of data field in words */ 00033 INTS4 l_buf; /* Current buffer number */ 00034 INTS4 l_evt; /* Number of fragments */ 00035 INTS4 l_current_i; /* Index, temporarily used */ 00036 INTS4 l_time[2]; 00037 INTS4 l_free[4]; 00038 } s_bufhe; 00039 00040 #else 00041 00042 typedef struct 00043 { 00044 INTS4 l_dlen; /* Length of data field in words */ 00045 INTS2 i_type; 00046 INTS2 i_subtype; 00047 INTS2 i_used; /* Used length of data field in words */ 00048 CHARS h_end; /* Fragment at begin of buffer */ 00049 CHARS h_begin; /* Fragment at end of buffer */ 00050 INTS4 l_buf; /* Current buffer number */ 00051 INTS4 l_evt; /* Number of fragments */ 00052 INTS4 l_current_i; /* Index, temporarily used */ 00053 INTS4 l_time[2]; 00054 INTS4 l_free[4]; 00055 } s_bufhe; 00056 00057 #endif 00058 00059 #endif