fdhwlib
2.0.25
|
00001 /*************************************************************************** 00002 SltTimeStamp.h - description 00003 00004 begin : Tue Aug 8 2000 00005 copyright : (C) 2000 by Andreas Kopmann 00006 email : kopmann@hpe.fzk.de 00007 ***************************************************************************/ 00008 00009 00010 #ifndef SLTTIMESTAMP_H 00011 #define SLTTIMESTAMP_H 00012 00013 #include <Hw/SltDef.h> 00014 #include <Hw/SltTime.h> 00015 #include <Hw/SltRegisterVector.h> 00016 00029 //##ModelId=39914F010308 00030 class SltTimeStamp : public SltRegisterVector { 00031 public: 00032 00033 SltTimeStamp(const char *name, int slotID, int regID, int r, int w, int len, int width); 00034 00035 ~SltTimeStamp(); 00036 00044 unsigned long read(int elem); 00045 00053 void read(unsigned long *data); 00054 00062 void read(int page, SltTime *time); 00063 00064 void read(int page, unsigned long *secCount, unsigned long *subSecCount); 00065 00073 void read(SltTime *time); 00074 00080 void write(int page, SltTime *time); 00081 00088 void write(int page, unsigned long secCount, 00089 unsigned long subSecCount); 00090 00091 00092 private: 00093 00097 int width; 00098 00099 }; 00100 00101 #endif