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.
64 lines
2.2 KiB
C
64 lines
2.2 KiB
C
4 years ago
|
/*
|
||
|
* Copyright 2013-2020 Software Radio Systems Limited
|
||
|
*
|
||
|
* This file is part of srsLTE.
|
||
|
*
|
||
|
* srsLTE is free software: you can redistribute it and/or modify
|
||
|
* 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
|
||
|
* GNU Affero General Public License for more details.
|
||
|
*
|
||
|
* 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/.
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
#ifndef SRSLTE_UE_DL_NR_H
|
||
|
#define SRSLTE_UE_DL_NR_H
|
||
|
|
||
|
#include "srslte/phy/common/phy_common_nr.h"
|
||
|
#include "srslte/phy/dft/ofdm.h"
|
||
|
#include "srslte/phy/phch/pdsch_nr.h"
|
||
|
|
||
|
typedef struct SRSLTE_API {
|
||
|
srslte_pdsch_args_t pdsch;
|
||
|
uint32_t nof_rx_antennas;
|
||
|
} srslte_ue_dl_nr_args_t;
|
||
|
|
||
|
typedef struct SRSLTE_API {
|
||
|
uint32_t max_prb;
|
||
|
uint32_t nof_rx_antennas;
|
||
|
srslte_carrier_nr_t carrier;
|
||
|
|
||
|
srslte_ofdm_t fft[SRSLTE_MAX_PORTS];
|
||
|
|
||
|
cf_t* sf_symbols[SRSLTE_MAX_PORTS];
|
||
|
srslte_chest_dl_res_t chest;
|
||
|
srslte_pdsch_nr_t pdsch;
|
||
|
srslte_dmrs_pdsch_t dmrs;
|
||
|
} srslte_ue_dl_nr_t;
|
||
|
|
||
|
SRSLTE_API int
|
||
|
srslte_ue_dl_nr_init(srslte_ue_dl_nr_t* q, cf_t* input[SRSLTE_MAX_PORTS], const srslte_ue_dl_nr_args_t* args);
|
||
|
|
||
|
SRSLTE_API int
|
||
|
srslte_ue_dl_nr_set_carrier(srslte_ue_dl_nr_t* q, const srslte_carrier_nr_t* carrier, const srslte_sch_cfg_t* common);
|
||
|
|
||
|
SRSLTE_API void srslte_ue_dl_nr_free(srslte_ue_dl_nr_t* q);
|
||
|
|
||
|
SRSLTE_API void srslte_ue_dl_nr_estimate_fft(srslte_ue_dl_nr_t* q);
|
||
|
|
||
|
SRSLTE_API int srslte_ue_dl_nr_pdsch_get(srslte_ue_dl_nr_t* q,
|
||
|
const srslte_dl_slot_cfg_t* slot,
|
||
|
const srslte_pdsch_cfg_nr_t* cfg,
|
||
|
const srslte_pdsch_grant_nr_t* grant,
|
||
|
srslte_pdsch_res_nr_t* res);
|
||
|
|
||
|
#endif // SRSLTE_UE_DL_NR_H
|