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.
80 lines
1.7 KiB
C
80 lines
1.7 KiB
C
4 years ago
|
/**
|
||
10 years ago
|
*
|
||
4 years ago
|
* \section COPYRIGHT
|
||
10 years ago
|
*
|
||
4 years ago
|
* Copyright 2013-2021 Software Radio Systems Limited
|
||
10 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.
|
||
10 years ago
|
*
|
||
|
*/
|
||
|
|
||
4 years ago
|
#ifndef SRSRAN_PUSCH_CFG_H
|
||
|
#define SRSRAN_PUSCH_CFG_H
|
||
10 years ago
|
|
||
4 years ago
|
#include "srsran/phy/fec/softbuffer.h"
|
||
|
#include "srsran/phy/phch/ra.h"
|
||
|
#include "srsran/phy/phch/uci_cfg.h"
|
||
10 years ago
|
|
||
4 years ago
|
typedef struct SRSRAN_API {
|
||
9 years ago
|
uint32_t I_offset_cqi;
|
||
|
uint32_t I_offset_ri;
|
||
|
uint32_t I_offset_ack;
|
||
4 years ago
|
} srsran_uci_offset_cfg_t;
|
||
6 years ago
|
|
||
|
typedef struct {
|
||
4 years ago
|
enum { SRSRAN_PUSCH_HOP_MODE_INTER_SF = 1, SRSRAN_PUSCH_HOP_MODE_INTRA_SF = 0 } hop_mode;
|
||
6 years ago
|
uint32_t hopping_offset;
|
||
|
uint32_t n_sb;
|
||
|
uint32_t n_rb_ho;
|
||
|
uint32_t current_tx_nb;
|
||
|
bool hopping_enabled;
|
||
4 years ago
|
} srsran_pusch_hopping_cfg_t;
|
||
9 years ago
|
|
||
4 years ago
|
typedef struct SRSRAN_API {
|
||
6 years ago
|
|
||
|
uint32_t L_prb;
|
||
|
uint32_t n_prb[2]; // rb_start after frequency hopping
|
||
|
uint32_t n_prb_tilde[2]; // rb_start after frequency hopping per retx
|
||
|
uint32_t freq_hopping;
|
||
|
uint32_t nof_re;
|
||
|
uint32_t nof_symb;
|
||
4 years ago
|
srsran_ra_tb_t tb;
|
||
|
srsran_ra_tb_t last_tb;
|
||
6 years ago
|
uint32_t n_dmrs;
|
||
4 years ago
|
bool is_rar;
|
||
6 years ago
|
|
||
4 years ago
|
} srsran_pusch_grant_t;
|
||
6 years ago
|
|
||
4 years ago
|
typedef struct SRSRAN_API {
|
||
6 years ago
|
|
||
|
uint16_t rnti;
|
||
|
|
||
4 years ago
|
srsran_uci_cfg_t uci_cfg;
|
||
|
srsran_uci_offset_cfg_t uci_offset;
|
||
|
srsran_pusch_grant_t grant;
|
||
6 years ago
|
|
||
|
uint32_t max_nof_iterations;
|
||
9 years ago
|
uint32_t last_O_cqi;
|
||
6 years ago
|
uint32_t K_segm;
|
||
|
uint32_t current_tx_nb;
|
||
|
bool csi_enable;
|
||
|
bool enable_64qam;
|
||
|
|
||
|
union {
|
||
4 years ago
|
srsran_softbuffer_tx_t* tx;
|
||
|
srsran_softbuffer_rx_t* rx;
|
||
6 years ago
|
} softbuffers;
|
||
|
|
||
|
bool meas_time_en;
|
||
|
uint32_t meas_time_value;
|
||
|
|
||
5 years ago
|
bool meas_epre_en;
|
||
5 years ago
|
bool meas_ta_en;
|
||
|
bool meas_evm_en;
|
||
|
|
||
4 years ago
|
} srsran_pusch_cfg_t;
|
||
10 years ago
|
|
||
4 years ago
|
#endif // SRSRAN_PUSCH_CFG_H
|