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

73 lines
2.5 KiB
C
Raw Normal View History

2015-02-13 02:14:10 -08:00
/**
*
* \section COPYRIGHT
*
2015-05-08 08:05:40 -07:00
* Copyright 2013-2015 The srsLTE Developers. See the
2015-02-13 02:14:10 -08:00
* COPYRIGHT file at the top-level directory of this distribution.
*
* \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
#ifndef DFTPREC_
#define DFTPREC_
#include "srslte/config.h"
#include "srslte/common/phy_common.h"
2015-03-18 11:14:24 -07:00
#include "srslte/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;
2015-03-18 05:59:29 -07:00
srslte_dft_plan_t dft_plan[SRSLTE_MAX_PRB];
srslte_dft_plan_t idft_plan[SRSLTE_MAX_PRB];
2015-02-13 02:14:10 -08:00
2015-03-18 11:14:24 -07:00
}srslte_dft_precoding_t;
2015-02-13 02:14:10 -08:00
2015-03-18 11:14:24 -07:00
SRSLTE_API int srslte_dft_precoding_init(srslte_dft_precoding_t *q,
2015-03-18 08:05:38 -07:00
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
2015-03-18 11:14:24 -07:00
SRSLTE_API int srslte_dft_predecoding(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
#endif