|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfaa.misc.oneWire.oneWireDev
public class oneWireDev
oneWireDev represents a Dallas Semiconductor One-Wire Device such as the DS1820 thermometer. Source: oneWireDev.java
oneWireDev| Field Summary | |
|---|---|
protected oneWireBus |
bus
The bus to which this device is connected. |
static java.lang.String |
CVS_VERSION_ID
The CVS Version ID |
private java.lang.String |
description
The description of this device |
private int |
device_type
The type of this instance |
static int |
DS1820
The DS1820 One-Wire Thermometer |
protected byte[] |
ROM_code
The entire ROM Code for this device [8-bit CRC][48-bit serial no.][8-bit family code] |
static int |
UNKNOWN
The DS1820 One-Wire Thermometer |
| Constructor Summary | |
|---|---|
oneWireDev(byte[] ROMcode,
oneWireBus bus)
Construct a new oneWireDev object. |
|
| Method Summary | |
|---|---|
byte |
getCRC()
Get the CRC of the ROM Code for this device |
java.lang.String |
getDescription()
Get the description of this device |
byte |
getFamilyCode()
Get the family code for this device |
byte[] |
getROMCode()
Get the ROM Code for this device |
byte[] |
getSerialNumber()
Get the serial number for this device |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CVS_VERSION_ID
public static final int DS1820
public static final int UNKNOWN
private int device_type
protected byte[] ROM_code
private java.lang.String description
protected oneWireBus bus
| Constructor Detail |
|---|
public oneWireDev(byte[] ROMcode,
oneWireBus bus)
ROMcode - 8 element byte array of the unique ROM code.bus - The one-wire bus where the device is located.| Method Detail |
|---|
public byte[] getROMCode()
public byte getCRC()
public byte getFamilyCode()
public byte[] getSerialNumber()
public java.lang.String getDescription()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||