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.
93 lines
3.2 KiB
C
93 lines
3.2 KiB
C
11 years ago
|
/**
|
||
11 years ago
|
*
|
||
11 years ago
|
* \section COPYRIGHT
|
||
11 years ago
|
*
|
||
9 years ago
|
* Copyright 2013-2015 Software Radio Systems Limited
|
||
11 years ago
|
*
|
||
|
* \section LICENSE
|
||
|
*
|
||
10 years ago
|
* This file is part of the srsLTE library.
|
||
11 years ago
|
*
|
||
10 years ago
|
* srsLTE is free software: you can redistribute it and/or modify
|
||
10 years ago
|
* it under the terms of the GNU Affero General Public License as
|
||
11 years ago
|
* published by the Free Software Foundation, either version 3 of
|
||
|
* the License, or (at your option) any later version.
|
||
|
*
|
||
10 years ago
|
* srsLTE is distributed in the hope that it will be useful,
|
||
11 years ago
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
10 years ago
|
* GNU Affero General Public License for more details.
|
||
11 years ago
|
*
|
||
10 years ago
|
* A copy of the GNU Affero General Public License can be found in
|
||
11 years ago
|
* the LICENSE file in the top-level directory of this distribution
|
||
|
* and at http://www.gnu.org/licenses/.
|
||
|
*
|
||
11 years ago
|
*/
|
||
|
|
||
10 years ago
|
/******************************************************************************
|
||
|
* File: convolution.h
|
||
|
*
|
||
|
* Description: Utility module for fast convolution using FFT.
|
||
|
*
|
||
|
* Reference:
|
||
|
*****************************************************************************/
|
||
11 years ago
|
|
||
11 years ago
|
#ifndef CONVOLUTION_H_
|
||
|
#define CONVOLUTION_H_
|
||
|
|
||
10 years ago
|
#include "srslte/config.h"
|
||
8 years ago
|
#include "srslte/phy/dft/dft.h"
|
||
11 years ago
|
|
||
10 years ago
|
typedef struct SRSLTE_API {
|
||
11 years ago
|
cf_t *input_fft;
|
||
|
cf_t *filter_fft;
|
||
|
cf_t *output_fft;
|
||
|
cf_t *output_fft2;
|
||
|
uint32_t input_len;
|
||
|
uint32_t filter_len;
|
||
|
uint32_t output_len;
|
||
10 years ago
|
srslte_dft_plan_t input_plan;
|
||
|
srslte_dft_plan_t filter_plan;
|
||
|
srslte_dft_plan_t output_plan;
|
||
8 years ago
|
//cf_t *pss_signal_time_fft[3]; // One sequence for each N_id_2
|
||
8 years ago
|
//cf_t *pss_signal_time[3];
|
||
8 years ago
|
|
||
10 years ago
|
}srslte_conv_fft_cc_t;
|
||
11 years ago
|
|
||
10 years ago
|
SRSLTE_API int srslte_conv_fft_cc_init(srslte_conv_fft_cc_t *q,
|
||
|
uint32_t input_len,
|
||
|
uint32_t filter_len);
|
||
11 years ago
|
|
||
8 years ago
|
|
||
10 years ago
|
SRSLTE_API void srslte_conv_fft_cc_free(srslte_conv_fft_cc_t *q);
|
||
11 years ago
|
|
||
10 years ago
|
SRSLTE_API uint32_t srslte_conv_fft_cc_run(srslte_conv_fft_cc_t *q,
|
||
|
cf_t *input,
|
||
|
cf_t *filter,
|
||
|
cf_t *output);
|
||
11 years ago
|
|
||
8 years ago
|
SRSLTE_API uint32_t srslte_conv_fft_cc_run_opt(srslte_conv_fft_cc_t *q,
|
||
|
cf_t *input,
|
||
8 years ago
|
cf_t *filter_freq,
|
||
8 years ago
|
cf_t *output);
|
||
|
|
||
10 years ago
|
SRSLTE_API uint32_t srslte_conv_cc(cf_t *input,
|
||
|
cf_t *filter,
|
||
|
cf_t *output,
|
||
|
uint32_t input_len,
|
||
|
uint32_t filter_len);
|
||
11 years ago
|
|
||
10 years ago
|
SRSLTE_API uint32_t srslte_conv_same_cf(cf_t *input,
|
||
|
float *filter,
|
||
|
cf_t *output,
|
||
|
uint32_t input_len,
|
||
|
uint32_t filter_len);
|
||
10 years ago
|
|
||
10 years ago
|
SRSLTE_API uint32_t srslte_conv_same_cc(cf_t *input,
|
||
|
cf_t *filter,
|
||
|
cf_t *output,
|
||
|
uint32_t input_len,
|
||
|
uint32_t filter_len);
|
||
10 years ago
|
|
||
11 years ago
|
#endif // CONVOLUTION_H_
|