fdhwlib
2.0.25
|
00001 /*************************************************************************** 00002 FEsensor.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 #if defined (_MSC_VER) && (_MSC_VER >= 1000) 00011 #pragma once 00012 #endif 00013 #ifndef _INC_FESENSOR_392B77EC03D4_INCLUDED 00014 #define _INC_FESENSOR_392B77EC03D4_INCLUDED 00015 00016 #include <Hw/Subrack.h> 00017 00018 #include <FE/FEdef.h> 00019 00020 #include <Hw/SltDef.h> 00021 #include <Hw/FltDef.h> 00022 00023 #include <FE/febasesensor.h> 00024 00043 class FEsensor : public FEbaseSensor { 00044 public: 00045 FEsensor(Subrack *s); 00046 00047 void setRange(int ch, int range); 00048 00049 int getRange(int ch); 00050 00054 int read(int ch); 00055 00056 void setUpperThresh(int ch, int treshold); 00057 00058 void setLowerThresh(int ch, int treshold); 00059 00060 int getUpperThresh(int ch); 00061 00062 int getLowerThresh(int ch); 00063 00068 int waitForAlarm(); 00069 00071 void enableAlarm(int ch = -1); 00072 00074 void disableAlarm(int ch = -1); 00075 00079 bool isEnabledAlarm(int ch = -1); 00080 00081 #if defined (SLT_VER) && (SLT_VER >= 110) 00082 00083 int getStatus(); 00084 00087 bool isOutOfRange(int ch); 00088 #endif 00089 00090 private: 00091 Subrack *s; 00092 00093 }; 00094 00095 #endif /* _INC_FESENSOR_392B77EC03D4_INCLUDED */ 00096