srsLTE/lib/include/srslte/phy/ue/ue_dl_nr_data.h

67 lines
2.5 KiB
C
Raw Normal View History

/**
2020-10-16 06:18:24 -07:00
*
* \section COPYRIGHT
2020-10-16 06:18:24 -07:00
*
* Copyright 2013-2020 Software Radio Systems Limited
2020-10-16 06:18:24 -07: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-10-16 06:18:24 -07:00
*
*/
/******************************************************************************
* @file ue_dl_nr.h
*
2020-10-22 00:53:59 -07:00
* Description: NR UE downlink physical layer procedures for data
2020-10-16 06:18:24 -07:00
*
* This module is a frontend to all the downlink data channel processing modules.
*
* Reference:
*****************************************************************************/
#ifndef SRSLTE_UE_DL_NR_DATA_H
#define SRSLTE_UE_DL_NR_DATA_H
#include "srslte/phy/common/phy_common_nr.h"
#include "srslte/phy/phch/pdsch_cfg_nr.h"
#ifdef __cplusplus
extern "C" {
#endif
2020-10-16 06:18:24 -07:00
/**
* @brief Calculates the PDSCH time resource provided by higher layers and stores it in the provided PDSCH NR grant.
2020-10-16 06:18:24 -07:00
*
2020-10-19 10:54:23 -07:00
* @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
2020-10-16 06:18:24 -07:00
* PDSCH
*
* @param pdsch_alloc Flattened PHY PDSCH allocation configuration provided from higher layers
* @param[out] grant PDSCH mapping type
2020-10-16 06:18:24 -07:00
* @return Returns SRSLTE_SUCCESS if the provided allocation is valid, otherwise it returns SRSLTE_ERROR code
*/
SRSLTE_API int srslte_ue_dl_nr_pdsch_time_resource_hl(const srslte_pdsch_allocation_t* pdsch_alloc,
srslte_pdsch_grant_nr_t* grant);
2020-10-16 06:18:24 -07:00
/**
* @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.
2020-10-16 06:18:24 -07:00
*
* @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
2020-10-16 06:18:24 -07:00
* CP
*
* @param m Time domain resource assignment field value m of the DCI
* @param dmrs_typeA_pos DMRS TypeA position provided by higher layers
* @param[out] grant PDSCH mapping type
2020-10-16 06:18:24 -07:00
* @return Returns SRSLTE_SUCCESS if the provided allocation is valid, otherwise it returns SRSLTE_ERROR code
*/
SRSLTE_API int srslte_ue_dl_nr_pdsch_time_resource_default_A(uint32_t m,
srslte_dmrs_pdsch_typeA_pos_t dmrs_typeA_pos,
srslte_pdsch_grant_nr_t* grant);
2020-10-16 06:18:24 -07:00
#ifdef __cplusplus
}
#endif
2020-10-16 06:18:24 -07:00
#endif // SRSLTE_UE_DL_NR_DATA_H