public class OneWireContainer0C extends OneWireContainer
1-Wire container for 8192 byte memory iButton, DS1996. This container encapsulates the functionality of the iButton family type 0C (hex)
This iButton is primarily used as a read/write portable memory device.
The memory can be accessed through the objects that are returned
from the getMemoryBanks
method.
MemoryBank
,
PagedMemoryBank
MemoryBank
,
PagedMemoryBank
OneWireContainer
to enumerate the MemoryBanks.
MemoryBank
and
PagedMemoryBank
for bank specific operations.
MemoryBank
,
PagedMemoryBank
Constructor and Description |
---|
OneWireContainer0C()
Create an empty container that is not complete until after a call
to
setupContainer . |
OneWireContainer0C(DSPortAdapter sourceAdapter,
byte[] newAddress)
Create a container with the provided adapter instance
and the address of the iButton or 1-Wire device.
|
OneWireContainer0C(DSPortAdapter sourceAdapter,
long newAddress)
Create a container with the provided adapter instance
and the address of the iButton or 1-Wire device.
|
OneWireContainer0C(DSPortAdapter sourceAdapter,
java.lang.String newAddress)
Create a container with the provided adapter instance
and the address of the iButton or 1-Wire device.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Get a short description of the function of this iButton
or 1-Wire Device type.
|
int |
getMaxSpeed()
Get the maximum speed this iButton or 1-Wire device 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()
Get the Maxim Integrated Products part number of the iButton
or 1-Wire Device as a string.
|
doSpeed, equals, getAdapter, getAddress, getAddressAsLong, getAddressAsString, getAlternateNames, hashCode, isAlarming, isPresent, setSpeed, setupContainer, setupContainer, setupContainer, toString
public OneWireContainer0C()
setupContainer
. This is one of the methods to construct a container. The others are through creating a OneWireContainer with parameters.
super.setupContainer()
public OneWireContainer0C(DSPortAdapter sourceAdapter, byte[] newAddress)
This is one of the methods to construct a container. The other is through creating a OneWireContainer with NO parameters.
sourceAdapter
- adapter instance used to communicate with
this iButtonnewAddress
- Address
of this 1-Wire deviceOneWireContainer0C
,
utils.Address
public OneWireContainer0C(DSPortAdapter sourceAdapter, long newAddress)
This is one of the methods to construct a container. The other is through creating a OneWireContainer with NO parameters.
sourceAdapter
- adapter instance used to communicate with
this 1-Wire devicenewAddress
- Address
of this 1-Wire deviceOneWireContainer0C
,
utils.Address
public OneWireContainer0C(DSPortAdapter sourceAdapter, java.lang.String newAddress)
This is one of the methods to construct a container. The other is through creating a OneWireContainer with NO parameters.
sourceAdapter
- adapter instance used to communicate with
this 1-Wire devicenewAddress
- Address
of this 1-Wire deviceOneWireContainer0C
,
utils.Address
public java.lang.String getName()
getName
in class OneWireContainer
public java.lang.String getDescription()
getDescription
in class OneWireContainer
public int getMaxSpeed()
getMaxSpeed
in class OneWireContainer
super.setSpeed
,
DSPortAdapter.SPEED_REGULAR
,
DSPortAdapter.SPEED_OVERDRIVE
,
DSPortAdapter.SPEED_FLEX
public java.util.Enumeration getMemoryBanks()
MemoryBank
,
PagedMemoryBank
,
and OTPMemoryBank
.getMemoryBanks
in class OneWireContainer
Enumeration
of memory banksMemoryBank
Copyright © 1999-2012 Maxim Integrated Products. All Rights Reserved.