fdhwlib
2.0.25
|
00001 /*************************************************************************** 00002 sltiiccommandreg.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_SLTI2CCOMMANDREG_H_INCLUDED 00011 #define _HW4_SLTI2CCOMMANDREG_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 00027 class SltI2CCommandReg : public BaseRegister { 00028 public: 00029 SltI2CCommandReg(const char *name, int slotID, int regID, int r, int w); 00030 ~SltI2CCommandReg(); 00031 00032 BaseRegisterItem *data; 00033 BaseRegisterItem *command; 00034 BaseRegisterItem *writeRead; 00035 BaseRegisterItem *error; 00036 BaseRegisterItem *busy; 00037 00038 00039 enum I2CCommand { 00040 ADCInterruptStatus1 = 0x0000, 00041 ADCInterruptStatus2 = 0x0001, 00042 ADCIntTempAndVDDLSB = 0x0003, 00043 ADCExtTempAndAIN2_4LSB = 0x0004, 00044 ADCAIN5_8LSB = 0x0005, 00045 ADCVDDMSB = 0x0006, 00046 ADCIntTempMSB = 0x0007, 00047 ADCExtTempMSB = 0x0008, 00048 ADCAIN2MSB = 0x0009, 00049 ADCAIN3MSB = 0x000a, 00050 ADCAIN4MSB = 0x000b, 00051 ADCAIN5MSB = 0x000c, 00052 ADCAIN6MSB = 0x000d, 00053 ADCAIN7MSB = 0x000e, 00054 ADCAIN8MSB = 0x000f, 00055 ADCControlCfg1 = 0x0018, 00056 ADCControlCfg2 = 0x0019, 00057 ADCControlCfg3 = 0x001a, 00058 ADCInterruptMask1 = 0x001d, 00059 ADCInterruptMask2 = 0x001e, 00060 ADCIntTempOffset = 0x001f, 00061 ADCExtTempOffset = 0x0020, 00062 ADCVDDHighLimitLSB = 0x0023, 00063 ADCVDDHighLimitMSB = 0x0024, 00064 ADCIntTempHighLimitLSB = 0x0025, 00065 ADCIntTempHighLimitMSB = 0x0026, 00066 ADCExtTempHighLimitLSB = 0x0027, 00067 ADCExtTempHighLimitMSB = 0x0028, 00068 ADCAIN3HighLimit = 0x002d, 00069 ADCAIN3LowLimit = 0x002e, 00070 ADCAIN4HighLimit = 0x002f, 00071 ADCAIN4LowLimit = 0x0030, 00072 ADCAIN5HighLimit = 0x0031, 00073 ADCAIN5LowLimit = 0x0032, 00074 ADCAIN6HighLimit = 0x0033, 00075 ADCAIN6LowLimit = 0x0034, 00076 ADCAIN7HighLimit = 0x0035, 00077 ADCAIN7LowLimit = 0x0036, 00078 ADCAIN8HighLimit = 0x0037, 00079 ADCAIN8LowLimit = 0x0038, 00080 PCAInputPort = 0x0107, 00081 PCAOutputPort = 0x0108, 00082 PCAPolarityInversion = 0x0109, 00083 PCAIOConfiguration = 0x010a, 00084 PCAMuxControl = 0x010b, 00085 PCAMuxInputs = 0x010c, 00086 PCAEEPRegister = 0x100, 00087 PCAEEPROMOffset = 0x1100 00088 }; 00089 }; 00090 00091 } // namespace hw4 00092 00093 #endif // _HW4_SLTI2CCOMMANDREG_H_INCLUDED 00094