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() Start this component and all of its subcomponents.
command error_t stop() Stop the component and any pertinent subcomponents (not all subcomponents may be turned off due to wakeup timers, etc.).

Commands - Details

start

command error_t start()

Start this component and all of its subcomponents.

Returns:
SUCCESS if the component was either already on or was successfully turned on
FAIL otherwise

stop

command error_t stop()

Stop the component and any pertinent subcomponents (not all subcomponents may be turned off due to wakeup timers, etc.).

Returns:
SUCCESS if the component was either already off or was successfully turned off
FAIL otherwise