fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/hw4/sltsecondcounter.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     sltsecondcounter.h  -  description
00003 
00004     begin                : Thu Apr 22 2004
00005     copyright            : (C) 2004 by A Kopmann
00006     email                : kopmann@ipe.fzk.de
00007     status               :
00008     test                 :
00009     history              :
00010  ***************************************************************************/
00011 
00012 
00013 #ifndef _HW4_SLTSECONDCOUNTER_H_INCLUDED
00014 #define _HW4_SLTSECONDCOUNTER_H_INCLUDED
00015 
00016 #include <time.h>
00017 
00018 #include <hw4/baseregister64.h>
00019 #include <hw4/sltsecondcounter.h>
00020 
00021 
00022 namespace hw4 {
00023 
00029 class SltSecondCounter : public BaseRegister64 {
00030 public: 
00031         SltSecondCounter(const char *name, int slotID, int regID, int r, int w);
00032         ~SltSecondCounter();
00033 
00035    unsigned long read();
00036 
00038    void read(struct timeval *);
00039 
00041    void setTimebase(int timebase);
00042 
00043    BaseRegisterItem *sec;
00044    BaseRegisterItem *subsec1;
00045    BaseRegisterItem *subsec2;
00046 
00047    int timebase;
00048 
00049 };
00050 
00051 } // namespace hw4
00052 
00053 #endif // _HW4_SLTSECONDCOUNTER_H_INCLUDED