wmp_com.h
Go to the documentation of this file.
00001 /*------------------------------------------------------------------------
00002  *---------------------           RT-WMP              --------------------
00003  *------------------------------------------------------------------------
00004  *                                                         V7.0B  11/05/10
00005  *
00006  *
00007  *  File: ./src/core/include/wmp_com.h                                    
00008  *  Authors: Danilo Tardioli                                              
00009  *  ----------------------------------------------------------------------
00010  *  Copyright (C) 2000-2010, Universidad de Zaragoza, SPAIN
00011  *
00012  *  Contact Addresses: Danilo Tardioli                   dantard@unizar.es
00013  *
00014  *  RT-WMP is free software; you can  redistribute it and/or  modify it
00015  *  under the terms of the GNU General Public License  as published by the
00016  *  Free Software Foundation;  either  version 2, or (at  your option) any
00017  *  later version.
00018  *
00019  *  RT-WMP  is distributed  in the  hope  that  it will be   useful, but
00020  *  WITHOUT  ANY  WARRANTY;     without  even the   implied   warranty  of
00021  *  MERCHANTABILITY  or  FITNESS FOR A  PARTICULAR PURPOSE.    See the GNU
00022  *  General Public License for more details.
00023  *
00024  *  You should have received  a  copy of  the  GNU General Public  License
00025  *  distributed with RT-WMP;  see file COPYING.   If not,  write to the
00026  *  Free Software  Foundation,  59 Temple Place  -  Suite 330,  Boston, MA
00027  *  02111-1307, USA.
00028  *
00029  *  As a  special exception, if you  link this  unit  with other  files to
00030  *  produce an   executable,   this unit  does  not  by  itself cause  the
00031  *  resulting executable to be covered by the  GNU General Public License.
00032  *  This exception does  not however invalidate  any other reasons why the
00033  *  executable file might be covered by the GNU Public License.
00034  *
00035  *----------------------------------------------------------------------*/
00036 
00037 
00038 
00039 #ifndef WMP_COM__H
00040 #define WMP_COM__H
00041 
00042 #include "wmp_config.h"
00043 #include "config/compiler.h"
00044 #include "wmp_com.h"
00045 #include "lqm.h"
00046 #include "rssi_average.h"
00047 #include "global.h"
00048 #include "nstat.h"
00049 #include "global.h"
00050 #include "wmp_misc.h"
00051 #include "core/include/frames.h"
00052 void encode_routing_info(wmpFrame * t);
00053 void decode_routing_info(wmpFrame * t); 
00054 
00055 int wmpWaitAck(wmpFrame* p);
00056 int wmpReceive(wmpFrame* p);
00057 int wmpSend(wmpFrame* t);
00058 void wmpSendAck(wmpFrame * p);
00059 
00060 void wmpUnlockRead(int rtnCode);
00061 void wmpTest(void);
00062 void wmpSendDrop(wmpFrame * t);
00063 void wmpUpdateRssi(wmpFrame * t);
00064 int wmpUpdateReceivedRssi(wmpFrame* q);
00065 int wmpUpdateAcknowkedgedRssi(wmpFrame* q);
00066 int wmpInterpretReceived(wmpFrame **p,wmpFrame **q);
00067 int wmpInterpretAck(wmpFrame **p,wmpFrame **q);
00068 int vigilant_sleep(wmpFrame * p, wmpFrame * q);
00069 
00070 void wmp_send_setup(wmpFrame * p);
00071 int wmp_send_retry(wmpFrame * p);
00072 void initComLayer(void);
00073 char (*rssi_get_f(void))(char);
00074 void rssi_set_f( char (*f) (char));
00075 #endif
00076 
00077 


ros_rt_wmp
Author(s): Danilo Tardioli, dantard@unizar.es
autogenerated on Fri Jan 3 2014 12:07:56