java.lang.Object
|
+--com.dalsemi.onewire.container.OneWireContainer
|
+--com.dalsemi.onewire.container.OneWireContainer28
|
+--com.dalsemi.onewire.container.OneWireContainer22
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)
TemperatureContainer
for temperature specific operations.
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.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 |
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.
OneWireContainer22(DSPortAdapter,byte[]),
OneWireContainer22(DSPortAdapter,long),
OneWireContainer22(DSPortAdapter,String)
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,
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)| Method Detail |
public String getName()
OneWireContainer22 as a String.
For example 'DS1822'.getName in class OneWireContainer28OneWireContainer22 namepublic String getAlternateNames()
getAlternateNames in class OneWireContainer28OneWireContainer22 alternate namespublic String getDescription()
OneWireContainer22 type.getDescription in class OneWireContainer28OneWireContainer22 functional description