fdhwlib
2.0.25
|
00001 /*************************************************************************** 00002 Slt.h - description 00003 00004 begin : Thu Jun 29 2000 00005 copyright : (C) 2000 by Andreas Kopmann 00006 email : kopmann@hpe.fzk.de 00007 ***************************************************************************/ 00008 00009 00010 #ifndef _HW4_SLT_H_INCLUDED 00011 #define _HW4_SLT_H_INCLUDED 00012 00013 #include <stdint.h> 00014 00015 #include <hw4/sltdef.h> 00016 #include <hw4/baseregister.h> 00017 #include <hw4/sltversion.h> 00018 #include <hw4/baseboardidreg.h> 00019 00020 #include <hw4/subrack.h> 00021 #include <hw4/subrackboard.h> 00022 00023 00024 namespace hw4 { 00025 00026 00028 static const int kSLT_REGS = 50; 00029 00031 static const int kSLT_VREGS = 10; 00032 00033 // --- forward declaration(s) 00034 00035 class Subrack; 00036 00064 class Slt : public SubrackBoard { 00065 public: 00066 Slt(int ID, const char *inifile = "FE.ini"); 00067 00068 virtual ~Slt(); 00069 00072 bool checkPresence(); 00073 00075 bool checkProject(); 00076 00078 int getVersion(int unit =0); 00079 00087 int getHardwareModelVersion(); 00088 00092 void checkHardwareModelVersion(FILE *fout = stdout, const char *indent=""); 00093 00095 int readExpectedConfig(akInifile *config); 00096 00097 00099 void printExpectedConfig(FILE *fout); 00100 00102 void printConfigToInifile(FILE *fout); 00103 00112 int checkConfig(); 00113 00114 00115 public: // members 00116 00117 SubrackBase* theSubrack; //-tb- was Subrack 00118 00124 SltVersion *version; 00125 00127 BaseBoardIdReg *boardId; 00128 00130 uint64_t serialno; 00131 uint32_t vfpga; 00132 uint32_t vdoc; 00133 uint32_t vproject; 00134 00135 00136 }; 00137 00138 } // namespace hw4 00139 00140 #endif // _HW4_SLT_H_INCLUDED 00141