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.
45 lines
1.4 KiB
C++
45 lines
1.4 KiB
C++
/**
|
|
* Copyright 2013-2023 Software Radio Systems Limited
|
|
*
|
|
* This file is part of srsRAN.
|
|
*
|
|
* srsRAN is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Affero General Public License as
|
|
* published by the Free Software Foundation, either version 3 of
|
|
* the License, or (at your option) any later version.
|
|
*
|
|
* srsRAN is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Affero General Public License for more details.
|
|
*
|
|
* A copy of the GNU Affero General Public License can be found in
|
|
* the LICENSE file in the top-level directory of this distribution
|
|
* and at http://www.gnu.org/licenses/.
|
|
*
|
|
*/
|
|
|
|
#ifndef SRSRAN_RRC_NR_CONFIG_DEFAULT_H
|
|
#define SRSRAN_RRC_NR_CONFIG_DEFAULT_H
|
|
|
|
#include "rrc_nr_config.h"
|
|
|
|
namespace srsenb {
|
|
|
|
// Helper methods
|
|
uint32_t coreset_get_bw(const asn1::rrc_nr::ctrl_res_set_s& coreset);
|
|
int coreset_get_pdcch_nr_max_candidates(const asn1::rrc_nr::ctrl_res_set_s& coreset, uint32_t aggregation_level);
|
|
|
|
void generate_default_nr_cell(rrc_cell_cfg_nr_t& cell);
|
|
|
|
int set_derived_nr_cell_params(bool is_sa, rrc_cell_cfg_nr_t& cell);
|
|
int set_derived_nr_rrc_params(rrc_nr_cfg_t& rrc_cfg);
|
|
|
|
// Tests to ensure validity of config
|
|
|
|
int check_nr_pdcch_cfg_valid(const srsran_pdcch_cfg_nr_t& pdcch);
|
|
|
|
} // namespace srsenb
|
|
|
|
#endif // SRSRAN_RRC_NR_CONFIG_DEFAULT_H
|