fdhwlib
2.0.25
|
00001 /*************************************************************************** 00002 fltsigneditem.h - description 00003 ------------------- 00004 begin : Fr May 6 2008 00005 copyright : (C) 2008 by 00006 email : 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef _HW4_FLTSIGNEDITEM_H_INCLUDED 00019 #define _HW4_FLTSIGNEDITEM_H_INCLUDED 00020 00021 00022 #include <hw4/baseregisteritem.h> 00023 00024 00025 namespace hw4 { 00026 00027 // --- forward declaration(s) 00028 00029 class BaseRegister; 00030 00036 class FltSignedItem : public BaseRegisterItem { 00037 public: 00038 00040 FltSignedItem(BaseRegister *reg, const char *name=0, unsigned long low=0, unsigned long len=32); 00041 00043 FltSignedItem(BaseRegisterItem *group, const char *name, unsigned long low, unsigned long len); 00044 00045 ~FltSignedItem(); 00046 00048 unsigned long read(int elem = 0); 00049 00050 00051 private: 00052 00053 unsigned long maskSignBit; 00054 00055 unsigned long maskPositive; 00056 00057 unsigned long maskNegative; 00058 }; 00059 00060 } // namespace hw4 00061 00062 #endif // _HW4_FLTSIGNEDITEM_H_INCLUDED