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.
118 lines
5.7 KiB
C
118 lines
5.7 KiB
C
4 years ago
|
/**
|
||
11 years ago
|
*
|
||
4 years ago
|
* \section COPYRIGHT
|
||
11 years ago
|
*
|
||
4 years ago
|
* Copyright 2013-2021 Software Radio Systems Limited
|
||
11 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.
|
||
11 years ago
|
*
|
||
|
*/
|
||
|
|
||
10 years ago
|
/******************************************************************************
|
||
|
* File: precoding.h
|
||
|
*
|
||
|
* Description: MIMO precoding and deprecoding.
|
||
|
* Single antenna and tx diversity supported.
|
||
|
*
|
||
|
* Reference: 3GPP TS 36.211 version 10.0.0 Release 10 Sec. 6.3.4
|
||
|
*****************************************************************************/
|
||
|
|
||
4 years ago
|
#ifndef SRSRAN_PRECODING_H
|
||
|
#define SRSRAN_PRECODING_H
|
||
11 years ago
|
|
||
4 years ago
|
#include "srsran/config.h"
|
||
|
#include "srsran/phy/common/phy_common.h"
|
||
11 years ago
|
|
||
11 years ago
|
/** The precoder takes as input nlayers vectors "x" from the
|
||
|
* layer mapping and generates nports vectors "y" to be mapped onto
|
||
|
* resources on each of the antenna ports.
|
||
|
*/
|
||
|
|
||
|
/* Generates the vector "y" from the input vector "x"
|
||
|
*/
|
||
4 years ago
|
SRSRAN_API int srsran_precoding_single(cf_t* x, cf_t* y, int nof_symbols, float scaling);
|
||
5 years ago
|
|
||
4 years ago
|
SRSRAN_API int srsran_precoding_diversity(cf_t* x[SRSRAN_MAX_LAYERS],
|
||
|
cf_t* y[SRSRAN_MAX_PORTS],
|
||
5 years ago
|
int nof_ports,
|
||
|
int nof_symbols,
|
||
7 years ago
|
float scaling);
|
||
8 years ago
|
|
||
4 years ago
|
SRSRAN_API int srsran_precoding_cdd(cf_t* x[SRSRAN_MAX_LAYERS],
|
||
|
cf_t* y[SRSRAN_MAX_PORTS],
|
||
5 years ago
|
int nof_layers,
|
||
|
int nof_ports,
|
||
|
int nof_symbols,
|
||
7 years ago
|
float scaling);
|
||
10 years ago
|
|
||
4 years ago
|
SRSRAN_API int srsran_precoding_type(cf_t* x[SRSRAN_MAX_LAYERS],
|
||
|
cf_t* y[SRSRAN_MAX_PORTS],
|
||
6 years ago
|
int nof_layers,
|
||
|
int nof_ports,
|
||
|
int codebook_idx,
|
||
|
int nof_symbols,
|
||
|
float scaling,
|
||
4 years ago
|
srsran_tx_scheme_t type);
|
||
10 years ago
|
|
||
|
/* Estimates the vector "x" based on the received signal "y" and the channel estimates "h"
|
||
11 years ago
|
*/
|
||
4 years ago
|
SRSRAN_API int
|
||
|
srsran_predecoding_single(cf_t* y, cf_t* h, cf_t* x, float* csi, int nof_symbols, float scaling, float noise_estimate);
|
||
5 years ago
|
|
||
4 years ago
|
SRSRAN_API int srsran_predecoding_single_multi(cf_t* y[SRSRAN_MAX_PORTS],
|
||
|
cf_t* h[SRSRAN_MAX_PORTS],
|
||
5 years ago
|
cf_t* x,
|
||
4 years ago
|
float* csi[SRSRAN_MAX_CODEWORDS],
|
||
5 years ago
|
int nof_rxant,
|
||
|
int nof_symbols,
|
||
|
float scaling,
|
||
|
float noise_estimate);
|
||
|
|
||
4 years ago
|
SRSRAN_API int srsran_predecoding_diversity(cf_t* y,
|
||
|
cf_t* h[SRSRAN_MAX_PORTS],
|
||
|
cf_t* x[SRSRAN_MAX_LAYERS],
|
||
5 years ago
|
int nof_ports,
|
||
|
int nof_symbols,
|
||
7 years ago
|
float scaling);
|
||
10 years ago
|
|
||
4 years ago
|
SRSRAN_API int srsran_predecoding_diversity_multi(cf_t* y[SRSRAN_MAX_PORTS],
|
||
|
cf_t* h[SRSRAN_MAX_PORTS][SRSRAN_MAX_PORTS],
|
||
|
cf_t* x[SRSRAN_MAX_LAYERS],
|
||
|
float* csi[SRSRAN_MAX_LAYERS],
|
||
5 years ago
|
int nof_rxant,
|
||
|
int nof_ports,
|
||
|
int nof_symbols,
|
||
|
float scaling);
|
||
11 years ago
|
|
||
4 years ago
|
SRSRAN_API void srsran_predecoding_set_mimo_decoder(srsran_mimo_decoder_t _mimo_decoder);
|
||
7 years ago
|
|
||
4 years ago
|
SRSRAN_API int srsran_predecoding_type(cf_t* y[SRSRAN_MAX_PORTS],
|
||
|
cf_t* h[SRSRAN_MAX_PORTS][SRSRAN_MAX_PORTS],
|
||
|
cf_t* x[SRSRAN_MAX_LAYERS],
|
||
|
float* csi[SRSRAN_MAX_CODEWORDS],
|
||
6 years ago
|
int nof_rxant,
|
||
|
int nof_ports,
|
||
|
int nof_layers,
|
||
|
int codebook_idx,
|
||
|
int nof_symbols,
|
||
4 years ago
|
srsran_tx_scheme_t type,
|
||
6 years ago
|
float scaling,
|
||
|
float noise_estimate);
|
||
8 years ago
|
|
||
4 years ago
|
SRSRAN_API int srsran_precoding_pmi_select(cf_t* h[SRSRAN_MAX_PORTS][SRSRAN_MAX_PORTS],
|
||
5 years ago
|
uint32_t nof_symbols,
|
||
|
float noise_estimate,
|
||
|
int nof_layers,
|
||
|
uint32_t* pmi,
|
||
4 years ago
|
float sinr[SRSRAN_MAX_CODEBOOKS]);
|
||
8 years ago
|
|
||
4 years ago
|
SRSRAN_API int srsran_precoding_cn(cf_t* h[SRSRAN_MAX_PORTS][SRSRAN_MAX_PORTS],
|
||
7 years ago
|
uint32_t nof_tx_antennas,
|
||
|
uint32_t nof_rx_antennas,
|
||
|
uint32_t nof_symbols,
|
||
5 years ago
|
float* cn);
|
||
7 years ago
|
|
||
4 years ago
|
#endif // SRSRAN_PRECODING_H
|