00001 /*---------------------------------------------------------------*/ 00007 /*---------------------------------------------------------------*/ 00008 #include <ProgConfig.h> 00009 00010 00011 /*********************************about messages************************/ 00012 info_Reveil Frame_alarm; 00013 00014 //Buffer of reception, its pointers, and the number of free lines 00015 00016 ligne_buffer_recep Buffer_recep [NB_LIGNES_RECEP] ; 00017 ligne_buffer_recep *Ptr_recep_lect = Buffer_recep ; 00018 ligne_buffer_recep *Ptr_recep_ecri = Buffer_recep ; 00019 int Dispo_buffer_recep = NB_LIGNES_RECEP ; 00020 00021 //Buffers of emission and their pointers 00022 00023 ligne_buffer_envoi Buffer_envoi [NB_LIGNES_ENVOI] ; 00024 ligne_buffer_envoi *Ptr_envoi = Buffer_envoi ; 00025 00026 00027 /************************about information of this node********************/ 00028 00029 unsigned int Id_x ; 00030 unsigned int Id_y ; 00031 unsigned int Id_x_Dest ; 00032 unsigned int Id_y_Dest ; 00033 //unsigned int NumTrameTx; 00034 unsigned int noReemission; 00035 voisin Tab_voisinage [NB_VOISINS] ; 00036 voisin *Ptr_voisinage = Tab_voisinage ; 00037 voisin2 Tab_emissions[NB_EMISSIONS]; 00038 voisin2 *Ptr_nb_emissions = Tab_emissions; 00039 00040 reemission Tab_reemission [NB_REEMISSIONS] ;/*Containing the idx, idy, and numframe from previous multi_hop messages received and transmitted*/ 00041 reemission *Ptr_reemission_lit = Tab_reemission ; 00042 reemission *Ptr_reemission_ecrit = Tab_reemission ; 00043 00044 #if defined(BASE) 00045 t_node_info Tab_noeuds[NB_NOEUDS]; 00046 t_node_info *Ptr_noeuds = Tab_noeuds; 00047 FILE1 Tab_Prio_Noeuds; 00048 #elif defined(NOEUD) 00049 noeud Tab_bases [NB_BASES] ; 00050 noeud *Ptr_bases = Tab_bases; 00051 00052 #endif 00053 00054 00055 //My energy 00056 unsigned int ED1 ; 00057 unsigned int ED2 ; 00058 //Destinataire? 00059 //Mesure 00060 00061 //Date mesure 00062 00063 // Timer 00064 UINT16 Nb_top = 0 ; 00065 00066 //Number of trame 00067 unsigned int Numero_ack = 0 ; 00068 00069 00070 //Need to reprogram 00071 unsigned int NombreDePaquets = 0; 00072 00073 /***************************about times out**************************/ 00074 00075 flag_time_out F_TimeOut ={0,0,0}; 00076 DeadlinesStruct Deadlines [NB_DEADLINES]; 00077 00078 UINT8 flag_Clock_ticks_carry=0; 00079 flag_Nb_top_carry F_Carry={0,0}; 00080 00081 unsigned int wakeup_interval = WAKEUP_BEACON_INTERVAL; 00082 00083 flag_execution flag_exec; 00084 00085 00086