X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Fchips%2Fcc2420_tkn154%2FCC2420AsyncSplitControl.nc;h=edeebfe6bdf05dafa16e192ac5a789b2c44b3ea8;hp=7688a55eaa13bfc927a1d84a35617b572238911e;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400 diff --git a/tos/chips/cc2420_tkn154/CC2420AsyncSplitControl.nc b/tos/chips/cc2420_tkn154/CC2420AsyncSplitControl.nc index 7688a55e..edeebfe6 100644 --- a/tos/chips/cc2420_tkn154/CC2420AsyncSplitControl.nc +++ b/tos/chips/cc2420_tkn154/CC2420AsyncSplitControl.nc @@ -73,57 +73,33 @@ */ /** - * An async version of the SplitControl interface. + * This interface is a mixture of a SplitControl/AsyncStdControl interface. * @author Jan Hauer */ interface CC2420AsyncSplitControl { /** - * Start this component and all of its subcomponents. Return - * values of SUCCESS will always result in a startDone() - * event being signalled. + * Start this component and all of its subcomponents. * - * @return SUCCESS if the device is already in the process of - * starting or the device was off and the device is now ready to turn - * on. After receiving this return value, you should expect a - * startDone event in the near future.
- * EBUSY if the component is in the middle of powering down - * i.e. a stop() command has been called, - * and a stopDone() event is pending
- * EALREADY if the device is already on
+ * @return SUCCESS if the component was started successfully.
* FAIL Otherwise */ async command error_t start(); - /** - * Notify caller that the component has been started and is ready to - * receive other commands. - * - * @param error -- SUCCESS if the component was successfully - * turned on, FAIL otherwise - */ - async event void startDone(error_t error); - /** - * Start this component and all of its subcomponents. Return - * values of SUCCESS will always result in a startDone() - * event being signalled. + * Stop this component and all of its subcomponents - iff this command + * succeeds then stopDone will signal the result of the stop + * operation. * - * @return SUCCESS if the device is already in the process of - * stopping or the device was on and the device is now ready to turn - * off. After receiving this return value, you should expect a - * stopDone event in the near future.
- * EBUSY if the component is in the middle of powering up - * i.e. a start() command has been called, - * and a startDone() event is pending
- * EALREADY if the device is already off
- * FAIL Otherwise + * @return SUCCESS Stop operation was started, stopDone will be signalled + * FAIL Otherwise (stopDone will not be signalled) */ async command error_t stop(); /** - * Notify caller that the component has been stopped. + * Notify caller that the component has been stopped. This event + * completes the stop() operation. * * @param error -- SUCCESS if the component was successfully * turned off, FAIL otherwise