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.
53 lines
1.6 KiB
C
53 lines
1.6 KiB
C
4 years ago
|
/**
|
||
10 years ago
|
*
|
||
4 years ago
|
* \section COPYRIGHT
|
||
10 years ago
|
*
|
||
4 years ago
|
* Copyright 2013-2021 Software Radio Systems Limited
|
||
10 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.
|
||
10 years ago
|
*
|
||
|
*/
|
||
|
|
||
10 years ago
|
/**********************************************************************************************
|
||
|
* File: dft_precoding.h
|
||
|
*
|
||
|
* Description: DFT-based transform precoding object.
|
||
|
* Used in generation of uplink SCFDMA signals.
|
||
|
*
|
||
|
* Reference: 3GPP TS 36.211 version 10.0.0 Release 10 Sec. 5.3.3
|
||
|
*********************************************************************************************/
|
||
10 years ago
|
|
||
4 years ago
|
#ifndef SRSRAN_DFT_PRECODING_H
|
||
|
#define SRSRAN_DFT_PRECODING_H
|
||
10 years ago
|
|
||
4 years ago
|
#include "srsran/config.h"
|
||
|
#include "srsran/phy/common/phy_common.h"
|
||
|
#include "srsran/phy/dft/dft.h"
|
||
10 years ago
|
|
||
|
/* DFT-based Transform Precoding object */
|
||
4 years ago
|
typedef struct SRSRAN_API {
|
||
10 years ago
|
|
||
5 years ago
|
uint32_t max_prb;
|
||
4 years ago
|
srsran_dft_plan_t dft_plan[SRSRAN_MAX_PRB + 1];
|
||
7 years ago
|
|
||
4 years ago
|
} srsran_dft_precoding_t;
|
||
10 years ago
|
|
||
4 years ago
|
SRSRAN_API int srsran_dft_precoding_init(srsran_dft_precoding_t* q, uint32_t max_prb, bool is_tx);
|
||
7 years ago
|
|
||
4 years ago
|
SRSRAN_API int srsran_dft_precoding_init_tx(srsran_dft_precoding_t* q, uint32_t max_prb);
|
||
7 years ago
|
|
||
4 years ago
|
SRSRAN_API int srsran_dft_precoding_init_rx(srsran_dft_precoding_t* q, uint32_t max_prb);
|
||
10 years ago
|
|
||
4 years ago
|
SRSRAN_API void srsran_dft_precoding_free(srsran_dft_precoding_t* q);
|
||
10 years ago
|
|
||
4 years ago
|
SRSRAN_API bool srsran_dft_precoding_valid_prb(uint32_t nof_prb);
|
||
10 years ago
|
|
||
4 years ago
|
SRSRAN_API uint32_t srsran_dft_precoding_get_valid_prb(uint32_t nof_prb);
|
||
5 years ago
|
|
||
4 years ago
|
SRSRAN_API int
|
||
|
srsran_dft_precoding(srsran_dft_precoding_t* q, cf_t* input, cf_t* output, uint32_t nof_prb, uint32_t nof_symbols);
|
||
10 years ago
|
|
||
4 years ago
|
#endif // SRSRAN_DFT_PRECODING_H
|