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(
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
...@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
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
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
;
> 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
>
>
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
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
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