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.
68 lines
2.1 KiB
C
68 lines
2.1 KiB
C
/**
|
|
*
|
|
* \section COPYRIGHT
|
|
*
|
|
* Copyright 2013-2020 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.
|
|
*
|
|
*/
|
|
|
|
#ifndef SRSLTE_ENB_DL_NR_H
|
|
#define SRSLTE_ENB_DL_NR_H
|
|
|
|
#include "srslte/phy/common/phy_common_nr.h"
|
|
#include "srslte/phy/dft/ofdm.h"
|
|
#include "srslte/phy/phch/pdcch_nr.h"
|
|
#include "srslte/phy/phch/pdsch_nr.h"
|
|
|
|
typedef struct SRSLTE_API {
|
|
srslte_pdsch_nr_args_t pdsch;
|
|
srslte_pdcch_nr_args_t pdcch;
|
|
uint32_t nof_tx_antennas;
|
|
uint32_t nof_max_prb;
|
|
} srslte_enb_dl_nr_args_t;
|
|
|
|
typedef struct SRSLTE_API {
|
|
uint32_t max_prb;
|
|
uint32_t nof_tx_antennas;
|
|
srslte_carrier_nr_t carrier;
|
|
srslte_coreset_t coreset;
|
|
|
|
srslte_ofdm_t fft[SRSLTE_MAX_PORTS];
|
|
|
|
cf_t* sf_symbols[SRSLTE_MAX_PORTS];
|
|
srslte_pdsch_nr_t pdsch;
|
|
srslte_dmrs_sch_t dmrs;
|
|
|
|
srslte_pdcch_nr_t pdcch;
|
|
} srslte_enb_dl_nr_t;
|
|
|
|
SRSLTE_API int
|
|
srslte_enb_dl_nr_init(srslte_enb_dl_nr_t* q, cf_t* output[SRSLTE_MAX_PORTS], const srslte_enb_dl_nr_args_t* args);
|
|
|
|
SRSLTE_API int srslte_enb_dl_nr_set_carrier(srslte_enb_dl_nr_t* q, const srslte_carrier_nr_t* carrier);
|
|
|
|
SRSLTE_API int srslte_enb_dl_nr_set_coreset(srslte_enb_dl_nr_t* q, const srslte_coreset_t* coreset);
|
|
|
|
SRSLTE_API void srslte_enb_dl_nr_free(srslte_enb_dl_nr_t* q);
|
|
|
|
SRSLTE_API int srslte_enb_dl_nr_base_zero(srslte_enb_dl_nr_t* q);
|
|
|
|
SRSLTE_API void srslte_enb_dl_nr_gen_signal(srslte_enb_dl_nr_t* q);
|
|
|
|
SRSLTE_API int
|
|
srslte_enb_dl_nr_pdcch_put(srslte_enb_dl_nr_t* q, const srslte_slot_cfg_t* slot_cfg, const srslte_dci_dl_nr_t* dci_dl);
|
|
|
|
SRSLTE_API int srslte_enb_dl_nr_pdsch_put(srslte_enb_dl_nr_t* q,
|
|
const srslte_slot_cfg_t* slot,
|
|
const srslte_sch_cfg_nr_t* cfg,
|
|
uint8_t* data[SRSLTE_MAX_TB]);
|
|
|
|
SRSLTE_API int
|
|
srslte_enb_dl_nr_pdsch_info(const srslte_enb_dl_nr_t* q, const srslte_sch_cfg_nr_t* cfg, char* str, uint32_t str_len);
|
|
|
|
#endif // SRSLTE_ENB_DL_NR_H
|