2019-04-26 12:27:38 -07:00
|
|
|
/*
|
2020-03-13 04:12:52 -07:00
|
|
|
* Copyright 2013-2020 Software Radio Systems Limited
|
2015-04-27 09:14:28 -07:00
|
|
|
*
|
2019-04-26 12:27:38 -07:00
|
|
|
* This file is part of srsLTE.
|
2015-04-27 09:14:28 -07:00
|
|
|
*
|
|
|
|
* srsLTE is free software: you can redistribute it and/or modify
|
2015-05-08 08:05:40 -07:00
|
|
|
* it under the terms of the GNU Affero General Public License as
|
2015-04-27 09:14:28 -07:00
|
|
|
* published by the Free Software Foundation, either version 3 of
|
|
|
|
* the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* srsLTE 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
|
2015-05-08 08:05:40 -07:00
|
|
|
* GNU Affero General Public License for more details.
|
2015-04-27 09:14:28 -07:00
|
|
|
*
|
2015-05-08 08:05:40 -07:00
|
|
|
* A copy of the GNU Affero General Public License can be found in
|
2015-04-27 09:14:28 -07:00
|
|
|
* the LICENSE file in the top-level directory of this distribution
|
|
|
|
* and at http://www.gnu.org/licenses/.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* File: pdsch_cfg.h
|
|
|
|
*
|
|
|
|
* Description: Physical downlink shared channel configuration
|
|
|
|
*
|
|
|
|
* Reference: 3GPP TS 36.211 version 10.0.0 Release 10 Sec. 6.4
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2018-03-31 10:04:04 -07:00
|
|
|
#ifndef SRSLTE_PDSCH_CFG_H
|
|
|
|
#define SRSLTE_PDSCH_CFG_H
|
2015-04-27 09:14:28 -07:00
|
|
|
|
2019-12-16 07:04:22 -08:00
|
|
|
#include "srslte/phy/fec/softbuffer.h"
|
2020-10-28 10:58:38 -07:00
|
|
|
#include "srslte/phy/fec/turbo/cbsegm.h"
|
2019-12-16 07:04:22 -08:00
|
|
|
#include "srslte/phy/phch/ra.h"
|
2015-04-27 09:14:28 -07:00
|
|
|
|
2019-04-23 01:53:11 -07:00
|
|
|
typedef struct SRSLTE_API {
|
2017-11-21 07:11:08 -08:00
|
|
|
|
2019-04-23 01:53:11 -07:00
|
|
|
srslte_tx_scheme_t tx_scheme;
|
|
|
|
uint32_t pmi;
|
|
|
|
bool prb_idx[2][SRSLTE_MAX_PRB];
|
|
|
|
uint32_t nof_prb;
|
|
|
|
uint32_t nof_re;
|
|
|
|
uint32_t nof_symb_slot[2];
|
|
|
|
srslte_ra_tb_t tb[SRSLTE_MAX_CODEWORDS];
|
|
|
|
int last_tbs[SRSLTE_MAX_CODEWORDS];
|
|
|
|
uint32_t nof_tb;
|
|
|
|
uint32_t nof_layers;
|
|
|
|
} srslte_pdsch_grant_t;
|
2017-11-21 07:11:08 -08:00
|
|
|
|
2015-04-27 09:14:28 -07:00
|
|
|
typedef struct SRSLTE_API {
|
2019-04-23 01:53:11 -07:00
|
|
|
|
|
|
|
srslte_pdsch_grant_t grant;
|
|
|
|
|
|
|
|
uint16_t rnti;
|
|
|
|
uint32_t max_nof_iterations;
|
|
|
|
srslte_mimo_decoder_t decoder_type;
|
|
|
|
float p_a;
|
|
|
|
uint32_t p_b;
|
|
|
|
float rs_power;
|
|
|
|
bool power_scale;
|
|
|
|
bool csi_enable;
|
2019-09-04 07:59:10 -07:00
|
|
|
bool use_tbs_index_alt;
|
2019-04-23 01:53:11 -07:00
|
|
|
|
|
|
|
union {
|
|
|
|
srslte_softbuffer_tx_t* tx[SRSLTE_MAX_CODEWORDS];
|
|
|
|
srslte_softbuffer_rx_t* rx[SRSLTE_MAX_CODEWORDS];
|
|
|
|
} softbuffers;
|
|
|
|
|
2020-02-19 08:01:54 -08:00
|
|
|
bool meas_evm_en;
|
2019-04-23 01:53:11 -07:00
|
|
|
bool meas_time_en;
|
|
|
|
uint32_t meas_time_value;
|
2015-04-27 09:14:28 -07:00
|
|
|
} srslte_pdsch_cfg_t;
|
|
|
|
|
2018-03-31 10:04:04 -07:00
|
|
|
#endif // SRSLTE_PDSCH_CFG_H
|