[Tinyos-help] About ctp_routing_header_t* getHeader(message_t* ONE m)

2011-05-19 Thread 崔晓宗
ctp_routing_header_t* getHeader(message_t* ONE m) {
  return (ctp_routing_header_t*)call BeaconSend.getPayload(m, call
BeaconSend.maxPayloadLength());
 }

The code above is from Collection Tree Protocol.
What does the 'ONE' mean? Can anyone explain the parameter ( message_t* ONE
m ) for me? Thanks.

-- 
Regards,
Xiaozong Cui
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] About ctp_routing_header_t* getHeader(message_t* ONE m)

2011-05-19 Thread Xiaohui Liu
ONE means a pointer that always refers to a single object, similar to a C++
reference.
http://docs.tinyos.net/index.php/Safe_TinyOS

On Thu, May 19, 2011 at 2:27 AM, 崔晓宗 cpp...@gmail.com wrote:

 ctp_routing_header_t* getHeader(message_t* ONE m) {
   return (ctp_routing_header_t*)call BeaconSend.getPayload(m, call
 BeaconSend.maxPayloadLength());
  }

 The code above is from Collection Tree Protocol.
 What does the 'ONE' mean? Can anyone explain the parameter ( message_t* ONE
 m ) for me? Thanks.

 --
 Regards,
 Xiaozong Cui


 ___
 Tinyos-help mailing list
 Tinyos-help@millennium.berkeley.edu
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




-- 
-Xiaohui Liu
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help