|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.dalsemi.onewire.container.OneWireContainer
|
+--com.dalsemi.onewire.container.OneWireContainer26
The DS2438 Smart Battery Monitor provides several functions that are desirable to carry in a battery pack: a means of tagging a battery pack with a unique serial number, a direct-to-digital tmperature sensor which eliminates the need for thermistors in the pack, an A/D converter which measures the battery voltage and current, an integrated current accumulator which keeps a running total of all current going into and out of the battery, an elapsed time meter, and 40 bytes of nonvolatile EEPROM memory for storage of important parameters. Note: Sometimes the VAD input will report 10.23 V even if nothing is attached. This value is also the maximum voltage that part can report.
| Field Summary | |
static byte |
AD_FLAG
Flag to set/check the voltage A/D Input Select Bit with setFlag/getFlag When this bit is true the battery input is (VDD) is selected as input for the voltage A/D input. |
static byte |
ADB_FLAG
Flag to check whether or not the A/D converter is busy using getFlag(). |
static byte |
CA_FLAG
Flag to set/check the Current Accumulator bit with setFlag/getFlag. |
static int |
CHANNEL_VAD
Channel selector for the VAD input. |
static int |
CHANNEL_VDD
Channel selector for the VDD input. |
static byte |
EE_FLAG
Flag to set/check the Current Accumulator Shadow Selector bit with setFlag/getFlag. |
static byte |
IAD_FLAG
Flag to set/check the Current A/D Control bit with setFlag/getFlag. |
static byte |
NVB_FLAG
Flag to check whether or not an operation is being performed on the nonvolatile memory using getFlag. |
static byte |
TB_FLAG
Flag to check whether or not a temperature conversion is in progress using getFlag(). |
| Fields inherited from interface com.dalsemi.onewire.container.ADContainer |
ALARM_HIGH, ALARM_LOW |
| Fields inherited from interface com.dalsemi.onewire.container.TemperatureContainer |
ALARM_HIGH, ALARM_LOW |
| Constructor Summary | |
OneWireContainer26()
Default constructor |
|
OneWireContainer26(DSPortAdapter sourceAdapter,
byte[] newAddress)
Create a container with a provided adapter object and the address of the iButton or 1-Wire device. |
|
OneWireContainer26(DSPortAdapter sourceAdapter,
long newAddress)
Create a container with a provided adapter object and the address of the iButton or 1-Wire device. |
|
OneWireContainer26(DSPortAdapter sourceAdapter,
java.lang.String newAddress)
Create a container with a provided adapter object and the address of the iButton or 1-Wire device. |
|
| Method Summary | |
void |
calibrateCurrentADC()
Calibrate the current ADC. |
boolean |
canADMultiChannelRead()
Query to see if this A/D supports doing multiple voltage conversions at the same time. |
boolean |
canDisableClock()
Query to see if the clock can be disabled. |
void |
doADConvert(boolean[] doConvert,
byte[] state)
This method is used to perform voltage conversion on all specified channels. |
void |
doADConvert(int channel,
byte[] state)
This method is used to perform voltage conversion on all specified channels. |
void |
doTemperatureConvert(byte[] state)
Perform an temperature conversion. |
double |
getADAlarm(int channel,
int alarmType,
byte[] state)
This method is used to extract the alarm voltage value of the specified channel from the provided state buffer. |
boolean |
getADAlarmEnable(int channel,
int alarmType,
byte[] state)
This method is used to extract the alarm enable value of the specified channel from the provided state buffer. |
double |
getADRange(int channel,
byte[] state)
This method is used to extract the input voltage range of the specified channel from the provided state buffer. |
double[] |
getADRanges(int channel)
Query to get an array of available ranges for the specified A/D channel. |
double |
getADResolution(int channel,
byte[] state)
This method is used to extract the conversion resolution of the specified channel from the provided state buffer expressed in volts. |
double[] |
getADResolutions(int channel,
double range)
Query to get an array of available resolutions based on the specified range on the specified A/D channel. |
double[] |
getADVoltage(byte[] state)
This method is used to read the voltage values. |
double |
getADVoltage(int channel,
byte[] state)
This method is used to read a channels voltage value. |
java.lang.String |
getAlternateNames()
Return the alternate Dallas Semiconductor part number or name. |
int |
getCCA()
Retrieves the current CCA value in mVHr. |
long |
getClock(byte[] state)
This method extracts the Clock Value in milliseconds from the state data retrieved from the 'readDevice()' method. |
long |
getClockAlarm(byte[] state)
This method extracts the Clock Alarm Value from the provided state data retrieved from the 'readDevice()' method. |
long |
getClockResolution()
Query to get the clock resolution in milliseconds |
double |
getCurrent(byte[] state)
Get the instantaneous current. |
int |
getDCA()
Retrieves the value of the DCA in mVHr. |
java.lang.String |
getDescription()
Return a short description of the function of the iButton type. |
long |
getDisconnectTime(byte[] state)
This method extracts the Clock Value in milliseconds from the state data retrieved from the 'readDevice()' method. |
long |
getEndOfChargeTime(byte[] state)
This method extracts the Clock Value in milliseconds from the state data retrieved from the 'readDevice()' method. |
boolean |
getFlag(byte flagToGet)
Checks the specified flag in the status/configuration register and returns its status as a boolean. |
int |
getICA()
Retrieves the current ICA value in mVHr. |
double |
getMaxTemperature()
Query to get the maximum temperature in degrees C. |
double |
getMinTemperature()
Query to get the minimum temperature in degrees C. |
java.lang.String |
getName()
Returns the Dallas Semiconductor part number of the iButton as a string. |
int |
getNumberADChannels()
Query to get the number of channels supported by this A/D. |
double |
getRemainingCapacity()
Calculate the remaining capacity in mAH as outlined in the data sheet. |
double |
getSenseResistor()
Get the value used for the sense resistor in the getCurrent() calculations. |
double |
getTemperature(byte[] state)
This method extracts the Temperature Value in degrees C from the state data retrieved from the 'readDevice()' method. |
double |
getTemperatureAlarm(int alarmType,
byte[] state)
This method extracts the specified Alarm value in degrees C from the state data retrieved from the 'readDevice()' method. |
double |
getTemperatureAlarmResolution()
Query to get the high/low resolution in degrees C. |
double |
getTemperatureResolution(byte[] state)
This method extracts the current resolution in degrees C from the state data retrieved from the 'readDevice()' method. |
double[] |
getTemperatureResolutions()
Query to get an array of available resolutions in degrees C. |
boolean |
hasADAlarmed(int channel,
int alarmType,
byte[] state)
This method is used to check the alarm event value of the specified channel from the provided state buffer. |
boolean |
hasADAlarms()
Query to see if this A/D measuring device has high/low alarms. |
boolean |
hasClockAlarm()
Query to see if the clock has an alarm feature. |
boolean |
hasSelectableTemperatureResolution()
Query to see if this device has selectable resolution. |
boolean |
hasTemperatureAlarms()
Query to see if this temperature measuring device has high/low trip alarms. |
boolean |
isCharging(byte[] state)
Determines if the battery is charging and returns a boolean. |
boolean |
isClockAlarmEnabled(byte[] state)
This method checks if the Clock Alarm is enabled from the provided state data retrieved from the 'readDevice()' method. |
boolean |
isClockAlarming(byte[] state)
This method checks if the Clock Alarm flag has been set from the state data retrieved from the 'readDevice()' method. |
boolean |
isClockRunning(byte[] state)
This method checks if the device's oscilator is enabled. |
byte[] |
readDevice()
This method retrieves the 1-Wire device sensor state. |
byte[] |
readPage(int page)
Reads the specified 8 byte page and returns the data in an array. |
void |
setADAlarm(int channel,
int alarmType,
double alarm,
byte[] state)
This method is used to set the alarm voltage value of the specified channel in the provided state buffer. |
void |
setADAlarmEnable(int channel,
int alarmType,
boolean alarmEnable,
byte[] state)
This method is used to set the alarm enable value of the specified channel in the provided state buffer. |
void |
setADRange(int channel,
double range,
byte[] state)
This method is used to set the input range for the specified channel in the provided state buffer. |
void |
setADResolution(int channel,
double resolution,
byte[] state)
This method is used to set the conversion resolution value for the specified channel in the provided state buffer. |
void |
setCCA(int ccaValue)
Set the value of the CCA. |
void |
setClock(long time,
byte[] state)
This method sets the Clock time in the provided state data Use the method 'writeDevice()' with this data to finalize the change to the device. |
void |
setClockAlarm(long time,
byte[] state)
This method sets the Clock Alarm in the provided state data. |
void |
setClockAlarmEnable(boolean alarmEnable,
byte[] state)
This method sets the Clock Alarm enable. |
void |
setClockRunEnable(boolean runEnable,
byte[] state)
This method sets the oscillator enable to the specified value. |
void |
setDCA(int dcaValue)
Set the value of the DCA. |
void |
setFlag(byte flagToSet,
boolean flagValue)
Set one of the flags in the STATUS/CONFIGURATION register. |
void |
setICA(int icaValue)
Set the value of the ICA. |
void |
setSenseResitor(double resistance)
Set the value of the sense resistor you are using to determine battery current. |
void |
setTemperatureAlarm(int alarmType,
double alarmValue,
byte[] state)
This method sets the alarm value in degrees C in the provided state data. |
void |
setTemperatureResolution(double resolution,
byte[] state)
This method sets the current resolution in degrees C in the provided state data. |
void |
setThreshold(byte thresholdValue)
Set the minimum current measurement magnitude for which the ICA/CCA/DCA are incremented. |
void |
writeDevice(byte[] state)
This method write the 1-Wire device sensor state that have been changed by the 'set' methods. |
void |
writePage(int page,
byte[] source,
int offset)
Writes a page of memory to the DS2438. |
| Methods inherited from class com.dalsemi.onewire.container.OneWireContainer |
doSpeed, getAdapter, getAddress, getAddressAsLong, getAddressAsString, getMaxSpeed, getMemoryBanks, isAlarming, isPresent, setSpeed, setupContainer, setupContainer, setupContainer |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int CHANNEL_VDD
public static final int CHANNEL_VAD
public static final byte IAD_FLAG
public static final byte CA_FLAG
public static final byte EE_FLAG
public static final byte AD_FLAG
public static final byte TB_FLAG
public static final byte NVB_FLAG
public static final byte ADB_FLAG
| Constructor Detail |
public OneWireContainer26()
public OneWireContainer26(DSPortAdapter sourceAdapter,
byte[] newAddress)
sourceAdapter - adapter object required to communicate with
this iButton.newAddress - address of this 1-Wire device
public OneWireContainer26(DSPortAdapter sourceAdapter,
long newAddress)
sourceAdapter - adapter object required to communicate with
this iButton.newAddress - address of this 1-Wire device
public OneWireContainer26(DSPortAdapter sourceAdapter,
java.lang.String newAddress)
sourceAdapter - adapter object required to communicate with
this iButton.newAddress - address of this 1-Wire device| Method Detail |
public java.lang.String getName()
getName in class OneWireContainerString representation of the iButton namepublic java.lang.String getAlternateNames()
getAlternateNames in class OneWireContainerString representation of the alternate names.public java.lang.String getDescription()
getDescription in class OneWireContainerString representation of the function description.public void setSenseResitor(double resistance)
resistance - Value of the sense resistor in Ohms.public double getSenseResistor()
public byte[] readPage(int page)
throws OneWireIOException,
OneWireException,
java.lang.IllegalArgumentException
int - the page number to read.page - byte[] containing the 8 bytes that make up the page.OneWireIOException - Error reading data [ recoverable ]OneWireException - Could not find part [ fatal ]java.lang.IllegalArgumentException - Bad parameters passed [recoverable ]
public void writePage(int page,
byte[] source,
int offset)
throws OneWireIOException,
OneWireException
int - indicating the page number.byte[] - containing the 8 bytes of the page.offset - page - source - OneWireIOException - Error writing data [ recoverable ]OneWireException - Could not find part [ fatal ]java.lang.IllegalArgumentException - Bad parameters passed [recoverable ]
public boolean getFlag(byte flagToGet)
throws OneWireIOException,
OneWireException,
java.lang.IllegalArgumentException
byte - containing the bitmask.
Acceptable parameters: IAD_FLAG, CA_FLAG, EE_FLAG, AD_FLAG, TB_FLAG, NVB_FLAG, ADB_FLAG. (may be ORed with | to check the status of more than one).
flagToGet - OneWireIOException - Error reading data [ recoverable ]OneWireException - Could not find part [ fatal ]java.lang.IllegalArgumentException - Bad parameters passed [recoverable ]
public void setFlag(byte flagToSet,
boolean flagValue)
throws OneWireIOException,
OneWireException,
java.lang.IllegalArgumentException
byte - with bitmask of the flag to set.
Acceptable parameters: IAD_FLAG, CA_FLAG, EE_FLAG, AD_FLAG, TB_FLAG, NVB_FLAG, ADB_FLAG.
boolean - indicating the value of the flag to set.flagToSet - flagValue - OneWireIOException - Error setting flag [ recoverable ]OneWireException - Could not find part [ fatal ]java.lang.IllegalArgumentException - Bad parameters passed [recoverable ]public double getCurrent(byte[] state)
state - double containing the current in Amperes.OneWireIOException - Error reading data [ recoverable ]OneWireException - Could not find part [ fatal ]java.lang.IllegalArgumentException - Bad parameters passed [recoverable ]
public double getRemainingCapacity()
throws OneWireIOException,
OneWireException,
java.lang.IllegalArgumentException
double containing the mAH of battery capacity remaining.OneWireIOException - Error reading data [ recoverable ]OneWireException - Could not find part [ fatal ]java.lang.IllegalArgumentException - Bad parameters passed [recoverable ]
public boolean isCharging(byte[] state)
throws OneWireIOException,
OneWireException,
java.lang.IllegalArgumentException
state - boolean indicating recharging status.OneWireIOException - Error reading data [ recoverable ]OneWireException - Could not find part [ fatal ]java.lang.IllegalArgumentException - Bad parameters passed [recoverable ]
public void calibrateCurrentADC()
throws OneWireIOException,
OneWireException,
java.lang.IllegalArgumentException
OneWireIOException - Error calibrating [ recoverable ]OneWireException - Could not find part [ fatal ]java.lang.IllegalArgumentException - Bad parameters passed [recoverable ]
public void setThreshold(byte thresholdValue)
throws OneWireIOException,
OneWireException
byte - specifying whether 0,2,4 or 8 should be the
minimum number of bits a current measurement must have to be accumulated.
Only 0,2,4 and 8 are valid parameters.
thresholdValue - OneWireIOException - Error setting the threshold [ recoverable ]OneWireException - Could not find part [ fatal ]java.lang.IllegalArgumentException - Bad parameters passed [recoverable ]
public int getICA()
throws OneWireIOException,
OneWireException,
java.lang.IllegalArgumentException
int with the value in the ICA register.OneWireIOException - Error reading data [ recoverable ]OneWireException - Could not find part [ fatal ]java.lang.IllegalArgumentException - Bad parameters passed [recoverable ]
public int getCCA()
throws OneWireIOException,
OneWireException,
java.lang.IllegalArgumentException
int representation of the CCA value.OneWireIOException - Error reading data [ recoverable ]OneWireException - Could not find part [ fatal ]java.lang.IllegalArgumentException - Bad parameters passed [recoverable ]
public int getDCA()
throws OneWireIOException,
OneWireException,
java.lang.IllegalArgumentException
int representation of the DCA value.OneWireIOException - Error reading data [ recoverable ]OneWireException - Could not find part [ fatal ]java.lang.IllegalArgumentException - Bad parameters passed [recoverable ]
public void setICA(int icaValue)
throws OneWireIOException,
OneWireException,
java.lang.IllegalArgumentException
int - ranging from 0-255 to store in ICA.icaValue - OneWireIOException - Error writing data [ recoverable ]OneWireException - Could not find part [ fatal ]java.lang.IllegalArgumentException - Bad parameters passed [recoverable ]
public void setCCA(int ccaValue)
throws OneWireIOException,
OneWireException,
java.lang.IllegalArgumentException
int - ranging from 0-255 to store in CCA.ccaValue - OneWireIOException - Error writing data [ recoverable ]OneWireException - Could not find part [ fatal ]java.lang.IllegalArgumentException - Bad parameters passed [recoverable ]
public void setDCA(int dcaValue)
throws OneWireIOException,
OneWireException,
java.lang.IllegalArgumentException
int - ranging from 0-255 to store in DCA.dcaValue - OneWireIOException - Error writing data [ recoverable ]OneWireException - Could not find part [ fatal ]java.lang.IllegalArgumentException - Bad parameters passed [recoverable ]public long getDisconnectTime(byte[] state)
state - - byte array of device statelong<\code> time - in milliseconds that have
occured since 1970.public long getEndOfChargeTime(byte[] state)
state - - byte array of device statelong<\code> time - in milliseconds that have
occured since 1970.public int getNumberADChannels()
getNumberADChannels in interface ADContainerpublic boolean hasADAlarms()
hasADAlarms in interface ADContainerpublic double[] getADRanges(int channel)
getADRanges in interface ADContainerchannel - - integer specifying channel in the range
[0 to (getNumberChannels() - 1)].
public double[] getADResolutions(int channel,
double range)
getADResolutions in interface ADContainerchannel - - integer specifying channel in the range
[0 to (getNumberChannels() - 1)].range - public boolean canADMultiChannelRead()
canADMultiChannelRead in interface ADContainer
public void doADConvert(int channel,
byte[] state)
throws OneWireIOException,
OneWireException
doADConvert in interface ADContainerchannel - - integer specifying channel in the range
[0 to (getNumberChannels() - 1)].state - - byte array of the current state of the
device returned from 'readDevice()'.OneWireIOException - OneWireException -
public void doADConvert(boolean[] doConvert,
byte[] state)
throws OneWireIOException,
OneWireException
doADConvert in interface ADContainerdoConvert - - boolean array representing which channels
to perform conversion on.state - - byte array of the current state of the
device returned from 'readDevice()'.OneWireIOException - OneWireException -
public double[] getADVoltage(byte[] state)
throws OneWireIOException,
OneWireException
getADVoltage in interface ADContainerstate - - byte array of the current state of the
device returned from 'readDevice()'.OneWireIOException - OneWireException -
public double getADVoltage(int channel,
byte[] state)
throws OneWireIOException,
OneWireException
getADVoltage in interface ADContainerchannel - - integer specifying channel in the range
[0 to (getNumberChannels() - 1)].state - - byte array of the current state of the
device returned from 'readDevice()'.OneWireIOException - OneWireException -
public double getADAlarm(int channel,
int alarmType,
byte[] state)
throws OneWireException
getADAlarm in interface ADContainerchannel - - integer specifying channel in the range
[0 to (getNumberChannels() - 1)].alarmType - - int, representing the desired alarm, ALARM_HIGH (1)
or ALARM_LOW (0)state - - byte array of the current state of the
device returned from 'readDevice()'.
public boolean getADAlarmEnable(int channel,
int alarmType,
byte[] state)
throws OneWireException
getADAlarmEnable in interface ADContainerchannel - - integer specifying channel in the range
[0 to (getNumberChannels() - 1)].alarmType - - int, representing the desired alarm, ALARM_HIGH (1)
or ALARM_LOW (0)state - - byte array of the current state of the state
returned from 'readDevice()'.
public boolean hasADAlarmed(int channel,
int alarmType,
byte[] state)
throws OneWireException
hasADAlarmed in interface ADContainerchannel - - integer specifying channel in the range
[0 to (getNumberChannels() - 1)].alarmType - - int, representing the desired alarm, ALARM_HIGH (1)
or ALARM_LOW (0)state - - byte array of the current state of the state
returned from 'readDevice()'.
public double getADResolution(int channel,
byte[] state)
getADResolution in interface ADContainerchannel - - integer specifying channel in the range
[0 to (getNumberChannels() - 1)].state - - byte array of the current state of the state
returned from 'readDevice()'.
public double getADRange(int channel,
byte[] state)
getADRange in interface ADContainerchannel - - integer specifying channel in the range
[0 to (getNumberChannels() - 1)].state - - byte array of the current state of the state
returned from 'readDevice()'.
public void setADAlarm(int channel,
int alarmType,
double alarm,
byte[] state)
throws OneWireException
setADAlarm in interface ADContainerchannel - - integer specifying channel in the range
[0 to (getNumberChannels() - 1)].alarmType - - int, representing the desired alarm, ALARM_HIGH (1)
or ALARM_LOW (0)alarm - - double, alarm value (will be reduced to 8 bit resolution).state - - byte array of the current state of the
device returned from 'readDevice()'.
public void setADAlarmEnable(int channel,
int alarmType,
boolean alarmEnable,
byte[] state)
throws OneWireException
setADAlarmEnable in interface ADContainerchannel - - integer specifying channel in the range
[0 to (getNumberChannels() - 1)].alarmType - - int, representing the desired alarm, ALARM_HIGH (1)
or ALARM_LOW (0)alarmEnable - - boolean, alarm enable valuestate - - byte array of the current state of the
device returned from 'readDevice()'.
public void setADResolution(int channel,
double resolution,
byte[] state)
setADResolution in interface ADContainerchannel - - integer specifying channel in the range
[0 to (getNumberChannels() - 1)].resolution - - double, resolution to use in voltsstate - - byte array of the current state of the
device returned from 'readDevice()'.
public void setADRange(int channel,
double range,
byte[] state)
setADRange in interface ADContainerchannel - - integer specifying channel in the range
[0 to (getNumberChannels() - 1)].range - - double, representing the max volt range, use
'getRanges()' method to get available rangesstate - - byte array of the current state of the
device returned from 'readDevice()'.
public byte[] readDevice()
throws OneWireIOException,
OneWireException
readDevice in interface OneWireSensorbyte[]<\code> 1-Wire device sensor state- Throws:
OneWireIOException - OneWireException -
public void writeDevice(byte[] state)
throws OneWireIOException,
OneWireException
writeDevice in interface OneWireSensorstate - - byte array of clock register page contentsOneWireIOException - OneWireException - public boolean hasTemperatureAlarms()
hasTemperatureAlarms in interface TemperatureContainerpublic boolean hasSelectableTemperatureResolution()
hasSelectableTemperatureResolution in interface TemperatureContainerpublic double[] getTemperatureResolutions()
getTemperatureResolutions in interface TemperatureContainer
public double getTemperatureAlarmResolution()
throws OneWireException
getTemperatureAlarmResolution in interface TemperatureContainerpublic double getMaxTemperature()
getMaxTemperature in interface TemperatureContainerpublic double getMinTemperature()
getMinTemperature in interface TemperatureContainer
public void doTemperatureConvert(byte[] state)
throws OneWireIOException,
OneWireException
doTemperatureConvert in interface TemperatureContainerstate - - byte array of device stateOneWireIOException - OneWireException - public double getTemperature(byte[] state)
getTemperature in interface TemperatureContainerstate - - byte array of device state
public double getTemperatureAlarm(int alarmType,
byte[] state)
throws OneWireException
getTemperatureAlarm in interface TemperatureContaineralarmType - - integer, indicating trip type ALARM_HIGH (1)
or ALARM_LOW (0)state - - byte array of device statepublic double getTemperatureResolution(byte[] state)
getTemperatureResolution in interface TemperatureContainerstate - - byte array of device state
public void setTemperatureAlarm(int alarmType,
double alarmValue,
byte[] state)
throws OneWireException,
OneWireIOException
setTemperatureAlarm in interface TemperatureContaineralarmType - - integer, indicating trip type ALARM_HIGH (1)
or ALARM_LOW (0)alarmValue - - double, high trip value in degrees Cstate - - byte array of device state
public void setTemperatureResolution(double resolution,
byte[] state)
throws OneWireException,
OneWireIOException
setTemperatureResolution in interface TemperatureContainerresolution - - double, temperature resolution in degrees Cstate - - byte array of device statepublic boolean hasClockAlarm()
hasClockAlarm in interface ClockContainerpublic boolean canDisableClock()
canDisableClock in interface ClockContainerpublic long getClockResolution()
getClockResolution in interface ClockContainerpublic long getClock(byte[] state)
getClock in interface ClockContainerstate - - byte array of device statelong<\code> time - in milliseconds that have
occured since 1970.
public long getClockAlarm(byte[] state)
throws OneWireException
getClockAlarm in interface ClockContainerstate - - byte array of device statelong<\code> time - in milliseconds that have
the clock alarm is set to.public boolean isClockAlarming(byte[] state)
isClockAlarming in interface ClockContainerstate - - byte array of device stateboolean<\code> true if clock is alarmingpublic boolean isClockAlarmEnabled(byte[] state)
isClockAlarmEnabled in interface ClockContainerstate - - byte array of device stateboolean<\code> true if clock alarm is enabledpublic boolean isClockRunning(byte[] state)
isClockRunning in interface ClockContainerstate - - byte array of device stateboolean<\code> true
public void setClock(long time,
byte[] state)
setClock in interface ClockContainertime - - long<\code> milliseconds the user
wants the Clock set to.state - - byte array of device state
public void setClockAlarm(long time,
byte[] state)
throws OneWireException
setClockAlarm in interface ClockContainertime - - long<\code> milliseconds the user
wants the Clock alarm set to.state - - byte array of device state
public void setClockRunEnable(boolean runEnable,
byte[] state)
throws OneWireException
setClockRunEnable in interface ClockContainerrunEnable - - boolean, true if want the clock oscillator to
be enabled.state - - byte array of device state
public void setClockAlarmEnable(boolean alarmEnable,
byte[] state)
throws OneWireException
setClockAlarmEnable in interface ClockContaineralarmEnable - - boolean, true to enable the clock alarmstate - - byte array of device state
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||