Package com.dalsemi.onewire.container
Class OneWireContainer01
java.lang.Object
com.dalsemi.onewire.container.OneWireContainer
com.dalsemi.onewire.container.OneWireContainer01
1-Wire® container that encapsulates the functionality of the 1-Wire family type 01 (hex), Maxim Integrated Products part number: DS1990A, Serial Number.
This 1-Wire device is used as a unique serial number.
Features
- 64 bit unique serial number
- Operating temperature range from -40 to +85
Alternate Names
- DS2401
- DS1420 (Family 81)
DataSheets
http://pdfserv.maxim-ic.com/arpdf/DS1990A.pdfhttp://pdfserv.maxim-ic.com/arpdf/DS2401.pdf
http://pdfserv.maxim-ic.com/arpdf/DS1420.pdf
-
Field Summary
Fields inherited from class com.dalsemi.onewire.container.OneWireContainer
adapter, address, speed, speedFallBackOK
-
Constructor Summary
ConstructorDescriptionCreate an empty container.OneWireContainer01
(DSPortAdapter sourceAdapter, byte[] newAddress) Create a container with a provided adapter object and the address of the iButton or 1-Wire device.OneWireContainer01
(DSPortAdapter sourceAdapter, long newAddress) Create a container with a provided adapter object and the address of the iButton or 1-Wire device.OneWireContainer01
(DSPortAdapter sourceAdapter, String newAddress) Create a container with a provided adapter object and the address of the iButton or 1-Wire device. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the alternate Maxim Integrated Products part numbers or names.Retrieves a short description of the function of the 1-Wire device type.getName()
Retrieves the Maxim Integrated Products part number of the 1-Wire device as aString
.Methods inherited from class com.dalsemi.onewire.container.OneWireContainer
doSpeed, equals, getAdapter, getAddress, getAddressAsLong, getAddressAsString, getMaxSpeed, getMemoryBanks, hashCode, isAlarming, isPresent, setSpeed, setupContainer, setupContainer, setupContainer, toString
-
Constructor Details
-
OneWireContainer01
public OneWireContainer01()Create an empty container. Must callsetupContainer
before using this new container.This is one of the methods to construct a container. The others are through creating a OneWireContainer with parameters.
- See Also:
-
OneWireContainer01
Create a container with a provided adapter object and the address of the iButton or 1-Wire device.This is one of the methods to construct a container. The other is through creating a OneWireContainer with NO parameters.
- Parameters:
sourceAdapter
- adapter object required to communicate with this iButton.newAddress
- address of this 1-Wire device- See Also:
-
OneWireContainer01
Create a container with a provided adapter object and the address of the iButton or 1-Wire device.This is one of the methods to construct a container. The other is through creating a OneWireContainer with NO parameters.
- Parameters:
sourceAdapter
- adapter object required to communicate with this iButton.newAddress
- address of this 1-Wire device- See Also:
-
OneWireContainer01
Create a container with a provided adapter object and the address of the iButton or 1-Wire device.This is one of the methods to construct a container. The other is through creating a OneWireContainer with NO parameters.
- Parameters:
sourceAdapter
- adapter object required to communicate with this iButton.newAddress
- address of this 1-Wire device- See Also:
-
-
Method Details
-
getName
Description copied from class:OneWireContainer
Retrieves the Maxim Integrated Products part number of the 1-Wire device as aString
. For example 'Crypto iButton' or 'DS1992'.- Overrides:
getName
in classOneWireContainer
- Returns:
- 1-Wire device name
-
getAlternateNames
Description copied from class:OneWireContainer
Retrieves the alternate Maxim Integrated Products part numbers or names. A 'family' of 1-Wire Network devices may have more than one part number depending on packaging. There can also be nicknames such as 'Crypto iButton'.- Overrides:
getAlternateNames
in classOneWireContainer
- Returns:
- 1-Wire device alternate names
-
getDescription
Description copied from class:OneWireContainer
Retrieves a short description of the function of the 1-Wire device type.- Overrides:
getDescription
in classOneWireContainer
- Returns:
- device functional description
-