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 <[email protected]>

> 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
> [email protected]
> 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
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to