|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISleepManager
Method Summary | |
---|---|
void |
disableDeepSleep()
Disable deep sleep mode |
void |
disableDiagnosticMode()
When diagnostic mode is disabled, a SPOT will not simulate deep sleep when USB is connected. |
void |
enableDeepSleep()
Enable deep sleep mode |
void |
enableDeepSleep(boolean b)
Conditionally enable/disable deep sleep mode |
void |
enableDiagnosticMode()
In diagnostic mode, a SPOT will simulate deep sleep even when USB is connected. |
void |
ensureDeepSleep(long sleepTime)
If Thread.sleep would result in a deep sleep of the specified time, then do that sleep. |
int |
getDeepSleepCount()
Get deep sleep count |
long |
getMaximumShallowSleepTime()
Find out the maximum sleep time that will cause a shallow sleep. |
long |
getMinimumDeepSleepTime()
Find out the minimum sleep time that will cause a deep sleep. |
long |
getTotalDeepSleepTime()
Get the total time in milliseconds that the SPOT has spent in deep sleep since it was started. |
long |
getTotalShallowSleepTime()
Get the total time in milliseconds that the SPOT has spent in shallow sleep since it was started. |
long |
getUpTime()
Get the total time in milliseconds since the SPOT was started. |
boolean |
isDeepSleepEnabled()
|
boolean |
isInDiagnosticMode()
|
void |
resetMinimumDeepSleepTime()
After each deep sleep the minimum deep sleep time is adjusted to take account of how long the drivers took to tear down and set up. |
void |
setTracing(boolean tracingEnabled)
Set whether to display detailed trace information during deep sleep tear down and setup. |
Method Detail |
---|
int getDeepSleepCount()
void enableDeepSleep()
void enableDeepSleep(boolean b)
b
- enable deep sleep if true, disable otherwiselong getMinimumDeepSleepTime()
getMaximumShallowSleepTime()
. Note also that the value
returned by this call is not a constant: the value can increase during execution
if drivers take longer than expected to tear down or set up.
long getMaximumShallowSleepTime()
getMinimumDeepSleepTime()
void disableDeepSleep()
void enableDiagnosticMode()
void disableDiagnosticMode()
boolean isInDiagnosticMode()
enableDiagnosticMode()
boolean isDeepSleepEnabled()
void setTracing(boolean tracingEnabled)
tracingEnabled
- void ensureDeepSleep(long sleepTime) throws UnableToDeepSleepException
sleepTime
- time to sleep in millis
UnableToDeepSleepException
void resetMinimumDeepSleepTime()
long getTotalShallowSleepTime()
long getTotalDeepSleepTime()
long getUpTime()
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |