2020-11-26 01:25:22 -08:00
|
|
|
/**
|
2020-01-22 09:03:50 -08:00
|
|
|
*
|
2020-11-26 01:25:22 -08:00
|
|
|
* \section COPYRIGHT
|
2020-01-22 09:03:50 -08:00
|
|
|
*
|
2021-03-19 03:45:56 -07:00
|
|
|
* Copyright 2013-2021 Software Radio Systems Limited
|
2020-01-22 09:03:50 -08: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-01-22 09:03:50 -08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SRSENB_PHY_INTERFACES_H_
|
|
|
|
#define SRSENB_PHY_INTERFACES_H_
|
|
|
|
|
2021-03-19 03:45:56 -07:00
|
|
|
#include "srsran/asn1/rrc/rr_common.h"
|
|
|
|
#include "srsran/common/interfaces_common.h"
|
|
|
|
#include "srsran/phy/channel/channel.h"
|
|
|
|
#include "srsran/phy/common/phy_common_nr.h"
|
2020-01-22 09:03:50 -08:00
|
|
|
#include <inttypes.h>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace srsenb {
|
|
|
|
|
|
|
|
struct phy_cell_cfg_t {
|
2021-03-19 03:45:56 -07:00
|
|
|
srsran_cell_t cell;
|
2020-01-22 09:03:50 -08:00
|
|
|
uint32_t rf_port;
|
|
|
|
uint32_t cell_id;
|
2020-03-13 00:41:18 -07:00
|
|
|
double dl_freq_hz;
|
|
|
|
double ul_freq_hz;
|
2020-01-22 09:03:50 -08:00
|
|
|
uint32_t root_seq_idx;
|
2020-04-20 08:33:40 -07:00
|
|
|
uint32_t num_ra_preambles;
|
2020-08-25 09:07:56 -07:00
|
|
|
float gain_db;
|
2020-01-22 09:03:50 -08:00
|
|
|
};
|
|
|
|
|
2020-11-18 05:48:43 -08:00
|
|
|
struct phy_cell_cfg_nr_t {
|
2021-03-19 03:45:56 -07:00
|
|
|
srsran_carrier_nr_t carrier;
|
2020-11-18 05:48:43 -08:00
|
|
|
uint32_t rf_port;
|
|
|
|
uint32_t cell_id;
|
|
|
|
double dl_freq_hz;
|
|
|
|
double ul_freq_hz;
|
|
|
|
uint32_t root_seq_idx;
|
|
|
|
uint32_t num_ra_preambles;
|
|
|
|
float gain_db;
|
|
|
|
};
|
|
|
|
|
2020-11-23 00:43:12 -08:00
|
|
|
typedef std::vector<phy_cell_cfg_t> phy_cell_cfg_list_t;
|
2020-11-18 05:48:43 -08:00
|
|
|
typedef std::vector<phy_cell_cfg_nr_t> phy_cell_cfg_list_nr_t;
|
2020-01-22 09:03:50 -08:00
|
|
|
|
|
|
|
struct phy_args_t {
|
|
|
|
std::string type;
|
2021-03-19 03:45:56 -07:00
|
|
|
srsran::phy_log_args_t log;
|
2020-01-22 09:03:50 -08:00
|
|
|
|
2020-02-05 08:54:26 -08:00
|
|
|
float max_prach_offset_us = 10;
|
|
|
|
int pusch_max_its = 10;
|
|
|
|
bool pusch_8bit_decoder = false;
|
|
|
|
float tx_amplitude = 1.0f;
|
2020-11-18 03:16:43 -08:00
|
|
|
uint32_t nof_phy_threads = 1;
|
2020-02-05 08:54:26 -08:00
|
|
|
std::string equalizer_mode = "mmse";
|
|
|
|
float estimator_fil_w = 1.0f;
|
2020-03-12 08:49:24 -07:00
|
|
|
bool pusch_meas_epre = true;
|
2020-04-28 02:06:17 -07:00
|
|
|
bool pusch_meas_evm = false;
|
2020-03-02 08:51:00 -08:00
|
|
|
bool pusch_meas_ta = true;
|
2020-07-29 04:17:47 -07:00
|
|
|
bool pucch_meas_ta = true;
|
2020-12-26 13:41:41 -08:00
|
|
|
uint32_t nof_prach_threads = 1;
|
2021-05-16 09:18:45 -07:00
|
|
|
bool extended_cp = false;
|
2021-03-19 03:45:56 -07:00
|
|
|
srsran::channel::args_t dl_channel_args;
|
|
|
|
srsran::channel::args_t ul_channel_args;
|
2020-06-09 11:58:04 -07:00
|
|
|
|
2021-03-19 03:45:56 -07:00
|
|
|
srsran::vnf_args_t vnf_args;
|
2020-01-22 09:03:50 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct phy_cfg_t {
|
|
|
|
// Individual cell/sector configuration list
|
2020-11-23 00:43:12 -08:00
|
|
|
phy_cell_cfg_list_t phy_cell_cfg;
|
2020-11-18 05:48:43 -08:00
|
|
|
phy_cell_cfg_list_nr_t phy_cell_cfg_nr;
|
2020-01-22 09:03:50 -08:00
|
|
|
|
|
|
|
// Common configuration for all cells
|
|
|
|
asn1::rrc::prach_cfg_sib_s prach_cnfg;
|
|
|
|
asn1::rrc::pdsch_cfg_common_s pdsch_cnfg;
|
|
|
|
asn1::rrc::pusch_cfg_common_s pusch_cnfg;
|
|
|
|
asn1::rrc::pucch_cfg_common_s pucch_cnfg;
|
|
|
|
asn1::rrc::srs_ul_cfg_common_c srs_ul_cnfg;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace srsenb
|
|
|
|
|
|
|
|
#endif // SRSENB_PHY_INTERFACES_H_
|