fdhwlib
2.0.25
|
00001 /*************************************************************************** 00002 sltepcscommandreg.h - description 00003 00004 begin : Wed Nov 19 2008 00005 copyright : (C) 2008 by Andreas Kopmann 00006 email : kopmann@ipe.fzk.de 00007 ***************************************************************************/ 00008 00009 00010 #ifndef _HW4_SLTEPCSCOMMANDREG_H_INCLUDED 00011 #define _HW4_SLTEPCSCOMMANDREG_H_INCLUDED 00012 00013 #include <hw4/sltdef.h> 00014 #include <hw4/baseregister.h> 00015 00016 00017 namespace hw4 { 00018 00019 // --- forward declaration(s) 00020 00021 class BaseRegisterItem; 00022 00023 00028 class SltEPCSCommandReg : public BaseRegister { 00029 public: 00030 SltEPCSCommandReg(const char *name, int slotID, int regID, int r, int w); 00031 ~SltEPCSCommandReg(); 00032 00033 BaseRegisterItem *data; 00034 BaseRegisterItem *command; 00035 BaseRegisterItem *error; 00036 BaseRegisterItem *busy; 00037 00038 00039 enum EPCSCommand { 00040 BulkErase = 0x0500, 00041 Protect = 0x0400, 00042 ReadStatus = 0x0300, 00043 ReadPage = 0x0200, 00044 WritePage = 0x0100 00045 }; 00046 }; 00047 00048 } // namespace hw4 00049 00050 #endif // _HW4_SLTEPCSCOMMANDREG_H_INCLUDED 00051