| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
  |
  +--de.wagner_ibw.iow.i2c.AbstractI2CDevice
        |
        +--de.wagner_ibw.iow.i2c.LM75
This is the implemenation of the LM75 device , "Digital Temperature
 Sensor and Thermal Watchdog with Two-Wire Interface", by National
 Semiconductors.
 
This class almost supports features of the device:
| Field Summary | |
| static int | CLASSGroup 1 part of slave address for LM75 (LM75 device specific constant). | 
| static int | MODE_COMPARATORConstant for 'Comparator' mode. | 
| static int | MODE_INTERRUPTConstant for 'Interrupt' mode. | 
| static java.lang.String | NAMEPCF8570 device specific constants. | 
| static int | POLARITY_ACTIVE_HIGHConstant for O.S. output polarity 'active high'. | 
| static int | POLARITY_ACTIVE_LOWConstant for O.S. output polarity 'active low'. | 
| static int | REG_CONFIGConstant for register pointer for 'Configuration' register (LM75 device specific constant). | 
| static int | REG_TEMPConstant for register pointer for 'Temperature' register (LM75 device specific constant). | 
| static int | REG_TEMP_HYSTConstant for register pointer for 'THyst Set Point' register (LM75 device specific constant). | 
| static int | REG_TEMP_OSConstant for register pointer for 'TOS Set Point' register (LM75 device specific constant). | 
| Fields inherited from class de.wagner_ibw.iow.i2c.AbstractI2CDevice | 
| MAX_I2C_LENGTH | 
| Constructor Summary | |
| LM75(int deviceAddress)Constructor | |
| Method Summary | |
|  boolean | equals(java.lang.Object o)Indicates whether some other LM75 object is "equal to" this one. | 
|  void | getConfiguration() | 
|  int | getMode()Getter for mode of this LM75 device. | 
|  int | getPolarity()Getter for polarity of this LM75 device. | 
|  double | getT()Returns Current temperature measured by this LM75. | 
|  double | getTHyst()Returns THYST set point stored in this LM75. | 
|  double | getTOs()Returns TOS set point stored in this LM75. | 
|  int | hashCode()Returns a hash code value for this LM75 object. | 
|  void | setConfiguration(int mode,
                 int polarity) | 
|  void | setIowDevice(AbstractIowDevice iow)Sets the reference to an IO-Warrior device for write report operations. | 
|  void | setTHyst(double value)Sets THYST set point in this LM75. | 
|  void | setTOs(double value)Sets TOS set point in this LM75. | 
|  java.lang.String | toString()Returns Information about this LM75 as String. | 
| Methods inherited from class de.wagner_ibw.iow.i2c.AbstractI2CDevice | 
| getI2cAddress, getName, readI2C, reportReceived, setMonitor, writeI2C | 
| Methods inherited from class java.lang.Object | 
| getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
public static final java.lang.String NAME
public static final int CLASS
public static final int REG_TEMP
public static final int REG_CONFIG
public static final int REG_TEMP_HYST
public static final int REG_TEMP_OS
public static final int MODE_COMPARATOR
public static final int MODE_INTERRUPT
public static final int POLARITY_ACTIVE_LOW
public static final int POLARITY_ACTIVE_HIGH
| Constructor Detail | 
public LM75(int deviceAddress)
     throws java.lang.Exception
deviceAddress - Group 2 part of slave address (possible values 0...7).
java.lang.Exception - If anything goes wrong.| Method Detail | 
public double getT()
            throws java.lang.Exception
java.lang.Exception - If anything goes wrong.
public void getConfiguration()
                      throws java.lang.Exception
java.lang.Exception
public double getTHyst()
                throws java.lang.Exception
java.lang.Exception - If anything goes wrong.
public double getTOs()
              throws java.lang.Exception
java.lang.Exception - If anything goes wrong.
public void setConfiguration(int mode,
                             int polarity)
                      throws java.lang.Exception
java.lang.Exception
public void setTHyst(double value)
              throws java.lang.Exception
value - Desired HYST temperature as doubel value.
java.lang.Exception
public void setTOs(double value)
            throws java.lang.Exception
value - Desired OS temperature as doubel value.
java.lang.Exceptionpublic int getMode()
public int getPolarity()
public void setIowDevice(AbstractIowDevice iow)
I2CDevice
setIowDevice in interface I2CDevicesetIowDevice in class AbstractI2CDeviceiow - Instance of an IO-Warrior device.public java.lang.String toString()
toString in class AbstractI2CDevicepublic boolean equals(java.lang.Object o)
equals in class AbstractI2CDevicepublic int hashCode()
hashCode in class AbstractI2CDevice| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||