00001 // $Id: s_opc1.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_OPC1 00015 #define S_OPC1 00016 00017 #include "typedefs.h" 00018 00019 #if MBS_ENDIAN == 1 00020 00021 struct s_opc1 { /* ++ byte1 (LSB) ++ */ 00022 char h_flt_len; /* ++ byte4 (MSB) ++ length of filter*/ 00023 char h_next_fltblk; /* ++ byte3 ++ next filter blk */ 00024 char h_fltspec; /* ++ byte2 filter specification */ 00025 /* +++ 25-Jan-1994 reversed bit sequence +++ */ 00026 unsigned b1_lnkf2 :1; /* lnk different flts blks */ 00027 unsigned b1_lnkf1 :1; /* lnk filters: and:1 or:0 */ 00028 unsigned b3_opc :3; /* opcode */ 00029 unsigned b1_selwrt:1; /* select write of evt/sev */ 00030 unsigned b1_selflt:1; /* select event/subevent filter */ 00031 unsigned b1_evtsev :1; /* 1:event/0:subevt active for sel */ 00032 /* REM : h_next_fltblk and h_flt_len are ABSOLUTE adresses !!! */ 00033 }; 00034 00035 00036 #else 00037 00038 /* struct for filter opcode */ 00039 struct s_opc1 00040 { /* ++ byte1 (LSB) ++ */ 00041 unsigned b1_evtsev :1; /* 1:event/0:subevt active for sel */ 00042 unsigned b1_selflt:1; /* select event/subevent filter */ 00043 unsigned b1_selwrt:1; /* select write of evt/sev */ 00044 unsigned b3_opc :3; /* opcode */ 00045 unsigned b1_lnkf1 :1; /* lnk filters: and:1 or:0 */ 00046 unsigned b1_lnkf2 :1; /* lnk different flts blks */ 00047 char h_fltspec; /* ++ byte2 filter specification */ 00048 char h_next_fltblk; /* ++ byte3 ++ next filter blk */ 00049 char h_flt_len; /* ++ byte4 (MSB) ++ length of filter*/ 00050 }; 00051 00052 /* REM : h_next_fltblk and h_flt_len are ABSOLUTE adresses !!! */ 00053 00054 #endif 00055 00056 #endif