interface LinkEstimator {
/* get link quality for link to the neighbor */
- command uint8_t getLinkQuality(uint16_t neighbor);
+ command uint16_t getLinkQuality(uint16_t neighbor);
/* insert this neighbor into the neighbor table */
command error_t insertNeighbor(am_addr_t neighbor);
}
// 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) {
interface LinkEstimator {
/* get bi-directional link quality for link to the neighbor */
- command uint8_t getLinkQuality(uint16_t neighbor);
+ command uint16_t getLinkQuality(uint16_t neighbor);
/* get quality of the link from neighbor to this node */
- command uint8_t getReverseQuality(uint16_t neighbor);
+ command uint16_t getReverseQuality(uint16_t neighbor);
/* get quality of the link from this node to the neighbor */
- command uint8_t getForwardQuality(uint16_t neighbor);
+ command uint16_t getForwardQuality(uint16_t neighbor);
/* insert this neighbor into the neighbor table */
command error_t insertNeighbor(am_addr_t neighbor);
}
// 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) {
}
// 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) {
}
// 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) {