[Tinyos-help] Bit-field Struct

Eric Decker cire831 at gmail.com
Thu Apr 2 15:50:18 PDT 2009


everything inside of nx_struct must also be a nx type.  so you need
something like nx_uint16_t type.

2009/4/2 Ittipong Khemapech <ik.tinyos at googlemail.com>

> Hi,
>
> I've been trying to use bit-field struct:
>
> typedef nx_struct MyMsg {
>   unsigned int type: 1;
>   nx_uint8_t id;
>   ...
> } MyMsg;
>
> I've got "field 'type' must be a network type" error.
>
> Any idea how to get it right?
>
> I'm using TinyOS 2.0.2 and cygwin.
>
> Thanks,
> Ittipong
>
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Eric B. Decker
Senior (over 50 :-) Researcher
Autonomous Systems Lab
Jack Baskin School of Engineering
UCSC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090402/0d565ef5/attachment.htm 


More information about the Tinyos-help mailing list