NodeDef.h File Reference

#include <stdio.h>
#include <math.h>
#include <BITE.h>

Include dependency graph for Temperature/INCLUDES/NodeDef.h:

Go to the source code of this file.

Data Structures

struct  distances_capteur
struct  noeud
struct  reemission
struct  t_node_info
struct  voisin
struct  voisin2

Defines

#define DISTANCE(x, y)   (long)(((signed int)x - (signed int)Id_x)*((signed int)x - (signed int)Id_x) + ((signed int)y - (signed int)Id_y)*((signed int)y - (signed int)Id_y))
#define DISTANCE_MAX   100
#define DISTANCE_MAX2   100
#define DISTANCE_RADIO(x, y)   ((long)(((signed int)x - (signed int)Id_x)*((signed int)x - (signed int)Id_x) + ((signed int)y - (signed int)Id_y)*((signed int)y - (signed int)Id_y)) <= DISTANCE_MAX)
#define IT_IS_A_BASE   1
#define MAX_ENVOIS   3
#define NB_DISTANCES   8
#define NB_EMISSIONS   8
#define NB_NOEUDS   10
#define NB_REEMISSIONS   16
#define NB_VOISINS   8
#define NB_VOISINS   8
#define TAB_BASE_PAS_PLEINE()   (Ptr_bases<Tab_bases+NB_BASES)
#define TAB_EMISSION_OVERFLOW()   ((Ptr_nb_emissions >Tab_emissions + NB_EMISSIONS)||(ptr_nb_emissions_cour>Tab_emissions + NB_EMISSIONS))
#define TAB_EMISSION_PAS_PLEINE()   (Ptr_nb_emissions <Tab_emissions + NB_EMISSIONS)
#define TAB_VOIS_PAS_PLEINE()   (Ptr_voisinage < Tab_voisinage + NB_VOISINS)

Functions

voisinRechercheMoinsBonVois (unsigned int mon_x, unsigned int mon_y)

Variables

unsigned int ED2
const UINT16 Id_x
const UINT16 Id_y
UINT16 Nb_top
unsigned int noReemission
unsigned int Numero_ack
distances_capteurPtr_distances
voisin2Ptr_nb_emissions
t_node_infoPtr_noeuds
reemissionPtr_reemission_ecrit
reemissionPtr_reemission_lit
voisinPtr_voisinage
distances_capteur Tab_distances [NB_DISTANCES]
voisin2 Tab_emissions [NB_EMISSIONS]
t_node_info Tab_noeuds [NB_NOEUDS]
reemission Tab_reemission [NB_REEMISSIONS]
voisin Tab_voisinage [NB_VOISINS]


Define Documentation

#define DISTANCE ( x,
 )     (long)(((signed int)x - (signed int)Id_x)*((signed int)x - (signed int)Id_x) + ((signed int)y - (signed int)Id_y)*((signed int)y - (signed int)Id_y))

Definition at line 146 of file Temperature/INCLUDES/NodeDef.h.

Referenced by RechercheMoinsBonVois().

#define DISTANCE_MAX   100

Definition at line 24 of file Temperature/INCLUDES/NodeDef.h.

#define DISTANCE_MAX2   100

Definition at line 25 of file Temperature/INCLUDES/NodeDef.h.

#define DISTANCE_RADIO ( x,
 )     ((long)(((signed int)x - (signed int)Id_x)*((signed int)x - (signed int)Id_x) + ((signed int)y - (signed int)Id_y)*((signed int)y - (signed int)Id_y)) <= DISTANCE_MAX)

Definition at line 41 of file Temperature/INCLUDES/NodeDef.h.

#define IT_IS_A_BASE   1

Definition at line 20 of file Temperature/INCLUDES/NodeDef.h.

Referenced by init_table().

#define MAX_ENVOIS   3

Definition at line 23 of file Temperature/INCLUDES/NodeDef.h.

#define NB_DISTANCES   8

Definition at line 167 of file Temperature/INCLUDES/NodeDef.h.

#define NB_EMISSIONS   8

Definition at line 18 of file Temperature/INCLUDES/NodeDef.h.

#define NB_NOEUDS   10

Definition at line 165 of file Temperature/INCLUDES/NodeDef.h.

#define NB_REEMISSIONS   16

Definition at line 19 of file Temperature/INCLUDES/NodeDef.h.

#define NB_VOISINS   8

Definition at line 138 of file Temperature/INCLUDES/NodeDef.h.

#define NB_VOISINS   8

Definition at line 138 of file Temperature/INCLUDES/NodeDef.h.

 
#define TAB_BASE_PAS_PLEINE (  )     (Ptr_bases<Tab_bases+NB_BASES)

Definition at line 150 of file Temperature/INCLUDES/NodeDef.h.

 
#define TAB_EMISSION_OVERFLOW (  )     ((Ptr_nb_emissions >Tab_emissions + NB_EMISSIONS)||(ptr_nb_emissions_cour>Tab_emissions + NB_EMISSIONS))

Definition at line 149 of file Temperature/INCLUDES/NodeDef.h.

 
#define TAB_EMISSION_PAS_PLEINE (  )     (Ptr_nb_emissions <Tab_emissions + NB_EMISSIONS)

Definition at line 148 of file Temperature/INCLUDES/NodeDef.h.

 
#define TAB_VOIS_PAS_PLEINE (  )     (Ptr_voisinage < Tab_voisinage + NB_VOISINS)

Definition at line 147 of file Temperature/INCLUDES/NodeDef.h.

Referenced by PT_THREAD().


Function Documentation

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

Definition at line 175 of file com_ConnVois.c.


Variable Documentation

unsigned int ED2

Definition at line 57 of file Bootloader/CONFIG/VG.C.

const UINT16 Id_x

Definition at line 29 of file Bootloader/CONFIG/VG.C.

const UINT16 Id_y

Definition at line 30 of file Bootloader/CONFIG/VG.C.

Definition at line 64 of file Bootloader/CONFIG/VG.C.

unsigned int noReemission

Definition at line 34 of file Bootloader/CONFIG/VG.C.

unsigned int Numero_ack

Definition at line 67 of file Bootloader/CONFIG/VG.C.

Definition at line 38 of file Bootloader/CONFIG/VG.C.

Definition at line 46 of file Bootloader/CONFIG/VG.C.

Definition at line 42 of file Bootloader/CONFIG/VG.C.

Definition at line 41 of file Bootloader/CONFIG/VG.C.

Definition at line 36 of file Bootloader/CONFIG/VG.C.

voisin2 Tab_emissions[NB_EMISSIONS]

Definition at line 37 of file Bootloader/CONFIG/VG.C.

t_node_info Tab_noeuds[NB_NOEUDS]

Definition at line 45 of file Bootloader/CONFIG/VG.C.

reemission Tab_reemission[NB_REEMISSIONS]

Definition at line 40 of file Bootloader/CONFIG/VG.C.

voisin Tab_voisinage[NB_VOISINS]

Definition at line 35 of file Bootloader/CONFIG/VG.C.


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