GNSS-SDR  0.0.13
An Open Source GNSS Software Defined Receiver
cpu_multicorrelator.h
Go to the documentation of this file.
1 /*!
2  * \file cpu_multicorrelator.h
3  * \brief High optimized CPU vector multiTAP correlator class
4  * \authors <ul>
5  * <li> Javier Arribas, 2015. jarribas(at)cttc.es
6  * </ul>
7  *
8  * Class that implements a high optimized vector multiTAP correlator class for CPUs
9  *
10  * -----------------------------------------------------------------------------
11  *
12  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
13  *
14  * GNSS-SDR is a software defined Global Navigation
15  * Satellite Systems receiver
16  *
17  * This file is part of GNSS-SDR.
18  *
19  * SPDX-License-Identifier: GPL-3.0-or-later
20  *
21  * -----------------------------------------------------------------------------
22  */
23 
24 #ifndef GNSS_SDR_CPU_MULTICORRELATOR_H
25 #define GNSS_SDR_CPU_MULTICORRELATOR_H
26 
27 
28 #include <complex>
29 
30 /*!
31  * \brief Class that implements carrier wipe-off and correlators.
32  */
34 {
35 public:
38  bool init(int max_signal_length_samples, int n_correlators);
39  bool set_local_code_and_taps(int code_length_chips, const std::complex<float> *local_code_in, float *shifts_chips);
40  bool set_input_output_vectors(std::complex<float> *corr_out, const std::complex<float> *sig_in);
41  void update_local_code(int correlator_length_samples, float rem_code_phase_chips, float code_phase_step_chips);
42  bool Carrier_wipeoff_multicorrelator_resampler(float rem_carrier_phase_in_rad, float phase_step_rad, float rem_code_phase_chips, float code_phase_step_chips, int signal_length_samples);
43  bool free();
44 
45 private:
46  // Allocate the device input vectors
47  const std::complex<float> *d_sig_in;
48  const std::complex<float> *d_local_code_in;
49  std::complex<float> **d_local_codes_resampled;
50  std::complex<float> *d_corr_out;
51  float *d_shifts_chips;
52  int d_code_length_chips;
53  int d_n_correlators;
54 };
55 
56 
57 #endif // GNSS_SDR_CPU_MULTICORRELATOR_H
Class that implements carrier wipe-off and correlators.