public class OneWireContainer43 extends OneWireContainer
1-Wire® container for the '1K-Bit protected 1-Wire EEPROM family type 43 (hex), Maxim Integrated Products part number: DS28EC20.
The memory can also be accessed through the objects that are returned
from the getMemoryBanks
method.
Modifier and Type | Field and Description |
---|---|
static byte |
WRITEONCE_FLAG
Page Lock Flag
|
Constructor and Description |
---|
OneWireContainer43()
Default Constructor OneWireContainer43.
|
OneWireContainer43(DSPortAdapter sourceAdapter,
byte[] newAddress)
Create a container with a provided adapter object
and the address of the iButton or 1-Wire device.
|
OneWireContainer43(DSPortAdapter sourceAdapter,
long newAddress)
Create a container with a provided adapter object
and the address of the iButton or 1-Wire device.
|
OneWireContainer43(DSPortAdapter sourceAdapter,
java.lang.String newAddress)
Create a container with a provided adapter object
and the address of the iButton or 1-Wire device.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlternateNames()
Retrieve the alternate Maxim Integrated Products part numbers or names.
|
java.lang.String |
getDescription()
Retrieve a short description of the function of the iButton type.
|
int |
getMaxSpeed()
Returns the maximum speed this iButton can communicate at.
|
java.util.Enumeration |
getMemoryBanks()
Get an enumeration of memory bank instances that implement one or more
of the following interfaces:
MemoryBank ,
PagedMemoryBank ,
and OTPMemoryBank . |
java.lang.String |
getName()
Retrieve the Maxim Integrated Products 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,
java.lang.String newAddress)
Provide this container the adapter object used to access this device
and provide the address of this iButton or 1-Wire device.
|
doSpeed, equals, getAdapter, getAddress, getAddressAsLong, getAddressAsString, hashCode, isAlarming, isPresent, setSpeed, toString
public static final byte WRITEONCE_FLAG
public OneWireContainer43()
public OneWireContainer43(DSPortAdapter sourceAdapter, byte[] newAddress)
sourceAdapter
- adapter object required to communicate with
this iButton.newAddress
- address of this 1-Wire devicepublic OneWireContainer43(DSPortAdapter sourceAdapter, long newAddress)
sourceAdapter
- adapter object required to communicate with
this iButton.newAddress
- address of this 1-Wire devicepublic OneWireContainer43(DSPortAdapter sourceAdapter, java.lang.String newAddress)
sourceAdapter
- adapter object required to communicate with
this iButton.newAddress
- address of this 1-Wire devicepublic void setupContainer(DSPortAdapter sourceAdapter, byte[] newAddress)
setupContainer
in class OneWireContainer
sourceAdapter
- adapter object required to communicate with
this iButton.newAddress
- address of this 1-Wire deviceAddress
public void setupContainer(DSPortAdapter sourceAdapter, long newAddress)
setupContainer
in class OneWireContainer
sourceAdapter
- adapter object required to communicate with
this iButton.newAddress
- address of this 1-Wire deviceAddress
public void setupContainer(DSPortAdapter sourceAdapter, java.lang.String newAddress)
setupContainer
in class OneWireContainer
sourceAdapter
- adapter object required to communicate with
this iButton.newAddress
- address of this 1-Wire deviceAddress
public java.lang.String getName()
getName
in class OneWireContainer
public java.lang.String getAlternateNames()
getAlternateNames
in class OneWireContainer
public java.lang.String getDescription()
getDescription
in class OneWireContainer
public int getMaxSpeed()
getMaxSpeed
in class OneWireContainer
DSPortAdapter.setSpeed(int)
public java.util.Enumeration getMemoryBanks()
MemoryBank
,
PagedMemoryBank
,
and OTPMemoryBank
.getMemoryBanks
in class OneWireContainer
Enumeration
of memory banksMemoryBank
public boolean isPageWriteOnce(int page) throws OneWireIOException, OneWireException
OneWireIOException
OneWireException
public void setPageWriteOnce(int page) throws OneWireIOException, OneWireException
page
- number of page to lockOneWireIOException
OneWireException
Copyright © 1999-2012 Maxim Integrated Products. All Rights Reserved.