// -*- C++ -*- /* This file is part of UCESB - a tool for data unpacking and processing. * * Copyright (C) 2016 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301 USA */ #ifndef VME_CAEN_V775_FLAG #define VME_CAEN_V775_FLAG #define VME_CAEN_V792 VME_CAEN_V775 #define VME_CAEN_V785 VME_CAEN_V775 #define NUM_CHANNELS 32 #define CHANNEL_DIVIDER 1 #define MODULE_NAME_V7xx VME_CAEN_V775 #include "vme_caen_v775.spec" #undef NUM_CHANNELS #undef CHANNEL_DIVIDER #undef MODULE_NAME_V7xx #define NUM_CHANNELS 16 #define CHANNEL_DIVIDER 2 #define MODULE_NAME_V7xx VME_CAEN_V785N #include "vme_caen_v775.spec" #else MODULE_NAME_V7xx(geom, crate) { MEMBER(DATA12_OVERFLOW data[ NUM_CHANNELS ] ZERO_SUPPRESS); UINT32 header NOENCODE { // 0_7: undefined; 8_13: count; 16_23: crate = MATCH(crate); 24_26: 0b010; 27_31: geom = MATCH(geom); } list(0<=index