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

72 lines
2.4 KiB
C
Raw Normal View History

2015-02-13 02:14:10 -08:00
/**
*
* \section COPYRIGHT
*
2015-11-13 04:22:33 -08:00
* Copyright 2013-2015 Software Radio Systems Limited
2015-02-13 02:14:10 -08:00
*
* \section LICENSE
*
* This file is part of the srsLTE library.
2015-02-13 02:14:10 -08:00
*
* srsLTE is free software: you can redistribute it and/or modify
2015-05-08 08:05:40 -07:00
* it under the terms of the GNU Affero General Public License as
2015-02-13 02:14:10 -08:00
* 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,
2015-02-13 02:14:10 -08:00
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2015-05-08 08:05:40 -07:00
* GNU Affero General Public License for more details.
2015-02-13 02:14:10 -08:00
*
2015-05-08 08:05:40 -07:00
* A copy of the GNU Affero General Public License can be found in
2015-02-13 02:14:10 -08:00
* the LICENSE file in the top-level directory of this distribution
* and at http://www.gnu.org/licenses/.
*
*/
/**********************************************************************************************
* 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
2018-03-31 10:04:04 -07:00
#ifndef SRSLTE_DFT_PRECODING_H
#define SRSLTE_DFT_PRECODING_H
2015-02-13 02:14:10 -08:00
#include "srslte/config.h"
2017-05-18 00:48:24 -07:00
#include "srslte/phy/common/phy_common.h"
#include "srslte/phy/dft/dft.h"
2015-02-13 02:14:10 -08:00
/* DFT-based Transform Precoding object */
typedef struct SRSLTE_API {
2015-02-13 02:14:10 -08:00
uint32_t max_prb;
2016-08-29 15:49:31 -07:00
srslte_dft_plan_t dft_plan[SRSLTE_MAX_PRB+1];
2015-03-18 11:14:24 -07:00
}srslte_dft_precoding_t;
2015-02-13 02:14:10 -08:00
SRSLTE_API int srslte_dft_precoding_init(srslte_dft_precoding_t *q,
uint32_t max_prb,
bool is_tx);
SRSLTE_API int srslte_dft_precoding_init_tx(srslte_dft_precoding_t *q,
uint32_t max_prb);
SRSLTE_API int srslte_dft_precoding_init_rx(srslte_dft_precoding_t *q,
uint32_t max_prb);
2015-02-13 02:14:10 -08:00
2015-03-18 11:14:24 -07:00
SRSLTE_API void srslte_dft_precoding_free(srslte_dft_precoding_t *q);
2015-02-13 02:14:10 -08:00
2015-03-18 11:14:24 -07:00
SRSLTE_API bool srslte_dft_precoding_valid_prb(uint32_t nof_prb);
2015-03-18 11:14:24 -07:00
SRSLTE_API int srslte_dft_precoding(srslte_dft_precoding_t *q,
2015-03-18 08:05:38 -07:00
cf_t *input,
cf_t *output,
uint32_t nof_prb,
uint32_t nof_symbols);
2015-02-13 02:14:10 -08:00
2018-03-31 10:04:04 -07:00
#endif // SRSLTE_DFT_PRECODING_H