[Tinyos-help] Help: SplitControl

David Doolin doolin at ce.berkeley.edu
Fri Jan 23 07:07:53 PST 2004



Joe,

An example, for the mailing list archives,
would be very cool!

Thanks,

Dave D


On Fri, 23 Jan 2004 polastre at eecs.berkeley.edu wrote:

> SplitControl is for when your module must do something asynchronously before returning that it has, in fact, started/stopped/init'd.  A perfect example of this is turning on a sensor.  The sensor takes time to warm up, so a Timer event is scheduled for when the sensor will be ready and the call to start() is returned.  When the timer goes off, startDone() is signalled indicating that you may now use the component (sensor).
>
> -Joe
> Content-Type: multipart/alternative; boundary="0-1426168562-1074194347=:60735"
>
>
> --0-1426168562-1074194347=:60735
> Content-Type: text/plain; charset=us-ascii
>
> When is it more preferrable to use SplitControl over StdControl?  Is SplitControl meant to be used to signal other components when something is initDone, startDone, or stopDone?  Can you include the "event initDone" code within the same module file in which the SplitControl interface is defined?  Thanks.
>
> Jason Kipp
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
> --0-1426168562-1074194347=:60735
> Content-Type: text/html; charset=us-ascii
>
> <DIV>When is it more preferrable to use SplitControl over StdControl?&nbsp; Is SplitControl meant to be used to signal other components when something is initDone, startDone, or stopDone?&nbsp; Can you include the "event initDone" code within the same module file in which the SplitControl interface is defined?&nbsp; Thanks.</DIV>
> <DIV>&nbsp;</DIV>
> <DIV>Jason Kipp</DIV>
> <DIV>&nbsp;</DIV><p><hr SIZE=1>
> Do you Yahoo!?<br>
> Yahoo! Hotjobs: <a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/hotjobs/mail_footer_email/evt=21482/*http://hotjobs.sweepstakes.yahoo.com/signingbonus">Enter the "Signing Bonus" Sweepstakes</a>
> --0-1426168562-1074194347=:60735--
>


More information about the Tinyos-help mailing list