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 c td b"3dn3y>8( eght" vali

enced by