|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfaa.misc.oneWire.oneWireBus
public class oneWireBus
oneWireBus represents a Dallas Semiconductor One-Wire Bus which actually consists of two wires. Source: oneWireBus.java
oneWireBus| Field Summary | |
|---|---|
static byte |
ALARMSEARCH
Byte used to send a AlarmSearch command. |
static byte |
CONVERTT
Byte used to send a ConvertT command. |
static byte |
COPYSCRATCH
Byte used to send a CopyScratchpad command. |
static java.lang.String |
CVS_VERSION_ID
The CVS Version ID |
private java.io.InputStream |
from_bus
InputStream object |
static byte |
MATCHROM
Byte used to send a MatchROM command. |
static byte |
ONEBIT
Byte used to send a one bit on the bus |
static byte |
READPOWER
Byte used to send a Read Power Supply command. |
static byte |
READROM
Byte used to send a ReadROM command. |
static byte |
READSCRATCH
Byte used to send a ReadScratchpad command. |
static byte |
RECALLE2
Byte used to send a RecallE2 command. |
static byte |
RESET
Byte used to send a Reset command. |
private SerialCommunicator |
sc
Serial communicator object. |
static byte |
SEARCHROM
Byte used to send a SearchROM command. |
static byte |
SKIPROM
Byte used to send a SkipROM command. |
private java.io.OutputStream |
to_bus
OuputStream object |
static byte |
WRITESCRATCH
Byte used to send a WriteScratchpad command. |
static byte |
ZEROBIT
Byte used to send a zero bit on the bus |
| Constructor Summary | |
|---|---|
oneWireBus(SerialCommunicator sc)
Construct a new one wire bus. |
|
| Method Summary | |
|---|---|
void |
AlarmSearch()
Issue a Alarm Search command on the bus This allows the bus master to find all of the unique ROM codes of the devices on the bus that have an alarm set. |
void |
ConvertT()
Issue a Convert T command on the bus Measure the temperature. |
void |
CopyScratch()
Issue a Copy Scratchpad command on the bus Copy scratchpad data into EE memory. |
void |
MatchROM(byte[] ROMcode)
Issue a Match ROM command on the bus This allows the bus master to address a single device by disabling (until RESET) all other devices not matching the ROMcode put on the wire. |
byte |
readByte()
Read a byte from the bus. |
void |
ReadROM()
Issue a Read ROM command on the bus This reads the 64 bit ROM code from a device when there is only one device on the entire bus. |
void |
ReadScratch()
Issue a Read Scratchpad command on the bus Read data from the scratchpad of a particular device. |
void |
RecallE2()
Issue a Recall E2 command on the bus Recall the EE memory values to the scratchpad. |
void |
Reset()
Issue a RESET command on the bus |
void |
SearchROM()
Issue a Search ROM command on the bus This allows the bus master to find all of the unique ROM codes of the devices on the bus. |
void |
SkipROM()
Issue a Skip ROM command on the bus This allows the bus master to address the ONLY device on the bus without specifying the ROM code. |
byte |
writeByte(byte data)
Write a byte on the bus. |
void |
WriteScratch()
Issue a Write Scratchpad command on the bus Write data to the scratchpad of a particular 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 byte ONEBIT
public static final byte ZEROBIT
public static final byte RESET
public static final byte READROM
public static final byte MATCHROM
public static final byte SKIPROM
public static final byte SEARCHROM
public static final byte ALARMSEARCH
public static final byte WRITESCRATCH
public static final byte READSCRATCH
public static final byte COPYSCRATCH
public static final byte CONVERTT
public static final byte RECALLE2
public static final byte READPOWER
private SerialCommunicator sc
private java.io.OutputStream to_bus
private java.io.InputStream from_bus
| Constructor Detail |
|---|
public oneWireBus(SerialCommunicator sc)
| Method Detail |
|---|
public void Reset()
throws oneWireCmdFailure
oneWireCmdFailure
public void ReadROM()
throws oneWireCmdFailure
oneWireCmdFailure
public void MatchROM(byte[] ROMcode)
throws oneWireCmdFailure
oneWireCmdFailure
public void SkipROM()
throws oneWireCmdFailure
oneWireCmdFailure
public void SearchROM()
throws oneWireCmdFailure
oneWireCmdFailure
public void AlarmSearch()
throws oneWireCmdFailure
oneWireCmdFailure
public void WriteScratch()
throws oneWireCmdFailure
oneWireCmdFailure
public void ReadScratch()
throws oneWireCmdFailure
oneWireCmdFailure
public void CopyScratch()
throws oneWireCmdFailure
oneWireCmdFailure
public void ConvertT()
throws oneWireCmdFailure
oneWireCmdFailure
public void RecallE2()
throws oneWireCmdFailure
oneWireCmdFailure
public byte writeByte(byte data)
throws oneWireCmdFailure
oneWireCmdFailure
public byte readByte()
throws oneWireCmdFailure
oneWireCmdFailure
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||