if5_tools.h 2.05 KB
Newer Older
Sandeep Kumar's avatar
Sandeep Kumar committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
/*******************************************************************************
    OpenAirInterface
    Copyright(c) 1999 - 2014 Eurecom

    OpenAirInterface is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.


    OpenAirInterface is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with OpenAirInterface.The full GNU General Public License is
   included in this distribution in the file called "COPYING". If not,
   see <http://www.gnu.org/licenses/>.

  Contact Information
  OpenAirInterface Admin: openair_admin@eurecom.fr
  OpenAirInterface Tech : openair_tech@eurecom.fr
  OpenAirInterface Dev  : openair4g-devel@lists.eurecom.fr

  Address      : Eurecom, Campus SophiaTech, 450 Route des Chappes, CS 50193 - 06904 Biot Sophia Antipolis cedex, FRANCE

 *******************************************************************************/

30
/*! \file PHY/LTE_TRANSPORT/if5_tools.h
Sandeep Kumar's avatar
Sandeep Kumar committed
31 32 33 34 35 36 37 38 39
* \brief 
* \author S. Sandeep Kumar, Raymond Knopp
* \date 2016
* \version 0.1
* \company Eurecom
* \email: ee13b1025@iith.ac.in, knopp@eurecom.fr 
* \note
* \warning
*/
Sandeep Kumar's avatar
Sandeep Kumar committed
40 41 42 43

#include <stdint.h>
#include "PHY/defs.h"

Sandeep Kumar's avatar
Sandeep Kumar committed
44 45
#define IF5_RRH_GW_DL 0x0022
#define IF5_RRH_GW_UL 0x0023
Sandeep Kumar's avatar
Sandeep Kumar committed
46
#define IF5_MOBIPASS 0xbffe
Sandeep Kumar's avatar
Sandeep Kumar committed
47 48

struct IF5_mobipass_header {  
Sandeep Kumar's avatar
Sandeep Kumar committed
49
  /// 
Sandeep Kumar's avatar
Sandeep Kumar committed
50
  uint16_t flags; 
Sandeep Kumar's avatar
Sandeep Kumar committed
51
  /// 
Sandeep Kumar's avatar
Sandeep Kumar committed
52
  uint16_t fifo_status;
Sandeep Kumar's avatar
Sandeep Kumar committed
53
  /// 
Sandeep Kumar's avatar
Sandeep Kumar committed
54
  uint8_t seqno;
Sandeep Kumar's avatar
Sandeep Kumar committed
55
  ///
Sandeep Kumar's avatar
Sandeep Kumar committed
56
  uint8_t ack;
Sandeep Kumar's avatar
Sandeep Kumar committed
57 58 59
  ///
  uint32_t word0;
  /// 
Sandeep Kumar's avatar
Sandeep Kumar committed
60
  uint32_t time_stamp;
Sandeep Kumar's avatar
Sandeep Kumar committed
61
  
Sandeep Kumar's avatar
Sandeep Kumar committed
62 63 64 65 66
} __attribute__ ((__packed__));

typedef struct IF5_mobipass_header IF5_mobipass_header_t;
#define sizeof_IF5_mobipass_header_t 14

Sandeep Kumar's avatar
Sandeep Kumar committed
67
void send_IF5(PHY_VARS_eNB*, openair0_timestamp, int, uint8_t*, uint16_t);
68

Sandeep Kumar's avatar
Sandeep Kumar committed
69
void recv_IF5(PHY_VARS_eNB*, openair0_timestamp*, int, uint16_t);