]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/net/ctp/CtpInfo.nc
get rid of +5 for rounding, change arg name in functions in CtpInfo to match the...
[tinyos-2.x.git] / tos / lib / net / ctp / CtpInfo.nc
index 57c275efb50f2360b301b055ba19ec9890f0d22a..7e8654951f7779ada76a4aacfcf74eb841f7011d 100644 (file)
@@ -28,6 +28,7 @@
  *  @see Net2-WG
  */
 
+#include "AM.h"
 
 interface CtpInfo {
 
@@ -45,7 +46,7 @@ interface CtpInfo {
    * through the current parent.  The pointer is allocated by the
    * caller.  If the parent is invalid, return FAIL (no info).  The
    * caller MUST NOT use the value in parent if the return is not
-   * SUCCESS.
+   * SUCCESS. Calling getEtx at the root will set the etx argument to 0.
    */
   
   command error_t getEtx(uint16_t* etx);
@@ -80,7 +81,7 @@ interface CtpInfo {
   command bool isNeighborCongested(am_addr_t n);
 
   command uint8_t numNeighbors();
-  command uint16_t getNeighborLinkQuality(uint8_t neighbor);
-  command uint16_t getNeighborRouteQuality(uint8_t neighbor);
-  command am_addr_t getNeighborAddr(uint8_t neighbor);
+  command uint16_t getNeighborLinkQuality(uint8_t n);
+  command uint16_t getNeighborRouteQuality(uint8_t n);
+  command am_addr_t getNeighborAddr(uint8_t n);
 }