fdhwlib
2.0.25
|
00001 /*************************************************************************** 00002 sltbyteregister.h - description 00003 00004 begin : Wed Nov 19 2008 00005 copyright : (C) 2008 by A Kopmann 00006 email : kopmann@ipe.fzk.de 00007 status : 00008 test : 00009 history : 00010 ***************************************************************************/ 00011 00012 00013 00014 #ifndef _HW4_SLTBYTEREGISTER_H_INCLUDED 00015 #define _HW4_SLTBYTEREGISTER_H_INCLUDED 00016 00017 #include <hw4/sltdef.h> 00018 #include <hw4/baseregister.h> 00019 00020 namespace hw4 { 00021 00022 00027 class SltByteRegister : public BaseRegister { 00028 00029 public: 00030 00031 SltByteRegister(const char * name, int slotID, unsigned int regID, int r, int w, int len); 00032 00033 virtual ~SltByteRegister(); 00034 00035 using hw4::BaseRegister::read; 00036 00037 unsigned long read(int elem = 0, int line = 0); 00038 00039 using hw4::BaseRegister::write; 00040 00041 void write(int elem, unsigned long data); 00042 00043 void write(int elem, int line, unsigned long data); 00044 00045 int getLength(); 00046 }; 00047 00048 } // namespace hw4 00049 00050 #endif // _HW4_SLTBYTEREGISTER_H_INCLUDED