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

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

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 interface com.dalsemi.onewire.container.TemperatureContainer
ALARM_HIGH, ALARM_LOW
 
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 class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.dalsemi.onewire.container.TemperatureContainer
doTemperatureConvert, getMaxTemperature, getMinTemperature, getTemperature, getTemperatureAlarm, getTemperatureAlarmResolution, getTemperatureResolution, getTemperatureResolutions, hasSelectableTemperatureResolution, hasTemperatureAlarms, setTemperatureAlarm, setTemperatureResolution
 
Methods inherited from interface com.dalsemi.onewire.container.OneWireSensor
readDevice, writeDevice
 

Constructor Detail

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 device
newAddress - 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 device
newAddress - 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 device
newAddress - address of this One-Wire device
See Also:
Address, OneWireContainer22(), OneWireContainer22(DSPortAdapter,byte[]), OneWireContainer22(DSPortAdapter,long)
Method Detail

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.