srsLTE/lib/include/srsran/phy/phch/pdsch_cfg.h

65 lines
1.8 KiB
C

/**
*
* \section COPYRIGHT
*
* Copyright 2013-2021 Software Radio Systems Limited
*
* 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.
*
*/
/******************************************************************************
* File: pdsch_cfg.h
*
* Description: Physical downlink shared channel configuration
*
* Reference: 3GPP TS 36.211 version 10.0.0 Release 10 Sec. 6.4
*****************************************************************************/
#ifndef SRSRAN_PDSCH_CFG_H
#define SRSRAN_PDSCH_CFG_H
#include "srsran/phy/fec/cbsegm.h"
#include "srsran/phy/fec/softbuffer.h"
#include "srsran/phy/phch/ra.h"
typedef struct SRSRAN_API {
srsran_tx_scheme_t tx_scheme;
uint32_t pmi;
bool prb_idx[2][SRSRAN_MAX_PRB];
uint32_t nof_prb;
uint32_t nof_re;
uint32_t nof_symb_slot[2];
srsran_ra_tb_t tb[SRSRAN_MAX_CODEWORDS];
int last_tbs[SRSRAN_MAX_CODEWORDS];
uint32_t nof_tb;
uint32_t nof_layers;
} srsran_pdsch_grant_t;
typedef struct SRSRAN_API {
srsran_pdsch_grant_t grant;
uint16_t rnti;
uint32_t max_nof_iterations;
srsran_mimo_decoder_t decoder_type;
float p_a;
uint32_t p_b;
float rs_power;
bool power_scale;
bool csi_enable;
bool use_tbs_index_alt;
union {
srsran_softbuffer_tx_t* tx[SRSRAN_MAX_CODEWORDS];
srsran_softbuffer_rx_t* rx[SRSRAN_MAX_CODEWORDS];
} softbuffers;
bool meas_evm_en;
bool meas_time_en;
uint32_t meas_time_value;
} srsran_pdsch_cfg_t;
#endif // SRSRAN_PDSCH_CFG_H