free5GRAN  V1.0
synchronization.h
Go to the documentation of this file.
1 /*
2  * Copyright 2020 Telecom Paris
3 
4  Licensed under the Apache License, Version 2.0 (the "License");
5  you may not use this file except in compliance with the License.
6  You may obtain a copy of the License at
7 
8  http://www.apache.org/licenses/LICENSE-2.0
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15  */
16 
17 #include <complex>
18 #include <vector>
19 using namespace std;
20 
21 namespace free5GRAN {
22  namespace phy {
23  namespace synchronization {
24  void search_pss(int &n_id_2, int &synchronisation_index, float &peak_value, int cp_length, vector<complex<float>> &buff, int fft_size);
25 
26  void cross_correlation(vector<complex<float>> in1, vector<complex<float>> in2, complex<float>* out, int size1, int size2);
27 
28  void get_sss(int &n_id_1, float &peak_value, vector<complex<float>> &buff, int fft_size, int n_id_2);
29 
30  complex<float> correlate(vector<complex<float>> in1, int* in2, int size);
31 
32  };
33  }
34 
35 }
36 
Definition: phy.h:27
void search_pss(int &n_id_2, int &synchronisation_index, float &peak_value, int cp_length, vector< complex< float >> &buff, int fft_size)
void cross_correlation(vector< complex< float >> in1, vector< complex< float >> in2, complex< float > *out, int size1, int size2)
void get_sss(int &n_id_1, float &peak_value, vector< complex< float >> &buff, int fft_size, int n_id_2)
complex< float > correlate(vector< complex< float >> in1, int *in2, int size)