00001 // $Id: s_pat.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_PAT 00015 #define S_PAT 00016 00017 #include "typedefs.h" 00018 00019 #if MBS_ENDIAN == 1 00020 00021 /* identities for filter patterns */ 00022 struct s_pat1 00023 { 00024 short i_dummy; 00025 short i_trigger; 00026 }; 00027 00028 struct s_pat2 00029 { 00030 char h_control; 00031 char h_subcrate; 00032 short i_procid; 00033 }; 00034 00035 struct s_pat3 00036 { 00037 short i_subtype; 00038 short i_type; 00039 }; 00040 00041 #else 00042 00043 /* identities for filter patterns */ 00044 struct s_pat1 00045 { 00046 short i_trigger; 00047 short i_dummy; 00048 }; 00049 00050 struct s_pat2 00051 { 00052 short i_procid; 00053 char h_subcrate; 00054 char h_control; 00055 }; 00056 00057 struct s_pat3 00058 { 00059 short i_type; 00060 short i_subtype; 00061 }; 00062 00063 #endif 00064 00065 #endif