Hi Dinesh,

an interface can have several implementations for example depending on
the hardware architecture or on the purpose of usage.

You can use the source code documentation[1] of your hardware platform
to easily find the implementation.

Lets say you are using the interface AMSend provided by ActiveMessageC
then look at the documentation for this component. In the "wiring"
diagram you can just click on the component AMSend is used from. For
the micaz platform this is CC2420ActiveMessageC and this again is
wired to CC2420ActiveMessageP where you should finally find the
implementation.

[1] http://www.tinyos.net/tinyos-2.1.0/doc/nesdoc/

Hope that helps,

Nicola


2008/8/23 Dinesh Koya <[EMAIL PROTECTED]>:
> Hi all
>
> I am new to tinyos  and I have just started to understand
> how interfaces, configurations and modules work. What I
> understood is Interfaces are files  that only declare some
> commands and events. Modules are the one that actually
> implement the logic of the commands and events declared
> in Interfaces and Configurations are the files that give some
> wirings between the providers and users of the Interfaces
> and components. I am not sure whether I got them right or
> not !
>
> I have seen AMSend.nc interface file which has only
> commands like send, cancel,etc declared with parameters
> and datatypes. I would like to know in which files is the
> logic of the commands and events declared in AMSend.nc
> implemented(Module file) because I didnt find any such files even in the
> case of other standard interfaces provided in tinyos 2.0.2. Could someone
> help me !
>
> Thanks for any help
>
> Dinesh
>
> ________________________________
> Did you know? You can CHAT without downloading messenger. Click here
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to