java.lang.Object
|
+--com.dalsemi.onewire.container.OneWireContainer
|
+--com.dalsemi.onewire.container.OneWireContainer2D
1-Wire® container for the '1K-Bit protected 1-Wire EEPROM family type 2D (hex), Dallas Semiconductor part number: DS2431.
The memory can also be accessed through the objects that are returned
from the getMemoryBanks method.
| Field Summary | |
static byte |
WRITEONCE_FLAG
Page Lock Flag |
| Constructor Summary | |
OneWireContainer2D()
Default Constructor OneWireContainer2D. |
|
OneWireContainer2D(DSPortAdapter sourceAdapter,
byte[] newAddress)
Create a container with a provided adapter object and the address of the iButton or 1-Wire device. |
|
OneWireContainer2D(DSPortAdapter sourceAdapter,
long newAddress)
Create a container with a provided adapter object and the address of the iButton or 1-Wire device. |
|
OneWireContainer2D(DSPortAdapter sourceAdapter,
String newAddress)
Create a container with a provided adapter object and the address of the iButton or 1-Wire device. |
|
| Method Summary | |
String |
getAlternateNames()
Retrieve the alternate Dallas Semiconductor part numbers or names. |
String |
getDescription()
Retrieve a short description of the function of the iButton type. |
int |
getMaxSpeed()
Returns the maximum speed this iButton can communicate at. |
Enumeration |
getMemoryBanks()
Get an enumeration of memory bank instances that implement one or more of the following interfaces: MemoryBank,
PagedMemoryBank,
and OTPMemoryBank. |
String |
getName()
Retrieve the Dallas Semiconductor part number of the iButton as a string. |
boolean |
isPageWriteOnce(int page)
Query to see if current memory bank is write write once such as with EPROM technology. |
void |
setPageWriteOnce(int page)
Lock the specifed page in the current memory bank. |
void |
setupContainer(DSPortAdapter sourceAdapter,
byte[] newAddress)
Provide this container the adapter object used to access this device and provide the address of this iButton or 1-Wire device. |
void |
setupContainer(DSPortAdapter sourceAdapter,
long newAddress)
Provide this container the adapter object used to access this device and provide the address of this iButton or 1-Wire device. |
void |
setupContainer(DSPortAdapter sourceAdapter,
String newAddress)
Provide this container the adapter object used to access this device and provide the address of this iButton or 1-Wire device. |
| Methods inherited from class com.dalsemi.onewire.container.OneWireContainer |
doSpeed, equals, getAdapter, getAddress, getAddressAsLong, getAddressAsString, hashCode, isAlarming, isPresent, setSpeed, toString |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final byte WRITEONCE_FLAG
| Constructor Detail |
public OneWireContainer2D()
public OneWireContainer2D(DSPortAdapter sourceAdapter,
byte[] newAddress)
sourceAdapter - adapter object required to communicate with
this iButton.newAddress - address of this 1-Wire device
public OneWireContainer2D(DSPortAdapter sourceAdapter,
long newAddress)
sourceAdapter - adapter object required to communicate with
this iButton.newAddress - address of this 1-Wire device
public OneWireContainer2D(DSPortAdapter sourceAdapter,
String newAddress)
sourceAdapter - adapter object required to communicate with
this iButton.newAddress - address of this 1-Wire device| Method Detail |
public void setupContainer(DSPortAdapter sourceAdapter,
byte[] newAddress)
setupContainer in class OneWireContainersourceAdapter - adapter object required to communicate with
this iButton.newAddress - address of this 1-Wire device
public void setupContainer(DSPortAdapter sourceAdapter,
long newAddress)
setupContainer in class OneWireContainersourceAdapter - adapter object required to communicate with
this iButton.newAddress - address of this 1-Wire device
public void setupContainer(DSPortAdapter sourceAdapter,
String newAddress)
setupContainer in class OneWireContainersourceAdapter - adapter object required to communicate with
this iButton.newAddress - address of this 1-Wire devicepublic String getName()
getName in class OneWireContainerpublic String getAlternateNames()
getAlternateNames in class OneWireContainerpublic String getDescription()
getDescription in class OneWireContainerpublic int getMaxSpeed()
getMaxSpeed in class OneWireContainerpublic Enumeration getMemoryBanks()
MemoryBank,
PagedMemoryBank,
and OTPMemoryBank.getMemoryBanks in class OneWireContainerEnumeration of memory banks
public boolean isPageWriteOnce(int page)
throws OneWireIOException,
OneWireException
public void setPageWriteOnce(int page)
throws OneWireIOException,
OneWireException
page - number of page to lockOneWireIOException - OneWireException -