[Tinyos-2-commits] CVS: tinyos-2.x/tos/lib/net/le LinkEstimator.nc,
1.4, 1.5 LinkEstimatorP.nc, 1.10, 1.11
Omprakash Gnawali
gnawali at users.sourceforge.net
Fri Nov 16 15:14:52 PST 2007
Update of /cvsroot/tinyos/tinyos-2.x/tos/lib/net/le
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv16283/le
Modified Files:
LinkEstimator.nc LinkEstimatorP.nc
Log Message:
fix the get link quality interfaces to return 16 bit eetx values
Index: LinkEstimator.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/net/le/LinkEstimator.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** LinkEstimator.nc 12 Dec 2006 18:23:29 -0000 1.4
--- LinkEstimator.nc 16 Nov 2007 23:14:49 -0000 1.5
***************
*** 36,46 ****
/* get bi-directional link quality for link to the neighbor */
! command uint8_t getLinkQuality(uint16_t neighbor);
/* get quality of the link from neighbor to this node */
! command uint8_t getReverseQuality(uint16_t neighbor);
/* get quality of the link from this node to the neighbor */
! command uint8_t getForwardQuality(uint16_t neighbor);
/* insert this neighbor into the neighbor table */
--- 36,46 ----
/* get bi-directional link quality for link to the neighbor */
! command uint16_t getLinkQuality(uint16_t neighbor);
/* get quality of the link from neighbor to this node */
! command uint16_t getReverseQuality(uint16_t neighbor);
/* get quality of the link from this node to the neighbor */
! command uint16_t getForwardQuality(uint16_t neighbor);
/* insert this neighbor into the neighbor table */
Index: LinkEstimatorP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/net/le/LinkEstimatorP.nc,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** LinkEstimatorP.nc 13 Nov 2007 08:36:29 -0000 1.10
--- LinkEstimatorP.nc 16 Nov 2007 23:14:49 -0000 1.11
***************
*** 431,435 ****
// return bi-directional link quality to the neighbor
! command uint8_t LinkEstimator.getLinkQuality(am_addr_t neighbor) {
uint8_t idx;
idx = findIdx(neighbor);
--- 431,435 ----
// return bi-directional link quality to the neighbor
! command uint16_t LinkEstimator.getLinkQuality(am_addr_t neighbor) {
uint8_t idx;
idx = findIdx(neighbor);
***************
*** 442,446 ****
// return the quality of the link: neighor->self
! command uint8_t LinkEstimator.getReverseQuality(am_addr_t neighbor) {
uint8_t idx;
idx = findIdx(neighbor);
--- 442,446 ----
// return the quality of the link: neighor->self
! command uint16_t LinkEstimator.getReverseQuality(am_addr_t neighbor) {
uint8_t idx;
idx = findIdx(neighbor);
***************
*** 453,457 ****
// return the quality of the link: self->neighbor
! command uint8_t LinkEstimator.getForwardQuality(am_addr_t neighbor) {
uint8_t idx;
idx = findIdx(neighbor);
--- 453,457 ----
// return the quality of the link: self->neighbor
! command uint16_t LinkEstimator.getForwardQuality(am_addr_t neighbor) {
uint8_t idx;
idx = findIdx(neighbor);
More information about the Tinyos-2-commits
mailing list