srsLTE/lib/include/srslte/phy/phch/pusch_cfg.h

84 lines
2.2 KiB
C
Raw Normal View History

2019-04-26 12:27:38 -07:00
/*
* Copyright 2013-2019 Software Radio Systems Limited
*
2019-04-26 12:27:38 -07:00
* This file is part of srsLTE.
*
* 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
* 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-05-08 08:05:40 -07:00
* A copy of the GNU Affero General Public License can be found in
* the LICENSE file in the top-level directory of this distribution
* and at http://www.gnu.org/licenses/.
*
*/
2018-03-31 10:04:04 -07:00
#ifndef SRSLTE_PUSCH_CFG_H
#define SRSLTE_PUSCH_CFG_H
2017-05-18 00:48:24 -07:00
#include "srslte/phy/fec/softbuffer.h"
2019-04-23 01:53:11 -07:00
#include "srslte/phy/phch/ra.h"
#include "srslte/phy/phch/uci_cfg.h"
2015-07-19 13:52:56 -07:00
typedef struct SRSLTE_API {
uint32_t I_offset_cqi;
uint32_t I_offset_ri;
uint32_t I_offset_ack;
2019-04-23 01:53:11 -07:00
} srslte_uci_offset_cfg_t;
typedef struct {
enum { SRSLTE_PUSCH_HOP_MODE_INTER_SF = 1, SRSLTE_PUSCH_HOP_MODE_INTRA_SF = 0 } hop_mode;
uint32_t hopping_offset;
uint32_t n_sb;
uint32_t n_rb_ho;
uint32_t current_tx_nb;
bool hopping_enabled;
} srslte_pusch_hopping_cfg_t;
2015-07-19 13:52:56 -07:00
typedef struct SRSLTE_API {
2019-04-23 01:53:11 -07:00
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;
srslte_ra_tb_t tb;
srslte_ra_tb_t last_tb;
uint32_t n_dmrs;
} srslte_pusch_grant_t;
typedef struct SRSLTE_API {
uint16_t rnti;
srslte_uci_cfg_t uci_cfg;
srslte_uci_offset_cfg_t uci_offset;
srslte_pusch_grant_t grant;
uint32_t max_nof_iterations;
uint32_t last_O_cqi;
2019-04-23 01:53:11 -07:00
uint32_t K_segm;
uint32_t current_tx_nb;
bool csi_enable;
bool enable_64qam;
union {
srslte_softbuffer_tx_t* tx;
srslte_softbuffer_rx_t* rx;
} softbuffers;
bool meas_time_en;
uint32_t meas_time_value;
} srslte_pusch_cfg_t;
2018-03-31 10:04:04 -07:00
#endif // SRSLTE_PUSCH_CFG_H