Interface: moteiv.tos.interfaces.PowerKeepAlive
interface PowerKeepAlive
Interface for components that implement an automatic shutdown
power management policy. Services are signalled with the shutdown
event before entering a low power state. If a service immediately
calls the keepAlive command, the component will remain awake.
- Author:
-
Joe Polastre, Moteiv Corporation <info@moteiv.com>
-
Cory Sharp, Moteiv Corporation <info@moteiv.com>
Commands
command bool isAlive()
command result_t keepAlive()
Events
event void shutdown()
Commands - Details
isAlive
command bool isAlive()
- Returns:
-
TRUE if the system is alive, FALSE otherwise.
keepAlive
command result_t keepAlive()
- Returns:
-
SUCCESS if the system has remained awake or if the system will
start due to the keep alive command. FAIL if the system
has already shut down or if the request cannot be satisfied
at this time.
Events - Details
shutdown
event void shutdown()