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
- public class OneWireContainer22
- extends OneWireContainer28
- implements TemperatureContainer
1-Wire container for temperature iButton which measures temperatures
from -55°C to +125°C, DS1822. This container encapsulates the
functionality of the iButton family type 22 (hex)
Features
- Measures temperatures from -55°C to +125°C. Fahrenheit
equivalent is -67°F to +257°F
- Power supply range is 3.0V to 5.5V
- Zero standby power
- +/- 2°C accuracy from -10°C to +85°C
- 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
- http://pdfserv.maxim-ic.com/arpdf/DS1822.pdf
- Version:
- 1.10, 26 September 2001
- Author:
- DalSemi
- See Also:
TemperatureContainer
Constructor Summary |
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,
String newAddress)
Creates a OneWireContainer22 with the provided adapter
object and the address of this One-Wire device. |
Method Summary |
String |
getAlternateNames()
Retrieves the alternate Dallas Semiconductor part numbers or names. |
String |
getDescription()
Retrieves a short description of the function of this
OneWireContainer22 type. |
String |
getName()
Retrieves the Dallas Semiconductor part number of this
OneWireContainer22 as a String . |
Methods inherited from class com.dalsemi.onewire.container.OneWireContainer28 |
convertToFahrenheit, 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 interface com.dalsemi.onewire.container.TemperatureContainer |
doTemperatureConvert, getMaxTemperature, getMinTemperature, getTemperature, getTemperatureAlarm, getTemperatureAlarmResolution, getTemperatureResolution, getTemperatureResolutions, hasSelectableTemperatureResolution, hasTemperatureAlarms, setTemperatureAlarm, setTemperatureResolution |
OneWireContainer22
public OneWireContainer22()
- Creates an empty
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.
- See Also:
OneWireContainer22(DSPortAdapter,byte[])
,
OneWireContainer22(DSPortAdapter,long)
,
OneWireContainer22(DSPortAdapter,String)
OneWireContainer22
public OneWireContainer22(DSPortAdapter sourceAdapter,
byte[] newAddress)
- Creates a
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.
- Parameters:
sourceAdapter
- adapter object required to communicate with
this One-Wire devicenewAddress
- address of this One-Wire device- See Also:
Address
,
OneWireContainer22()
,
OneWireContainer22(DSPortAdapter,long)
,
OneWireContainer22(DSPortAdapter,String)
OneWireContainer22
public OneWireContainer22(DSPortAdapter sourceAdapter,
long newAddress)
- Creates a
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.
- Parameters:
sourceAdapter
- adapter object required to communicate with
this One-Wire devicenewAddress
- address of this One-Wire device- See Also:
Address
,
OneWireContainer22()
,
OneWireContainer22(DSPortAdapter,byte[])
,
OneWireContainer22(DSPortAdapter,String)
OneWireContainer22
public OneWireContainer22(DSPortAdapter sourceAdapter,
String newAddress)
- Creates a
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.
- Parameters:
sourceAdapter
- adapter object required to communicate with
this One-Wire devicenewAddress
- address of this One-Wire device- See Also:
Address
,
OneWireContainer22()
,
OneWireContainer22(DSPortAdapter,byte[])
,
OneWireContainer22(DSPortAdapter,long)
getName
public String getName()
- Retrieves the Dallas Semiconductor part number of this
OneWireContainer22
as a String
.
For example 'DS1822'.
- Overrides:
getName
in class OneWireContainer28
- Returns:
- this
OneWireContainer22
name
getAlternateNames
public String getAlternateNames()
- Retrieves the alternate Dallas Semiconductor 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 class OneWireContainer28
- Returns:
- this
OneWireContainer22
alternate names
getDescription
public String getDescription()
- Retrieves a short description of the function of this
OneWireContainer22
type.
- Overrides:
getDescription
in class OneWireContainer28
- Returns:
OneWireContainer22
functional description
Copyright © 1999-2003 Dallas Semiconductor. All Rights Reserved.