fdhwlib
2.0.25
|
00001 /*************************************************************************** 00002 flthitratecontrol.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 _HW4_FLTHITRATECONTROL_H_INCLUDED 00011 #define _HW4_FLTHITRATECONTROL_H_INCLUDED 00012 00013 00014 #include <hw4/fltdef.h> 00015 #include <hw4/baseregister.h> 00016 00017 00018 namespace hw4 { 00019 00020 // --- forward declaration(s) 00021 00022 class BaseRegisterItem; 00023 00037 class FltHitrateControl : public BaseRegister { 00038 public: 00039 FltHitrateControl(const char *name, int slotID, int regID, int r, int w); 00040 ~FltHitrateControl(); 00041 00042 // TODO: Implement a special register item class for the coding of the sampling 00043 BaseRegisterItem *time; 00045 BaseRegisterItem *window; 00046 00051 static int convertRegisterValueToSamplingTime(int); 00052 00057 static int convertSamplingTimeToRegisterValue(int); 00058 00060 enum HitrateSamplingTimes { 00061 kFLT_HITRATE_1HZ = 0, 00062 kFLT_HITRATE_2HZ = 1, 00063 kFLT_HITRATE_4HZ = 2, 00064 kFLT_HITRATE_8HZ = 3, 00065 kFLT_HITRATE_16HZ = 4, 00066 kFLT_HITRATE_32HZ = 5, 00067 }; 00068 }; 00069 00070 } // namespace hw4 00071 00072 #endif // _HW4_FLTHITRATECONTROL_H_INCLUDED 00073