com_ConnVois.c File Reference

Description : Order a 'REQvois' and management when we receive a message 'REPvois'. More...

#include <ProgConfig.h>
#include <msp430.h>
#include <environment.h>

Include dependency graph for com_ConnVois.c:

Go to the source code of this file.

Functions

 PT_THREAD (ConnaitreVois(struct pt *pt))
voisinRechercheMoinsBonVois (unsigned int mon_x, unsigned int mon_y)


Detailed Description

Description : Order a 'REQvois' and management when we receive a message 'REPvois'.

This protothread lets us know the neighborhood. If the neighbor that sends us a REPvois is not in our neighborhood table it is recorded. If not, a variable is set to remember that node sent us a frame. An acknowledgement is sent to the nodes that replied.

Definition in file com_ConnVois.c.


Function Documentation

PT_THREAD ( ConnaitreVois(struct pt *pt  ) 

voisin* RechercheMoinsBonVois ( unsigned int  mon_x,
unsigned int  mon_y 
)

Definition at line 175 of file com_ConnVois.c.

References DISTANCE, DISTANCE_MAX2, voisin::id_x, voisin::id_y, Ptr_voisinage, and Tab_voisinage.

Referenced by PT_THREAD().

Here is the caller graph for this function:


Generated on Wed Jun 3 12:05:40 2009 for PowWow v1.0 by  doxygen 1.5.6