Package com.dalsemi.onewire.container
Class OneWireContainer22
java.lang.Object
com.dalsemi.onewire.container.OneWireContainer
com.dalsemi.onewire.container.OneWireContainer28
com.dalsemi.onewire.container.OneWireContainer22
- All Implemented Interfaces:
OneWireSensor
,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)
Features
- Measures temperatures from -55@htmlonly °C @endhtmlonly to +125@htmlonly °C @endhtmlonly. Fahrenheit equivalent is -67@htmlonly °F @endhtmlonly to +257@htmlonly °F @endhtmlonly
- Power supply range is 3.0V to 5.5V
- Zero standby power
- +/- 2@htmlonly °C @endhtmlonly accuracy from -10@htmlonly °C @endhtmlonly to +85@htmlonly °C @endhtmlonly
- Thermometer resolution programmable from 9 to 12 bits
- Converts 12-bit temperature to digital word in 750 ms (max.)
- User-definable, nonvolatile temperature alarm settings
- Alarm search command identifies and addresses devices whose temperature is outside of programmed limits (temperature alarm condition)
- Software compatible with DS18B20 (family type 28 hex)
Usage
- See the usage example in
TemperatureContainer
for temperature specific operations.
DataSheet
- See Also:
-
Field Summary
Fields inherited from class com.dalsemi.onewire.container.OneWireContainer28
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
Fields inherited from class com.dalsemi.onewire.container.OneWireContainer
adapter, address, speed, speedFallBackOK
Fields inherited from interface com.dalsemi.onewire.container.TemperatureContainer
ALARM_HIGH, ALARM_LOW
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an emptyOneWireContainer22
.OneWireContainer22
(DSPortAdapter sourceAdapter, byte[] newAddress) Creates aOneWireContainer22
with the provided adapter object and the address of this One-Wire device.OneWireContainer22
(DSPortAdapter sourceAdapter, long newAddress) Creates aOneWireContainer22
with the provided adapter object and the address of this One-Wire device.OneWireContainer22
(DSPortAdapter sourceAdapter, String newAddress) Creates aOneWireContainer22
with the provided adapter object and the address of this One-Wire device. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the alternate Maxim Integrated Products part numbers or names.Retrieves a short description of the function of thisOneWireContainer22
type.getName()
Retrieves the Maxim Integrated Products part number of thisOneWireContainer22
as aString
.Methods inherited from class com.dalsemi.onewire.container.OneWireContainer28
copyScratchpad, doTemperatureConvert, getMaxTemperature, getMinTemperature, getTemperature, getTemperatureAlarm, getTemperatureAlarmResolution, getTemperatureResolution, getTemperatureResolutions, hasSelectableTemperatureResolution, hasTemperatureAlarms, isExternalPowerSupplied, readDevice, readScratchpad, recallE2, setTemperatureAlarm, setTemperatureResolution, writeDevice, writeScratchpad
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
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.dalsemi.onewire.container.OneWireSensor
readDevice, writeDevice
Methods inherited from interface com.dalsemi.onewire.container.TemperatureContainer
doTemperatureConvert, getMaxTemperature, getMinTemperature, getTemperature, getTemperatureAlarm, getTemperatureAlarmResolution, getTemperatureResolution, getTemperatureResolutions, hasSelectableTemperatureResolution, hasTemperatureAlarms, setTemperatureAlarm, setTemperatureResolution
-
Constructor Details
-
OneWireContainer22
public OneWireContainer22()Creates an emptyOneWireContainer22
. Must callsetupContainer()
before using this new container.This is one of the methods to construct a
OneWireContainer22
. The others are through creating aOneWireContainer22
with parameters. -
OneWireContainer22
Creates aOneWireContainer22
with the provided adapter object and the address of this One-Wire device. This is one of the methods to construct aOneWireContainer22
. The others are through creating aOneWireContainer22
with different parameters types.- Parameters:
sourceAdapter
- adapter object required to communicate with this One-Wire devicenewAddress
- address of this One-Wire device- See Also:
-
OneWireContainer22
Creates aOneWireContainer22
with the provided adapter object and the address of this One-Wire device. This is one of the methods to construct aOneWireContainer22
. The others are through creating aOneWireContainer22
with different parameters types.- Parameters:
sourceAdapter
- adapter object required to communicate with this One-Wire devicenewAddress
- address of this One-Wire device- See Also:
-
OneWireContainer22
Creates aOneWireContainer22
with the provided adapter object and the address of this One-Wire device. This is one of the methods to construct aOneWireContainer22
. The others are through creating aOneWireContainer22
with different parameters types.- Parameters:
sourceAdapter
- adapter object required to communicate with this One-Wire devicenewAddress
- address of this One-Wire device- See Also:
-
-
Method Details
-
getName
Retrieves the Maxim Integrated Products part number of thisOneWireContainer22
as aString
. For example 'DS1822'.- Overrides:
getName
in classOneWireContainer28
- Returns:
- this
OneWireContainer22
name
-
getAlternateNames
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 classOneWireContainer28
- Returns:
- this
OneWireContainer22
alternate names
-
getDescription
Retrieves a short description of the function of thisOneWireContainer22
type.- Overrides:
getDescription
in classOneWireContainer28
- Returns:
OneWireContainer22
functional description
-