fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/FE/FEtiming.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     FEtiming.h  -  description
00003 
00004     begin                : Mon Jul 3 2000
00005     copyright            : (C) 2000 by Andreas Kopmann
00006     email                : kopmann@hpe.fzk.de
00007  ***************************************************************************/
00008  
00009 
00010 #ifndef _INC_FETIMING_392B76DF0033_INCLUDED
00011 #define _INC_FETIMING_392B76DF0033_INCLUDED
00012 
00013 #include <Hw/Subrack.h>
00014 
00015 #include <FE/FEdef.h>
00016 
00017 #include <Hw/SltDef.h>
00018 #include <Hw/FltDef.h>
00019 
00020 #include <FE/fetimestamp.h>
00021 #include <FE/febasetiming.h>
00022 
00023 
00054 class FEtiming : public FEbaseTiming {
00055 public:
00056   FEtiming(Subrack *s);
00057 
00064   void setSecond(unsigned long sec);
00065 
00075   unsigned long setActualTime();
00076 
00083   unsigned long getSecond();
00084 
00091   unsigned long getSubSecond();
00092 
00093 
00098   void getActualTime(FEtimeStamp *t);
00099 
00106   void getActualTime(unsigned long *second, unsigned long *subSecond);
00107 
00108   void forceStrobe();
00109 
00110   void setStrobeSource(int source);
00111 
00112   int getStrobeSource();
00113 
00119   int waitForSyncErr();
00120 
00121   void enableSyncErr();
00122 
00123   void disableSyncErr();
00124 
00125   bool isEnabledSyncErr();
00126 
00141   void enableDeadTimeCounter();
00142 
00144   void disableDeadTimeCounter();
00145 
00147   bool isEnabledDeadTimeCounter();
00148 
00150   void resetDeadTimeCounter();
00151 
00153   void getVetoTime(unsigned long *high, unsigned long *low);
00154 
00156   void getDeadTime(unsigned long *high, unsigned long *low);
00157 
00159   void getVetoTime(unsigned long long *time);
00160 
00162   void getDeadTime(unsigned long long *time);
00163 
00164 private:
00165   Subrack *s;
00166 
00167 };
00168 
00169 #endif /* _INC_FETIMING_392B76DF0033_INCLUDED */
00170 
00171