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

beamtime/cosy-dec10/mbs/cbmvme.h (r4864/r1283)

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, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0} // normal
00013 
00014 //#define VME__ID_IN_USE {0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} // no 1182/83
00015 
00016 
00017 // VME address of trigger box
00018 #define VME__ID_TBOX 3
00019 
00020 // VME address of sync sender
00021 #define VME__ID_SYNC 4
00022 
00023 // VME address of 1182
00024 #define VME__ID_1182 12
00025 //#define VME__ID_1182 99
00026 
00027 // VME address of 1183
00028 //#define VME__ID_1183 13
00029 #define VME__ID_1183 99
00030 
00031 #define VME__BASE {0x0,       0x1000000, 0x2000000, 0x3000000, \
00032                    0x4000000, 0x5000000, 0x6000000, 0x7000000, \
00033                    0x8000000, 0x9000000, 0xa000000, 0xb000000, \
00034                     0x500000,  0x600000,  0x700000, 0xf000000}
00035 
00036 #define VME__SIZE {0x1000000, 0x1000000, 0x1000000,    0x1000, \
00037                       0x2000,    0x7000,    0x7000,    0x7000, \
00038                       0x6000,    0x6000, 0x1000000, 0x1000000, \
00039                       0x1000,    0x1000,    0x9000, 0x1000000}
00040 
00041 #define ADD_MOD   {0x9,       0x9,       0x9,       0x9, \
00042                    0x9,       0x9,       0x9,       0x9, \
00043                    0x9,       0x9,       0x9,       0x9, \
00044                    0x39,      0x39,      0x39,      0x39 }
00045 
00046 static INTU4   l_vme_id_in_use[MAX__N_MOD] = VME__ID_IN_USE;
00047 static INTU4   l_vme_base     [MAX__N_MOD] = VME__BASE;
00048 static INTU4   l_vme_size     [MAX__N_MOD] = VME__SIZE;
00049 static INTU4   l_am           [MAX__N_MOD] = ADD_MOD;
00050 static INTU4   l_virt_base    [MAX__N_MOD];
00051 

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