Package com.dalsemi.onewire.container
Class OneWireContainer01
- java.lang.Object
-
- com.dalsemi.onewire.container.OneWireContainer
-
- com.dalsemi.onewire.container.OneWireContainer01
-
public class OneWireContainer01 extends OneWireContainer
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.pdf
http://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
Constructors Constructor Description OneWireContainer01()
Create 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, java.lang.String newAddress)
Create a container with a provided adapter object and the address of the iButton or 1-Wire device.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAlternateNames()
Retrieves the alternate Maxim Integrated Products part numbers or names.java.lang.String
getDescription()
Retrieves a short description of the function of the 1-Wire device type.java.lang.String
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 Detail
-
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.
-
OneWireContainer01
public OneWireContainer01(DSPortAdapter sourceAdapter, byte[] newAddress)
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()
,Address
-
OneWireContainer01
public OneWireContainer01(DSPortAdapter sourceAdapter, long newAddress)
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()
,Address
-
OneWireContainer01
public OneWireContainer01(DSPortAdapter sourceAdapter, java.lang.String newAddress)
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()
,Address
-
-
Method Detail
-
getName
public java.lang.String 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
public java.lang.String 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
public java.lang.String 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
-
-