rrc_extern.h 2.58 KB
Newer Older
1 2 3 4 5
/*
 * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The OpenAirInterface Software Alliance licenses this file to You under
6
 * the OAI Public License, Version 1.1  (the "License"); you may not use this file
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
 * except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.openairinterface.org/?page_id=698
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *-------------------------------------------------------------------------------
 * For more information about the OpenAirInterface (OAI) Software Alliance:
 *      contact@openairinterface.org
 */

22 23 24
/*! \file vars.h
* \brief rrc external vars
* \author Navid Nikaein and Raymond Knopp
25
* \date 2011
26
* \version 1.0
27 28
* \company Eurecom
* \email: navid.nikaein@eurecom.fr
29
*/
30 31 32

#ifndef __OPENAIR_RRC_EXTERN_H__
#define __OPENAIR_RRC_EXTERN_H__
33
#include "rrc_defs.h"
34
#include "COMMON/mac_rrc_primitives.h"
35
#include "LAYER2/MAC/mac.h"
36 37 38 39 40
#include "LAYER2/RLC/rlc.h"

extern UE_RRC_INST *UE_rrc_inst;


41
extern uint8_t DRB2LCHAN[8];
42

43 44
extern LTE_LogicalChannelConfig_t SRB1_logicalChannelConfig_defaultValue;
extern LTE_LogicalChannelConfig_t SRB2_logicalChannelConfig_defaultValue;
45 46 47 48 49 50 51 52 53


#ifndef PHY_EMUL
#ifndef PHYSIM
//#define NB_INST 1
#else
extern unsigned char NB_INST;
#endif
extern unsigned char NB_eNB_INST;
54
extern uint16_t NB_UE_INST;
55 56 57 58 59 60
extern unsigned short NODE_ID[1];
#endif


//CONSTANTS
extern rlc_info_t Rlc_info_um,Rlc_info_am_config;
61 62 63
//uint8_t RACH_TIME_ALLOC;
extern uint16_t RACH_FREQ_ALLOC;
//uint8_t NB_RACH;
64 65 66
extern LCHAN_DESC BCCH_LCHAN_DESC,CCCH_LCHAN_DESC,DCCH_LCHAN_DESC,DTCH_DL_LCHAN_DESC,DTCH_UL_LCHAN_DESC;
extern MAC_MEAS_T BCCH_MEAS_TRIGGER,CCCH_MEAS_TRIGGER,DCCH_MEAS_TRIGGER,DTCH_MEAS_TRIGGER;
extern MAC_AVG_T BCCH_MEAS_AVG,CCCH_MEAS_AVG,DCCH_MEAS_AVG, DTCH_MEAS_AVG;
67

68 69 70 71 72
extern uint16_t T300[8];
extern uint16_t T310[8];
extern uint16_t N310[8];
extern uint16_t N311[8];
extern uint32_t T304[8];
73
extern uint32_t timeToTrigger_ms[16];
74 75
extern float RSRP_meas_mapping[98];
extern float RSRQ_meas_mapping[35];
76

77
extern UE_PF_PO_t UE_PF_PO[NFAPI_CC_MAX][MAX_MOBILES_PER_ENB];
78 79
extern pthread_mutex_t ue_pf_po_mutex;

80
extern uint16_t reestablish_rnti_map[MAX_MOBILES_PER_ENB][2];
81

82 83 84
#endif