public class OneWireContainer22 extends OneWireContainer28 implements TemperatureContainer
1-Wire container for temperature iButton which measures temperatures from -55@htmlonly °C @endhtmlonly to +125@htmlonly °C @endhtmlonly, DS1822. This container encapsulates the functionality of the iButton family type 22 (hex)
TemperatureContainer
for temperature specific operations.
TemperatureContainer
CONVERT_TEMPERATURE_COMMAND, COPY_SCRATCHPAD_COMMAND, READ_POWER_SUPPLY_COMMAND, READ_SCRATCHPAD_COMMAND, RECALL_E2MEMORY_COMMAND, RESOLUTION_10_BIT, RESOLUTION_11_BIT, RESOLUTION_12_BIT, RESOLUTION_9_BIT, WRITE_SCRATCHPAD_COMMAND
ALARM_HIGH, ALARM_LOW
Constructor and Description |
---|
OneWireContainer22()
Creates an empty
OneWireContainer22 . |
OneWireContainer22(DSPortAdapter sourceAdapter,
byte[] newAddress)
Creates a
OneWireContainer22 with the provided adapter
object and the address of this One-Wire device. |
OneWireContainer22(DSPortAdapter sourceAdapter,
long newAddress)
Creates a
OneWireContainer22 with the provided adapter
object and the address of this One-Wire device. |
OneWireContainer22(DSPortAdapter sourceAdapter,
java.lang.String newAddress)
Creates a
OneWireContainer22 with the provided adapter
object and the address of this One-Wire device. |
Modifier and Type | Method and 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 this
OneWireContainer22 type. |
java.lang.String |
getName()
Retrieves the Maxim Integrated Products part number of this
OneWireContainer22 as a String . |
convertToFahrenheit, copyScratchpad, doTemperatureConvert, getMaxTemperature, getMinTemperature, getTemperature, getTemperatureAlarm, getTemperatureAlarmResolution, getTemperatureResolution, getTemperatureResolutions, hasSelectableTemperatureResolution, hasTemperatureAlarms, isExternalPowerSupplied, readDevice, readScratchpad, recallE2, setTemperatureAlarm, setTemperatureResolution, writeDevice, writeScratchpad
doSpeed, equals, getAdapter, getAddress, getAddressAsLong, getAddressAsString, getMaxSpeed, getMemoryBanks, hashCode, isAlarming, isPresent, setSpeed, setupContainer, setupContainer, setupContainer, toString
doTemperatureConvert, getMaxTemperature, getMinTemperature, getTemperature, getTemperatureAlarm, getTemperatureAlarmResolution, getTemperatureResolution, getTemperatureResolutions, hasSelectableTemperatureResolution, hasTemperatureAlarms, setTemperatureAlarm, setTemperatureResolution
readDevice, writeDevice
public OneWireContainer22()
OneWireContainer22
. Must call
setupContainer()
before using this new container.
This is one of the methods to construct a OneWireContainer22
.
The others are through creating a OneWireContainer22
with
parameters.
public OneWireContainer22(DSPortAdapter sourceAdapter, byte[] newAddress)
OneWireContainer22
with the provided adapter
object and the address of this One-Wire device.
This is one of the methods to construct a OneWireContainer22
.
The others are through creating a OneWireContainer22
with
different parameters types.sourceAdapter
- adapter object required to communicate with
this One-Wire devicenewAddress
- address of this One-Wire deviceAddress
,
OneWireContainer22()
,
OneWireContainer22(DSPortAdapter,long)
,
OneWireContainer22(DSPortAdapter,String)
public OneWireContainer22(DSPortAdapter sourceAdapter, long newAddress)
OneWireContainer22
with the provided adapter
object and the address of this One-Wire device.
This is one of the methods to construct a OneWireContainer22
.
The others are through creating a OneWireContainer22
with
different parameters types.sourceAdapter
- adapter object required to communicate with
this One-Wire devicenewAddress
- address of this One-Wire deviceAddress
,
OneWireContainer22()
,
OneWireContainer22(DSPortAdapter,byte[])
,
OneWireContainer22(DSPortAdapter,String)
public OneWireContainer22(DSPortAdapter sourceAdapter, java.lang.String newAddress)
OneWireContainer22
with the provided adapter
object and the address of this One-Wire device.
This is one of the methods to construct a OneWireContainer22
.
The others are through creating a OneWireContainer22
with
different parameters types.sourceAdapter
- adapter object required to communicate with
this One-Wire devicenewAddress
- address of this One-Wire deviceAddress
,
OneWireContainer22()
,
OneWireContainer22(DSPortAdapter,byte[])
,
OneWireContainer22(DSPortAdapter,long)
public java.lang.String getName()
OneWireContainer22
as a String
.
For example 'DS1822'.getName
in class OneWireContainer28
OneWireContainer22
namepublic java.lang.String getAlternateNames()
getAlternateNames
in class OneWireContainer28
OneWireContainer22
alternate namespublic java.lang.String getDescription()
OneWireContainer22
type.getDescription
in class OneWireContainer28
OneWireContainer22
functional descriptionCopyright © 1999-2012 Maxim Integrated Products. All Rights Reserved.