On Wed, Dec 18, 2013 at 11:16 PM, Venkata Aditya Pavan D
<[email protected]>wrote:

>   Hi
>
>  I want to know whether we can implement the interface functionality in a
> configuration file.
>

I'm sorry but I'm not parsing your question.

Interfaces are used to describe how modules interconnect.  It describes
what commands and events a module provides and/or what command/events a
modules needs.

A module actually implements the code for said interfaces.

And a configuration describes how different modules interconnect.



> As far I know that configuration is used only for wiring.
>

There is wiring and another use is translating one interface to another.


> But after seeing the example code in the  
> link[1]<http://tinyos.stanford.edu/tinyos-wiki/index.php/TinyOS_Overview>I am 
> confused.
>

What is happening is the configuration Led exports LedControl for folks to
use (it provides it) and it exports Gpio and someone else needs to actually
wire a lower level module to actually implement it.

There will be another configuration that will actually wire an upper layer
to LedControl (the user) and a lower layer that implements the actual Gpio.

What happens is when the upper layer calls LedControl.turnOn, the lower
layer's Gpio.set will get called.   The linkage is provided in the
configuration Led.


Does that make sense?




>
>  Please help me
>
>  Regards,
>  Venkata Aditya Pavan
>
>
>
>  [1] http://tinyos.stanford.edu/tinyos-wiki/index.php/TinyOS_Overview
>
> -------------------------------------------------------------------------------------------------------------------------------
>
> This e-mail is for the sole use of the intended recipient(s) and may
> contain confidential and privileged information. If you are not the
> intended recipient, please contact the sender by reply e-mail and destroy
> all copies and the original message. Any unauthorized review, use,
> disclosure, dissemination, forwarding, printing or copying of this email
> is strictly prohibited and appropriate legal action will be taken.
> -------------------------------------------------------------------------------------------------------------------------------
>
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Eric B. Decker
Senior (over 50 :-) Researcher
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to