2020-11-26 01:25:22 -08:00
|
|
|
/**
|
2020-04-30 04:51:50 -07:00
|
|
|
*
|
2020-11-26 01:25:22 -08:00
|
|
|
* \section COPYRIGHT
|
2020-04-30 04:51:50 -07:00
|
|
|
*
|
2021-03-19 03:45:56 -07:00
|
|
|
* Copyright 2013-2021 Software Radio Systems Limited
|
2020-04-30 04:51:50 -07:00
|
|
|
*
|
2020-11-26 01:25:22 -08:00
|
|
|
* By using this file, you agree to the terms and conditions set
|
|
|
|
* forth in the LICENSE file which can be found at the top level of
|
|
|
|
* the distribution.
|
2020-04-30 04:51:50 -07:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2021-03-19 03:45:56 -07:00
|
|
|
#ifndef SRSRAN_RRC_CONFIG_H
|
|
|
|
#define SRSRAN_RRC_CONFIG_H
|
2020-04-30 04:51:50 -07:00
|
|
|
|
2020-06-03 11:59:25 -07:00
|
|
|
#include "rrc_config_common.h"
|
2021-03-19 03:45:56 -07:00
|
|
|
#include "srsran/asn1/rrc.h"
|
|
|
|
#include "srsran/common/security.h"
|
|
|
|
#include "srsran/interfaces/enb_rrc_interface_types.h"
|
|
|
|
#include "srsran/phy/common/phy_common.h"
|
2020-06-08 04:16:18 -07:00
|
|
|
#include <array>
|
2020-04-30 04:51:50 -07:00
|
|
|
|
|
|
|
namespace srsenb {
|
|
|
|
|
|
|
|
struct rrc_cfg_sr_t {
|
|
|
|
uint32_t period;
|
|
|
|
asn1::rrc::sched_request_cfg_c::setup_s_::dsr_trans_max_e_ dsr_max;
|
|
|
|
uint32_t nof_prb;
|
|
|
|
uint32_t sf_mapping[80];
|
|
|
|
uint32_t nof_subframes;
|
|
|
|
};
|
|
|
|
|
2021-02-20 12:34:11 -08:00
|
|
|
struct rrc_cfg_qci_t {
|
2021-01-06 11:53:54 -08:00
|
|
|
bool configured = false;
|
2020-04-30 04:51:50 -07:00
|
|
|
asn1::rrc::lc_ch_cfg_s::ul_specific_params_s_ lc_cfg;
|
|
|
|
asn1::rrc::pdcp_cfg_s pdcp_cfg;
|
|
|
|
asn1::rrc::rlc_cfg_c rlc_cfg;
|
2021-02-20 12:34:11 -08:00
|
|
|
};
|
2020-04-30 04:51:50 -07:00
|
|
|
|
|
|
|
struct rrc_cfg_t {
|
|
|
|
uint32_t enb_id; ///< Required to pack SIB1
|
|
|
|
// Per eNB SIBs
|
|
|
|
asn1::rrc::sib_type1_s sib1;
|
|
|
|
asn1::rrc::sib_info_item_c sibs[ASN1_RRC_MAX_SIB];
|
|
|
|
asn1::rrc::mac_main_cfg_s mac_cnfg;
|
|
|
|
|
2020-11-17 07:00:13 -08:00
|
|
|
asn1::rrc::pusch_cfg_ded_s pusch_cfg;
|
|
|
|
asn1::rrc::ant_info_ded_s antenna_info;
|
|
|
|
asn1::rrc::pdsch_cfg_ded_s::p_a_e_ pdsch_cfg;
|
|
|
|
rrc_cfg_sr_t sr_cfg;
|
|
|
|
rrc_cfg_cqi_t cqi_cfg;
|
2021-02-20 12:34:11 -08:00
|
|
|
std::map<uint32_t, rrc_cfg_qci_t> qci_cfg;
|
2020-11-17 07:00:13 -08:00
|
|
|
bool enable_mbsfn;
|
|
|
|
uint16_t mbms_mcs;
|
|
|
|
uint32_t inactivity_timeout_ms;
|
2021-03-19 03:45:56 -07:00
|
|
|
std::array<srsran::CIPHERING_ALGORITHM_ID_ENUM, srsran::CIPHERING_ALGORITHM_ID_N_ITEMS> eea_preference_list;
|
|
|
|
std::array<srsran::INTEGRITY_ALGORITHM_ID_ENUM, srsran::INTEGRITY_ALGORITHM_ID_N_ITEMS> eia_preference_list;
|
2020-11-17 07:00:13 -08:00
|
|
|
bool meas_cfg_present = false;
|
2021-03-19 03:45:56 -07:00
|
|
|
srsran_cell_t cell;
|
2020-11-17 07:00:13 -08:00
|
|
|
cell_list_t cell_list;
|
2020-11-23 00:43:12 -08:00
|
|
|
cell_list_t cell_list_nr;
|
2021-03-31 07:47:10 -07:00
|
|
|
uint32_t max_mac_dl_kos;
|
2021-04-15 10:13:01 -07:00
|
|
|
uint32_t max_mac_ul_kos;
|
2021-05-06 08:25:03 -07:00
|
|
|
uint32_t rlf_release_timer_ms;
|
2020-04-30 04:51:50 -07:00
|
|
|
};
|
|
|
|
|
2020-04-30 09:47:23 -07:00
|
|
|
constexpr uint32_t UE_PCELL_CC_IDX = 0;
|
|
|
|
|
2020-11-17 07:00:13 -08:00
|
|
|
struct ue_var_cfg_t {
|
|
|
|
asn1::rrc::rr_cfg_ded_s rr_cfg;
|
2020-11-18 05:24:06 -08:00
|
|
|
asn1::rrc::meas_cfg_s meas_cfg;
|
2020-11-17 07:00:13 -08:00
|
|
|
asn1::rrc::scell_to_add_mod_list_r10_l scells;
|
|
|
|
};
|
|
|
|
|
2020-04-30 04:51:50 -07:00
|
|
|
} // namespace srsenb
|
|
|
|
|
2021-03-19 03:45:56 -07:00
|
|
|
#endif // SRSRAN_RRC_CONFIG_H
|