X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Flib%2Fnet%2Fctp%2FCtpInfo.nc;h=7e8654951f7779ada76a4aacfcf74eb841f7011d;hp=57c275efb50f2360b301b055ba19ec9890f0d22a;hb=ce7b4e8d571680f9aca097275fbee3eac5a22227;hpb=ec0de8e1ac425b0f6855d46f737c2726cd82df88 diff --git a/tos/lib/net/ctp/CtpInfo.nc b/tos/lib/net/ctp/CtpInfo.nc index 57c275ef..7e865495 100644 --- a/tos/lib/net/ctp/CtpInfo.nc +++ b/tos/lib/net/ctp/CtpInfo.nc @@ -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); }