Interface: tos.interfaces.AsyncStdControl
interface AsyncStdControl
Please refer to TEP 115 for more information about this interface and its
intended use.
This is the asynchronous counterpart to the StdContol interface. It
should be used for switching between the on and off power states of
the component providing it. This interface differs from the
StdControl interface only in the fact that any of its commands can
be called from asynchronous context.
- Author:
-
Joe Polastre
-
Kevin Klues (klueska@cs.wustl.edu)
Commands
command error_t start()
command error_t stop()
Commands - Details
start
command error_t start()
- Returns:
-
SUCCESS if the component was either already on or was
successfully turned on
FAIL otherwise
stop
command error_t stop()
- Returns:
-
SUCCESS if the component was either already off or was
successfully turned off
FAIL otherwise