phy_extern_nr_ue.h 3.81 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
/*
 * 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
 * the OAI Public License, Version 1.1  (the "License"); you may not use this file
 * 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
#ifndef __PHY_EXTERN_NR_UE__H__
#define __PHY_EXTERN_NR_UE__H__
24 25

#include "PHY/defs_nr_UE.h"
26
//#include "common/ran_context.h"
27

28 29 30 31 32
#ifdef XFORMS
  #include "PHY/TOOLS/nr_phy_scope.h"
  extern char do_forms;
#endif

33
extern char* namepointer_chMag ;
34
extern char* namepointer_log2;
35
extern char  fmageren_name2[512];
36 37 38 39

extern unsigned int RX_DMA_BUFFER[4][NB_ANTENNAS_RX];
extern unsigned int TX_DMA_BUFFER[4][NB_ANTENNAS_TX];

40 41
extern uint64_t downlink_frequency[MAX_NUM_CCs][4];
extern int32_t uplink_frequency_offset[MAX_NUM_CCs][4];
42

43 44 45
extern int   point_a_15khz;
extern int   kssb_15khz;

laurent's avatar
laurent committed
46
extern const short conjugate[8],conjugate2[8];
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
extern int number_of_cards;


extern PHY_VARS_NR_UE ***PHY_vars_UE_g;

extern short primary_synch0[144];
extern short primary_synch1[144];
extern short primary_synch2[144];
extern unsigned char primary_synch0_tab[72];
extern unsigned char primary_synch1_tab[72];
extern unsigned char primary_synch2_tab[72];
extern int16_t *primary_synch0_time; //!< index: [0..ofdm_symbol_size*2[
extern int16_t *primary_synch1_time; //!< index: [0..ofdm_symbol_size*2[
extern int16_t *primary_synch2_time; //!< index: [0..ofdm_symbol_size*2[

extern int flagMag;
//extern short **txdataF_rep_tmp;

extern char mode_string[4][20];

extern unsigned char NB_RU;

#ifndef OPENAIR2
extern unsigned char NB_eNB_INST;
71
extern uint16_t NB_UE_INST;
72 73 74 75 76 77 78
extern unsigned char NB_RN_INST;
#endif

extern int flag_LA;
extern double sinr_bler_map[MCS_COUNT][2][MCS_TABLE_LENGTH_MAX];
extern double sinr_bler_map_up[MCS_COUNT][2][16];
extern int table_length[MCS_COUNT];
laurent's avatar
laurent committed
79 80
extern const double sinr_to_cqi[4][16];
extern const int cqi_to_mcs[16];
81 82 83 84 85 86 87

//for MU-MIMO abstraction using MIESM
//this 2D arrarays contains SINR, MI and RBIR in rows 1, 2, and 3 respectively
extern double MI_map_4qam[3][162];
extern double MI_map_16qam[3][197];
extern double MI_map_64qam[3][227];

laurent's avatar
laurent committed
88 89
extern const double beta1_dlsch_MI[6][MCS_COUNT];
extern const double beta2_dlsch_MI[6][MCS_COUNT];
90

laurent's avatar
laurent committed
91 92 93
extern const double q_qpsk[8];
extern const double q_qam16[8];
extern const double q_qam64[8];
94

laurent's avatar
laurent committed
95 96
extern const double beta1_dlsch[6][MCS_COUNT];
extern const double beta2_dlsch[6][MCS_COUNT];
97

laurent's avatar
laurent committed
98 99 100
extern const char NB_functions[7][20];
extern const char NB_timing[2][20];
extern const char ru_if_types[MAX_RU_IF_TYPES][20];
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116

extern int16_t unscrambling_lut[65536*16];
extern uint8_t scrambling_lut[65536*16];

extern unsigned short msrsb_6_40[8][4];
extern unsigned short msrsb_41_60[8][4];
extern unsigned short msrsb_61_80[8][4];
extern unsigned short msrsb_81_110[8][4];
extern unsigned short Nb_6_40[8][4];
extern unsigned short Nb_41_60[8][4];
extern unsigned short Nb_61_80[8][4];
extern unsigned short Nb_81_110[8][4];

extern uint16_t hundred_times_log10_NPRB[100];
extern uint8_t alpha_lut[8];
extern uint8_t max_turbo_iterations;
117 118 119

extern double cpuf;

120 121
#endif /*__PHY_EXTERN_H__ */