NRRRC_paramsvalues.h 5.46 KB
Newer Older
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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
/*
 * 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
 */

/*! \file openair2/GNB_APP/RRC_paramsvalues.h
 * \brief macro definitions for RRC authorized and asn1 parameters values, to be used in paramdef_t/chechedparam_t structure initializations 
 * \author Francois TABURET
 * \date 2017
 * \version 0.1
 * \company NOKIA BellLabs France
 * \email: francois.taburet@nokia-bell-labs.com
 * \note
 * \warning
 */
#ifndef __NRRRC_PARAMSVALUES__H__
#define __NRRRC_PARAMSVALUES__H__
/*    cell configuration section name */
#define GNB_CONFIG_STRING_GNB_LIST								"gNBs"
/* component carriers configuration section name */		
#define GNB_CONFIG_STRING_COMPONENT_CARRIERS					"component_carriers"		 

#define GNB_CONFIG_STRING_FRAME_TYPE							"frame_type"
#define GNB_CONFIG_STRING_TDD_CONFIG							"tdd_config"
#define GNB_CONFIG_STRING_TDD_CONFIG_S							"tdd_config_s"
#define GNB_CONFIG_STRING_PREFIX_TYPE							"prefix_type"
#define GNB_CONFIG_STRING_PREFIX_TYPE_UL						"prefix_type_UL"
#define GNB_CONFIG_STRING_EUTRA_BAND							"eutra_band"
#define GNB_CONFIG_STRING_DOWNLINK_FREQUENCY					"downlink_frequency"
#define GNB_CONFIG_STRING_UPLINK_FREQUENCY_OFFSET				"uplink_frequency_offset"
#define GNB_CONFIG_STRING_NID_CELL								"Nid_cell"
#define GNB_CONFIG_STRING_N_RB_DL								"N_RB_DL"
#define GNB_CONFIG_STRING_CELL_MBSFN							"Nid_cell_mbsfn"


#define FRAMETYPE_OKVALUES                                      {"FDD","TDD"}
#define FRAMETYPE_MODVALUES                                     { FDD, TDD} 

#define TDDCFG(A)                                               TDD_Config__subframeAssignment_ ## A
#define TDDCONFIG_OKRANGE                                       { TDDCFG(sa0), TDDCFG(sa6)}   

#define TDDCFGS(A)                                              TDD_Config__specialSubframePatterns_ ## A
#define TDDCONFIGS_OKRANGE                                      { TDDCFGS(ssp0), TDDCFGS(ssp8)}   

#define PREFIX_OKVALUES                                         {"NORMAL","EXTENDED"}
#define PREFIX_MODVALUES                                        { NORMAL, EXTENDED} 

#define PREFIXUL_OKVALUES                                       {"NORMAL","EXTENDED"}
#define PREFIXUL_MODVALUES                                      { NORMAL, EXTENDED} 

#define NRBDL_OKVALUES                                          {6,15,25,50,75,100}

#define UETIMER_T300_OKVALUES                                   {100,200,300,400,600,1000,1500,2000}
#define UETT300(A)                                              UE_TimersAndConstants__t300_ ## A
#define UETIMER_T300_MODVALUES                                  { UETT300(ms100), UETT300(ms200),UETT300(ms300),UETT300(ms400),UETT300(ms600),UETT300(ms1000),UETT300(ms1500),UETT300(ms2000)}           		

#define UETIMER_T301_OKVALUES                                   {100,200,300,400,600,1000,1500,2000}
#define UETT301(A)                                              UE_TimersAndConstants__t301_ ## A
#define UETIMER_T301_MODVALUES                                  { UETT301(ms100), UETT301(ms200),UETT301(ms300),UETT301(ms400),UETT301(ms600),UETT301(ms1000),UETT301(ms1500),UETT301(ms2000)}

#define UETIMER_T310_OKVALUES                                   {0,50,100,200,500,1000,2000}
#define UETT310(A)                                              UE_TimersAndConstants__t310_ ## A
#define UETIMER_T310_MODVALUES                                  { UETT310(ms0), UETT310(ms50),UETT310(ms100),UETT310(ms200),UETT310(ms500),UETT310(ms1000),UETT310(ms2000)}

#define UETIMER_T311_OKVALUES                                   {1000,3110,5000,10000,15000,20000,31100}
#define UETT311(A)                                              UE_TimersAndConstants__t311_ ## A
#define UETIMER_T311_MODVALUES                                  { UETT311(ms1000), UETT311(ms3000),UETT311(ms5000),UETT311(ms10000),UETT311(ms15000),UETT311(ms20000),UETT311(ms30000)}

#define UETIMER_N310_OKVALUES                                   {1,2,3,4,6,8,10,20}
#define UETN310(A)                                              UE_TimersAndConstants__n310_ ## A
#define UETIMER_N310_MODVALUES                                  { UETN310(n1), UETN310(n2),UETN310(n3),UETN310(n4),UETN310(n6),UETN310(n8),UETN310(n10),UETN310(n20)}

#define UETIMER_N311_OKVALUES                                   {1,2,3,4,5,6,8,10}
#define UETN311(A)                                              UE_TimersAndConstants__n311_ ## A
#define UETIMER_N311_MODVALUES                                  { UETN311(n1), UETN311(n2),UETN311(n3),UETN311(n4),UETN311(n5),UETN311(n6),UETN311(n8),UETN311(n10)}

#endif