• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

beamtime/cern-nov10/mbs/cbmvme.h (r4864/r1238)

Go to the documentation of this file.
00001 // 20100928 - DE - setup of CBM VME crate
00002 
00003 #include "typedefs.h"
00004 
00005 // VME modules used: set to 1, not used: set to 0
00006 
00007 #define MAX__N_MOD   16
00008 //#define ADD_MOD    0x9
00009 
00010 //  VME module  ID      0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15
00011 //                      |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
00012 #define VME__ID_IN_USE {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0} // no V550
00013 //#define VME__ID_IN_USE {0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 0} // all
00014 //#define VME__ID_IN_USE {0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0} // no MADC
00015 // config at GSI       {0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0}
00016 // config at CERN      {0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0}
00017 
00018 // VME address of trigger box
00019 #define VME__ID_TBOX 3
00020 
00021 // VME address of sync sender
00022 #define VME__ID_SYNC 4
00023 
00024 // VME address of MADC-1 - Dubna
00025 #define VME__ID_MAD1 5
00026 //#define VME__ID_MAD1 99
00027 
00028 // VME address of MADC-2 - NIHAM
00029 #define VME__ID_MAD2 6
00030 //#define VME__ID_MAD2 99
00031 
00032 // VME address of MADC-3 - NIHAM
00033 #define VME__ID_MAD3 7
00034 //#define VME__ID_MAD3 99
00035 
00036 // VME address of V550
00037 //#define VME__ID_V550 9
00038 #define VME__ID_V550 99
00039 //#define VME__ID_V550 8
00040 
00041 // VME address of 1182
00042 #define VME__ID_1182 12
00043 //#define VME__ID_1182 99
00044 
00045 // VME address of 1183
00046 #define VME__ID_1183 13
00047 //#define VME__ID_1183 99
00048 
00049 // VME address of 1176
00050 //#define VME__ID_1176 14
00051 #define VME__ID_1176 99
00052 
00053 #define VME__BASE {0x0,       0x1000000, 0x2000000, 0x3000000, \
00054                    0x4000000, 0x5000000, 0x6000000, 0x7000000, \
00055                    0x8000000, 0x9000000, 0xa000000, 0xb000000, \
00056                     0x500000,  0x600000,  0x700000, 0xf000000}
00057 
00058 #define VME__SIZE {0x1000000, 0x1000000, 0x1000000,    0x1000, \
00059                       0x2000,    0x7000,    0x7000,    0x7000, \
00060                       0x6000,    0x6000, 0x1000000, 0x1000000, \
00061                       0x1000,    0x1000,    0x9000, 0x1000000}
00062 
00063 #define ADD_MOD   {0x9,       0x9,       0x9,       0x9, \
00064                    0x9,       0x9,       0x9,       0x9, \
00065                    0x9,       0x9,       0x9,       0x9, \
00066                    0x39,      0x39,      0x39,      0x39 }
00067 
00068 static INTU4   l_vme_id_in_use[MAX__N_MOD] = VME__ID_IN_USE;
00069 static INTU4   l_vme_base     [MAX__N_MOD] = VME__BASE;
00070 static INTU4   l_vme_size     [MAX__N_MOD] = VME__SIZE;
00071 static INTU4   l_am           [MAX__N_MOD] = ADD_MOD;
00072 static INTU4   l_virt_base    [MAX__N_MOD];
00073 

Generated on Tue Dec 10 2013 04:52:16 for ROCsoft by  doxygen 1.7.1