[Tinyos-help] Question regarding generic components

2012-04-23 Thread Oldrine Lewis
Hi, Can I access the members in a user defined type inside a generic module? typedef struct { uint8_t m_count; }MyStruct; generic module MyModuleM(typedef type) { provides interface MyInterface; } implementation { command void MyInterface.TestStructAccess(

Re: [Tinyos-help] Question regarding generic components

2012-04-23 Thread Eric Decker
On Mon, Apr 23, 2012 at 7:05 PM, Oldrine Lewis wrote: > Hi, > > ** ** > > Can I access the members in a user defined type inside a generic module? * > *** > > ** ** > > typedef struct > > { > > uint8_t m_count; > > }MyStruct; > > ** ** > > ** ** > > ** ** > > generic modu

Re: [Tinyos-help] Question regarding generic components

2012-04-23 Thread Oldrine Lewis
...@gmail.com] Sent: Monday, April 23, 2012 10:13 PM To: Oldrine Lewis Cc: tinyos-help@millennium.berkeley.edu Subject: Re: [Tinyos-help] Question regarding generic components On Mon, Apr 23, 2012 at 7:05 PM, Oldrine Lewis wrote: Hi, Can I access the members in a user defined type inside a

Re: [Tinyos-help] Question regarding generic components

2012-04-23 Thread Eric Decker
cire...@gmail.com] > *Sent:* Monday, April 23, 2012 10:13 PM > *To:* Oldrine Lewis > *Cc:* tinyos-help@millennium.berkeley.edu > *Subject:* Re: [Tinyos-help] Question regarding generic components > > ** ** > > ** ** > > On Mon, Apr 23, 2012 at 7:05 PM, Oldrine Le

Re: [Tinyos-help] Question regarding generic components

2012-04-24 Thread Oldrine Lewis
module , I expected the compiler would be aware of the data type. Thanks, Lewis From: Eric Decker [mailto:cire...@gmail.com] Sent: Monday, April 23, 2012 11:23 PM To: Oldrine Lewis Cc: tinyos-help@millennium.berkeley.edu Subject: Re: [Tinyos-help] Question regarding generic components On

Re: [Tinyos-help] Question regarding generic components

2012-04-24 Thread Eric Decker
; > Lewis > > ** ** > > *From:* Eric Decker [mailto:cire...@gmail.com] > *Sent:* Monday, April 23, 2012 11:23 PM > *To:* Oldrine Lewis > *Cc:* tinyos-help@millennium.berkeley.edu > *Subject:* Re: [Tinyos-help] Question regarding generic components > >

Re: [Tinyos-help] Question regarding generic components

2012-04-24 Thread Oldrine Lewis
nnium.berkeley.edu Subject: Re: [Tinyos-help] Question regarding generic components On Mon, Apr 23, 2012 at 7:23 PM, Oldrine Lewis wrote: Hi Eric, I wanted to make the module (MyModuleM ) a generic module so that it can handle

Re: [Tinyos-help] Question regarding generic components

2012-04-24 Thread Eric Decker
since the struct would be defined (typedef type) in each > module , I expected the compiler would be aware of the data type. > Thanks,**** > > Lewis > > > > *From:* Eric Decker [mailto:cire...@gmail.com] > *Sent:* Monday, April 23, 2012 11:23 PM > *To:* Oldr

Re: [Tinyos-help] Question regarding generic components

2012-04-24 Thread Oldrine Lewis
Hi Eric, I guess I too am struggling with explaining the scenario I have here. Lemme give it one last try. Please don't get me wrong, I truly appreciate the time and patience on your side. Now I understand that what I was trying to implement is not possible. So I am implementing a workaround