mirror of https://github.com/pvnis/srsRAN_4G.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
2.0 KiB
C
66 lines
2.0 KiB
C
4 years ago
|
/**
|
||
|
*
|
||
|
* \section COPYRIGHT
|
||
|
*
|
||
|
* Copyright 2013-2021 Software Radio Systems Limited
|
||
|
*
|
||
|
* 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.
|
||
|
*
|
||
|
*/
|
||
|
|
||
3 years ago
|
#ifndef SRSRAN_RRC_NR_CONFIG_H
|
||
|
#define SRSRAN_RRC_NR_CONFIG_H
|
||
4 years ago
|
|
||
3 years ago
|
#include "srsenb/hdr/phy/phy_interfaces.h"
|
||
3 years ago
|
#include "srsenb/hdr/stack/rrc/rrc_config_common.h"
|
||
4 years ago
|
#include "srsran/asn1/rrc_nr.h"
|
||
3 years ago
|
#include "srsran/interfaces/gnb_rrc_nr_interfaces.h"
|
||
4 years ago
|
#include "srsue/hdr/phy/phy_common.h"
|
||
|
|
||
|
namespace srsenb {
|
||
|
|
||
|
// TODO: Make this common to NR and LTE
|
||
|
struct rrc_nr_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;
|
||
|
};
|
||
|
|
||
3 years ago
|
// Cell/Sector configuration for NR cells
|
||
|
struct rrc_cell_cfg_nr_t {
|
||
|
phy_cell_cfg_nr_t phy_cell; // already contains all PHY-related parameters (i.e. RF port, PCI, etc.)
|
||
|
uint32_t tac; // Tracking area code
|
||
|
uint32_t dl_arfcn; // DL freq already included in phy_cell
|
||
|
uint32_t ul_arfcn; // UL freq also in phy_cell
|
||
|
uint32_t dl_absolute_freq_point_a; // derived from DL ARFCN
|
||
|
uint32_t ul_absolute_freq_point_a; // derived from UL ARFCN
|
||
|
uint32_t ssb_absolute_freq_point; // derived from DL ARFCN
|
||
|
uint32_t band;
|
||
3 years ago
|
uint32_t coreset0_idx; // Table 13-{1,...15} row index
|
||
3 years ago
|
srsran_duplex_mode_t duplex_mode;
|
||
|
srsran_ssb_cfg_t ssb_cfg;
|
||
|
};
|
||
|
|
||
|
typedef std::vector<rrc_cell_cfg_nr_t> rrc_cell_list_nr_t;
|
||
|
|
||
4 years ago
|
struct rrc_nr_cfg_t {
|
||
3 years ago
|
rrc_nr_cfg_sr_t sr_cfg;
|
||
|
rrc_cfg_cqi_t cqi_cfg;
|
||
|
rrc_cell_list_nr_t cell_list;
|
||
|
asn1::rrc_nr::rach_cfg_common_s rach_cfg_common;
|
||
|
uint16_t prach_root_seq_idx_type;
|
||
|
bool is_standalone;
|
||
4 years ago
|
|
||
3 years ago
|
std::string log_name = "RRC-NR";
|
||
4 years ago
|
std::string log_level;
|
||
|
uint32_t log_hex_limit;
|
||
|
};
|
||
|
|
||
|
} // namespace srsenb
|
||
|
|
||
3 years ago
|
#endif // SRSRAN_RRC_NR_CONFIG_H
|