srsLTE/lib/include/srsran/phy/dft/dft_precoding.h

53 lines
1.6 KiB
C
Raw Normal View History

/**
2015-02-13 02:14:10 -08:00
*
* \section COPYRIGHT
2015-02-13 02:14:10 -08:00
*
2021-03-19 03:45:56 -07:00
* Copyright 2013-2021 Software Radio Systems Limited
2015-02-13 02:14:10 -08:00
*
* 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.
2015-02-13 02:14:10 -08:00
*
*/
/**********************************************************************************************
* 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
*********************************************************************************************/
2015-02-13 02:14:10 -08:00
2021-03-19 03:45:56 -07:00
#ifndef SRSRAN_DFT_PRECODING_H
#define SRSRAN_DFT_PRECODING_H
2015-02-13 02:14:10 -08:00
2021-03-19 03:45:56 -07:00
#include "srsran/config.h"
#include "srsran/phy/common/phy_common.h"
#include "srsran/phy/dft/dft.h"
2015-02-13 02:14:10 -08:00
/* DFT-based Transform Precoding object */
2021-03-19 03:45:56 -07:00
typedef struct SRSRAN_API {
2015-02-13 02:14:10 -08:00
uint32_t max_prb;
2021-03-19 03:45:56 -07:00
srsran_dft_plan_t dft_plan[SRSRAN_MAX_PRB + 1];
2021-03-19 03:45:56 -07:00
} srsran_dft_precoding_t;
2015-02-13 02:14:10 -08:00
2021-03-19 03:45:56 -07:00
SRSRAN_API int srsran_dft_precoding_init(srsran_dft_precoding_t* q, uint32_t max_prb, bool is_tx);
2021-03-19 03:45:56 -07:00
SRSRAN_API int srsran_dft_precoding_init_tx(srsran_dft_precoding_t* q, uint32_t max_prb);
2021-03-19 03:45:56 -07:00
SRSRAN_API int srsran_dft_precoding_init_rx(srsran_dft_precoding_t* q, uint32_t max_prb);
2015-02-13 02:14:10 -08:00
2021-03-19 03:45:56 -07:00
SRSRAN_API void srsran_dft_precoding_free(srsran_dft_precoding_t* q);
2015-02-13 02:14:10 -08:00
2021-03-19 03:45:56 -07:00
SRSRAN_API bool srsran_dft_precoding_valid_prb(uint32_t nof_prb);
2021-03-19 03:45:56 -07:00
SRSRAN_API uint32_t srsran_dft_precoding_get_valid_prb(uint32_t nof_prb);
2021-03-19 03:45:56 -07:00
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);
2015-02-13 02:14:10 -08:00
2021-03-19 03:45:56 -07:00
#endif // SRSRAN_DFT_PRECODING_H