Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages

listRegs.cpp

00001 #include <stdio.h>
00002 #include "CommonWithDsp/registerIndices.h"
00003 
00004 #define func(name) printf(" {0x%x,\t\"%s\"},\n", name, #name)
00005 
00006 int main() {
00007   printf("struct regIds { int id; char *name; };\n");
00008   printf("struct regIds regNames[] = {\n");
00009   func(RRIF_CODE_VERSION);
00010   func(RRIF_CMND_0);
00011   func(RRIF_CMND_1);
00012   func(RRIF_STATUS_0);
00013   func(RRIF_STATUS_1);
00014   func(FE_CMND_MASK_0_LO);
00015   func(FE_CMND_MASK_0_HI);
00016   func(FE_CMND_MASK_1_LO);
00017   func(FE_CMND_MASK_1_HI);
00018   func(CAL_CMND);
00019 
00020   func(FMT_LINK_OCC_CNT(0, 0));
00021   func(FMT_LINK_OCC_CNT(0, 1));
00022   func(FMT_LINK_OCC_CNT(1, 0));
00023   func(FMT_LINK_OCC_CNT(1, 1));
00024 
00025 #ifdef EFB_ERROR_MASK
00026   func(EFB_ERROR_MASK(0, 0));
00027   func(EFB_ERROR_MASK(0, 1));
00028   func(EFB_ERROR_MASK(1, 0));
00029   func(EFB_ERROR_MASK(1, 1));
00030 #else
00031   func(ERROR_MASK(0, 0));
00032   func(ERROR_MASK(0, 1));
00033   func(ERROR_MASK(1, 0));
00034   func(ERROR_MASK(1, 1));
00035 #endif
00036 
00037   func(RTR_CMND_STAT);
00038   func(DM_DFLT_LUT(0));
00039   func(DM_DFLT_LUT(1));
00040   printf("   // End of registers\n");
00041   printf("   // Last register is 0x%x\n", LAST_ROD_REG);
00042   printf(" {-1,\t\"\"}\n};\n");
00043 
00044   return 0;
00045 }
00046 

Generated on Thu Dec 15 21:14:28 2005 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5