X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Fnet%2Fle%2FLinkEstimatorP.nc;h=68d7a81fe914d7eee6830fb1e5393e502eebe885;hb=45ef18abfd1a39c2e4d7f5ec72096b5d1c7821bd;hp=57bd8e87e32f8a0ddc625c3b1ec01f2493c7be45;hpb=89852a0608cecc887ff3833528276cb90032783d;p=tinyos-2.x.git diff --git a/tos/lib/net/le/LinkEstimatorP.nc b/tos/lib/net/le/LinkEstimatorP.nc index 57bd8e87..68d7a81f 100644 --- a/tos/lib/net/le/LinkEstimatorP.nc +++ b/tos/lib/net/le/LinkEstimatorP.nc @@ -39,6 +39,7 @@ module LinkEstimatorP { interface LinkEstimator; interface Init; interface Packet; + interface CompareBit; } uses { @@ -46,6 +47,8 @@ module LinkEstimatorP { interface AMPacket as SubAMPacket; interface Packet as SubPacket; interface Receive as SubReceive; + interface LinkPacketMetadata; + interface Random; } } @@ -430,7 +433,7 @@ implementation { } // return bi-directional link quality to the neighbor - command uint8_t LinkEstimator.getLinkQuality(am_addr_t neighbor) { + command uint16_t LinkEstimator.getLinkQuality(am_addr_t neighbor) { uint8_t idx; idx = findIdx(neighbor); if (idx == INVALID_RVAL) { @@ -441,7 +444,7 @@ implementation { } // return the quality of the link: neighor->self - command uint8_t LinkEstimator.getReverseQuality(am_addr_t neighbor) { + command uint16_t LinkEstimator.getReverseQuality(am_addr_t neighbor) { uint8_t idx; idx = findIdx(neighbor); if (idx == INVALID_RVAL) { @@ -452,7 +455,7 @@ implementation { } // return the quality of the link: self->neighbor - command uint8_t LinkEstimator.getForwardQuality(am_addr_t neighbor) { + command uint16_t LinkEstimator.getForwardQuality(am_addr_t neighbor) { uint8_t idx; idx = findIdx(neighbor); if (idx == INVALID_RVAL) {