de.wagner_ibw.iow.i2c
Class LM75.LM75Temp

java.lang.Object
  |
  +--de.wagner_ibw.iow.i2c.LM75.LM75Temp
Enclosing class:
LM75

private class LM75.LM75Temp
extends java.lang.Object

Inner class for LM75 temperature representation.


Field Summary
(package private)  int lsdb
          Most significant data byte of this temperature.
(package private)  int msdb
          Most significant data byte of this temperature.
(package private)  double temp
          Double representation of this temperature.
(package private) static double TEMP_MAX
          Constant for maximum temperature valid for LM75.
(package private) static double TEMP_MIN
          Constant for minimum temperature valid for LM75.
 
Constructor Summary
LM75.LM75Temp(double temp)
          Constructor for temperature as double value.
LM75.LM75Temp(int msdb, int lsdb)
          Constructor for temperature seperated in msdb (most significant data byte) and lsdb (least significant data byte).
 
Method Summary
(package private)  int getLsdb()
          Getter for lsdb.
(package private)  int getMsdb()
          Getter for msdb.
(package private)  double getTemp()
          Getter for double value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEMP_MIN

static final double TEMP_MIN
Constant for minimum temperature valid for LM75.

See Also:
Constant Field Values

TEMP_MAX

static final double TEMP_MAX
Constant for maximum temperature valid for LM75.

See Also:
Constant Field Values

msdb

int msdb
Most significant data byte of this temperature.


lsdb

int lsdb
Most significant data byte of this temperature.


temp

double temp
Double representation of this temperature.

Constructor Detail

LM75.LM75Temp

public LM75.LM75Temp(int msdb,
                     int lsdb)
Constructor for temperature seperated in msdb (most significant data byte) and lsdb (least significant data byte).

Parameters:
msdb - Most significant data byte read from LM75.
lsdb - Least significant data byte read from LM75.

LM75.LM75Temp

public LM75.LM75Temp(double temp)
Constructor for temperature as double value.

Parameters:
temp - Temperature as double value.
Method Detail

getMsdb

int getMsdb()
Getter for msdb.


getLsdb

int getLsdb()
Getter for lsdb.


getTemp

double getTemp()
Getter for double value.