[Tinyos-help] Parameterized interfaces

2009-11-25 Thread Tomasz Kurczyk
Hi, I have following questions concerning the parameterized interfaces: 1) In case of the scenario when I have two packets X and Z with corresponding identifiers MSG_X and MSG_Z. To send them both I need to declare two separate components in configuration file? AMSenderC(MSG_X) a

[Tinyos-help] parameterized interfaces

2008-07-14 Thread Sigg Benjamin
I was reading the tinyos-programming-manual. At the end of Chapter 6.0 there is this little remark: "Parameterized interfaces aren’t limited to a single parameter. For example, this is valid code: provides interface Timer[uint8\_t x][uint8\_t y]" However, if I try this i get only a syntax-error

[Tinyos-help] Parameterized Interfaces

2006-08-13 Thread Darren Bishop
Hi, does anyone know how to obtain the parameter values from within the wired component e.g. in A where A -> B.Interface[unique("Interface")]; Is there by any chance some variable name that when referenced from within any of A.Interface's commands/events will yield that unique value? -- Warm

Re: [Tinyos-help] Parameterized Interfaces

2006-08-13 Thread Shane B. Eisenman
hi Darren, i guess this isn't exactly what you were looking for, but you might be able to get the information you want by keeping track of it yourself from the beginning. i should say up front that i've never tried what i'm about to suggest, so no guarantees. unique() is a compile time const

Re: [Tinyos-help] Parameterized Interfaces

2006-08-13 Thread Darren Bishop
Shane, you are dy marvelous. -- Warm regards, Darren Bishop, MSc, BSc (Hons), MBCS On Monday 14 August 2006 03:24, Shane B. Eisenman wrote: > hi Darren, > > i guess this isn't exactly what you were looking for, but you might be > able to get the information you want by keeping track of it

[Fwd: Re: [Tinyos-help] Parameterized Interfaces]

2006-08-15 Thread Darren BISHOP
Hey all, Just occurred to me that you can include the following command to any parameterized interface: command uint8_t .getid[uint8_t id]() { return id; } Best regards, Darren Original Message Shane, you are dy marvelous. -- Warm regards, Darren Bishop, MSc, BS