Interface: moteiv.tos.interfaces.PowerControl
interface PowerControl
Interface for starting and stopping components that are under
automatic shutdown for power management purposes. Using PowerControl
can wake the component out of its shutdown state. If the system is
already running and start() is called, a startDone() event will be
signalled immediately. The same semantic is true for stop() and stopDone().
- Author:
-
Joe Polastre, Moteiv Corporation <info@moteiv.com>
-
Cory Sharp, Moteiv Corporation <cory@moteiv.com>
Commands
command result_t start()
command result_t stop()
Events
event void started()
event void stopped()
Commands - Details
start
command result_t start()
- Returns:
-
SUCCESS if the system is now starting or is already running, FAIL
if the subsystem will not start.
stop
command result_t stop()
- Returns:
-
SUCCESS if the subsystem is going to shutdown, FAIL if the
subsystem is going to stay awake.
Events - Details
started
event void started()
stopped
event void stopped()