I recommend that you look at a book on standard C
language syntax and data definitions. The wikibooks
are pretty good:
http://en.wikibooks.org/wiki/C_Programming
For your question:
TOS_Msg is a structure definition;
TOS_MsgPtr is defined as a pointer to a TOS_Msg structure;
TOS_Msg gRxBufPool[QUEUE_SIZE] defines an array of TOS_Msg structs;
TOS_MsgPtr gRxBufPoolTbl[QUEUE_SIZE] defines an array of pointers
to TOS_Msg structs;
But if you didn't know that already, the above will make little
sense until you read the C book...
MS
Pocahontas wrote:
> Hi I'm very new to nesC language. Anyone pls help me explain what 's the
> difference between declaration of message type in TOS_Msg and
> TOS_MsgPtr? Thanks. TOS_Msg gRxBufPool[QUEUE_SIZE]; TOS_MsgPtr
> gRxBufPoolTbl[QUEUE_SIZE];
> ------------------------------------------------------------------------
> View this message in context: TOS_MsgPtr and TOS_Msg usage
> <http://old.nabble.com/TOS_MsgPtr-and-TOS_Msg-usage-tp31713447p31713447.html>
> Sent from the TinyOS - Help mailing list archive
> <http://old.nabble.com/TinyOS---Help-f34326.html> at Nabble.com.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help