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
4 years ago
|
/**
|
||
|
*
|
||
|
* \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.
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
#ifndef SRSRAN_ENB_DL_NR_H
|
||
|
#define SRSRAN_ENB_DL_NR_H
|
||
|
|
||
|
#include "srsran/phy/common/phy_common_nr.h"
|
||
|
#include "srsran/phy/dft/ofdm.h"
|
||
|
#include "srsran/phy/phch/pdcch_nr.h"
|
||
|
#include "srsran/phy/phch/pdsch_nr.h"
|
||
|
|
||
|
typedef struct SRSRAN_API {
|
||
|
srsran_pdsch_nr_args_t pdsch;
|
||
|
srsran_pdcch_nr_args_t pdcch;
|
||
|
uint32_t nof_tx_antennas;
|
||
|
uint32_t nof_max_prb;
|
||
|
} srsran_enb_dl_nr_args_t;
|
||
|
|
||
|
typedef struct SRSRAN_API {
|
||
|
uint32_t max_prb;
|
||
|
uint32_t nof_tx_antennas;
|
||
|
srsran_carrier_nr_t carrier;
|
||
|
srsran_coreset_t coreset;
|
||
|
|
||
|
srsran_ofdm_t fft[SRSRAN_MAX_PORTS];
|
||
|
|
||
|
cf_t* sf_symbols[SRSRAN_MAX_PORTS];
|
||
|
srsran_pdsch_nr_t pdsch;
|
||
|
srsran_dmrs_sch_t dmrs;
|
||
|
|
||
|
srsran_pdcch_nr_t pdcch;
|
||
|
} srsran_enb_dl_nr_t;
|
||
|
|
||
|
SRSRAN_API int
|
||
|
srsran_enb_dl_nr_init(srsran_enb_dl_nr_t* q, cf_t* output[SRSRAN_MAX_PORTS], const srsran_enb_dl_nr_args_t* args);
|
||
|
|
||
|
SRSRAN_API int srsran_enb_dl_nr_set_carrier(srsran_enb_dl_nr_t* q, const srsran_carrier_nr_t* carrier);
|
||
|
|
||
|
SRSRAN_API int srsran_enb_dl_nr_set_coreset(srsran_enb_dl_nr_t* q, const srsran_coreset_t* coreset);
|
||
|
|
||
|
SRSRAN_API void srsran_enb_dl_nr_free(srsran_enb_dl_nr_t* q);
|
||
|
|
||
|
SRSRAN_API int srsran_enb_dl_nr_base_zero(srsran_enb_dl_nr_t* q);
|
||
|
|
||
|
SRSRAN_API void srsran_enb_dl_nr_gen_signal(srsran_enb_dl_nr_t* q);
|
||
|
|
||
|
SRSRAN_API int
|
||
|
srsran_enb_dl_nr_pdcch_put(srsran_enb_dl_nr_t* q, const srsran_slot_cfg_t* slot_cfg, const srsran_dci_dl_nr_t* dci_dl);
|
||
|
|
||
|
SRSRAN_API int srsran_enb_dl_nr_pdsch_put(srsran_enb_dl_nr_t* q,
|
||
|
const srsran_slot_cfg_t* slot,
|
||
|
const srsran_sch_cfg_nr_t* cfg,
|
||
|
uint8_t* data[SRSRAN_MAX_TB]);
|
||
|
|
||
|
SRSRAN_API int
|
||
|
srsran_enb_dl_nr_pdsch_info(const srsran_enb_dl_nr_t* q, const srsran_sch_cfg_nr_t* cfg, char* str, uint32_t str_len);
|
||
|
|
||
|
#endif // SRSRAN_ENB_DL_NR_H
|