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.
93 lines
4.1 KiB
C
93 lines
4.1 KiB
C
4 years ago
|
/**
|
||
4 years ago
|
*
|
||
4 years ago
|
* \section COPYRIGHT
|
||
4 years ago
|
*
|
||
4 years ago
|
* Copyright 2013-2021 Software Radio Systems Limited
|
||
4 years ago
|
*
|
||
4 years ago
|
* 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.
|
||
4 years ago
|
*
|
||
|
*/
|
||
|
|
||
|
/******************************************************************************
|
||
|
* @file ue_dl_nr.h
|
||
|
*
|
||
4 years ago
|
* Description: NR UE downlink physical layer procedures for data
|
||
4 years ago
|
*
|
||
|
* This module is a frontend to all the downlink data channel processing modules.
|
||
|
*
|
||
|
* Reference:
|
||
|
*****************************************************************************/
|
||
|
|
||
4 years ago
|
#ifndef SRSRAN_RA_DL_NR_H
|
||
|
#define SRSRAN_RA_DL_NR_H
|
||
4 years ago
|
|
||
4 years ago
|
#include "srsran/phy/common/phy_common_nr.h"
|
||
|
#include "srsran/phy/phch/dci_nr.h"
|
||
|
#include "srsran/phy/phch/phch_cfg_nr.h"
|
||
4 years ago
|
|
||
|
/**
|
||
4 years ago
|
* @brief Calculates the PDSCH time resource allocation and stores it in the provided PDSCH NR grant.
|
||
4 years ago
|
*
|
||
4 years ago
|
* @remark Defined by TS 38.214 V15.10.0 section 5.1.2.1.1 Determination of the resource allocation table to be used for
|
||
4 years ago
|
* PDSCH
|
||
|
*
|
||
4 years ago
|
* @param cfg Flattened PDSCH configuration provided from higher layers
|
||
4 years ago
|
* @param rnti_type Type of the RNTI of the corresponding DCI
|
||
|
* @param ss_type Type of the SS for PDCCH
|
||
4 years ago
|
* @param coreset_id CORESET identifier associated with the PDCCH transmission
|
||
4 years ago
|
* @param m Time domain resource assignment field value m provided in DCI
|
||
|
* @param[out] Provides grant pointer to fill
|
||
4 years ago
|
* @return Returns SRSRAN_SUCCESS if the provided allocation is valid, otherwise it returns SRSRAN_ERROR code
|
||
4 years ago
|
*/
|
||
4 years ago
|
SRSRAN_API int srsran_ra_dl_nr_time(const srsran_sch_hl_cfg_nr_t* cfg,
|
||
|
const srsran_rnti_type_t rnti_type,
|
||
|
const srsran_search_space_type_t ss_type,
|
||
4 years ago
|
const uint32_t coreset_id,
|
||
4 years ago
|
const uint8_t m,
|
||
4 years ago
|
srsran_sch_grant_nr_t* grant);
|
||
4 years ago
|
|
||
|
/**
|
||
4 years ago
|
* @brief Calculates the PDSCH time resource default A and stores it in the provided PDSCH NR grant. This can be used by
|
||
|
* SI-RNTI, RA-RNTI, P-RNTI and C-RNTI. See Table 5.1.2.1.1-1 for more details about the usage.
|
||
4 years ago
|
*
|
||
4 years ago
|
* @remark Defined by TS 38.214 V15.10.0 Table 5.1.2.1.1-2: Default PDSCH time domain resource allocation A for normal
|
||
4 years ago
|
* CP
|
||
|
*
|
||
|
* @param m Time domain resource assignment field value m of the DCI
|
||
|
* @param dmrs_typeA_pos DMRS TypeA position provided by higher layers
|
||
4 years ago
|
* @param[out] grant PDSCH mapping type
|
||
4 years ago
|
* @return Returns SRSRAN_SUCCESS if the provided allocation is valid, otherwise it returns SRSRAN_ERROR code
|
||
4 years ago
|
*/
|
||
4 years ago
|
SRSRAN_API int
|
||
|
srsran_ra_dl_nr_time_default_A(uint32_t m, srsran_dmrs_sch_typeA_pos_t dmrs_typeA_pos, srsran_sch_grant_nr_t* grant);
|
||
4 years ago
|
/**
|
||
|
* @brief Calculates the number of PDSCH-DMRS CDM groups without data for DCI format 1_0
|
||
|
*
|
||
|
* @remark Defined by TS 38.214 V15.10.0 5.1.6.1.3 CSI-RS for mobility
|
||
|
*
|
||
4 years ago
|
* @param cfg PDSCH-DMRS NR configuration by upper layers
|
||
4 years ago
|
* @param[out] grant Provides grant pointer to fill
|
||
4 years ago
|
* @return Returns SRSRAN_SUCCESS if the provided data is valid, otherwise it returns SRSRAN_ERROR code
|
||
4 years ago
|
*/
|
||
4 years ago
|
SRSRAN_API int srsran_ra_dl_nr_nof_dmrs_cdm_groups_without_data_format_1_0(const srsran_dmrs_sch_cfg_t* cfg,
|
||
|
srsran_sch_grant_nr_t* grant);
|
||
4 years ago
|
|
||
4 years ago
|
/**
|
||
|
* @brief Calculates the PDSCH frequency resource allocation and stores it in the provided PDSCH NR grant.
|
||
|
*
|
||
|
* @remark Defined by TS 38.214 V15.10.0 section 5.1.2.2
|
||
|
* @param carrier Carrier information
|
||
|
* @param cfg PDSCH NR configuration by upper layers
|
||
|
* @param dci_dl Unpacked DCI used to schedule the PDSCH grant
|
||
|
* @param[out] grant Provides grant pointer to fill
|
||
4 years ago
|
* @return SRSRAN_SUCCESS if the provided data is valid, SRSRAN_ERROR code otherwise
|
||
4 years ago
|
*/
|
||
4 years ago
|
SRSRAN_API int srsran_ra_dl_nr_freq(const srsran_carrier_nr_t* carrier,
|
||
|
const srsran_sch_hl_cfg_nr_t* cfg,
|
||
|
const srsran_dci_dl_nr_t* dci_dl,
|
||
|
srsran_sch_grant_nr_t* grant);
|
||
4 years ago
|
|
||
4 years ago
|
#endif // SRSRAN_RA_DL_NR_H
|