]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
ascii graphics that shows how we get to the head of the footer
authorgnawali <gnawali>
Tue, 13 Nov 2007 08:36:29 +0000 (08:36 +0000)
committergnawali <gnawali>
Tue, 13 Nov 2007 08:36:29 +0000 (08:36 +0000)
tos/lib/net/le/LinkEstimatorP.nc

index c18e9f19b416c5c3d893cd812424a38e587d77f8..57bd8e87e32f8a0ddc625c3b1ec01f2493c7be45 100644 (file)
@@ -649,6 +649,20 @@ implementation {
        }
       }
 
+
+      /* Graphical explanation of how we get to the head of the
+       * footer in the following code 
+       * <---------------------- payloadLen ------------------->
+       * -------------------------------------------------------
+       * linkest_header_t  | payload  | linkest_footer_t* ...|
+       * -------------------------------------------------------
+       * ^                              ^                      ^
+       * |                              |                      |
+       * subpayload                     |                      payloadEnd
+       *                                |
+       *                                payloadEnd - footersize*num footers
+      */
+
       if ((nidx != INVALID_RVAL) && (num_entries > 0)) {
        uint8_t payloadLen = call SubPacket.payloadLength(msg);
        void* subPayload = call SubPacket.getPayload(msg, payloadLen);