2016-01-11 15:49:37 +00:00
|
|
|
/*!
|
|
|
|
* \file cpu_multicorrelator_16sc.h
|
2019-03-19 19:39:23 +00:00
|
|
|
* \brief Highly optimized CPU vector multiTAP correlator class for lv_16sc_t (short int complex)
|
2016-01-11 15:49:37 +00:00
|
|
|
* \authors <ul>
|
|
|
|
* <li> Javier Arribas, 2016. jarribas(at)cttc.es
|
|
|
|
* </ul>
|
|
|
|
*
|
2019-03-19 19:39:23 +00:00
|
|
|
* Class that implements a highly optimized vector multiTAP correlator class for CPUs
|
2016-01-11 15:49:37 +00:00
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*
|
2019-07-26 10:38:20 +00:00
|
|
|
* Copyright (C) 2010-2019 (see AUTHORS file for a list of contributors)
|
2016-01-11 15:49:37 +00:00
|
|
|
*
|
|
|
|
* GNSS-SDR is a software defined Global Navigation
|
|
|
|
* Satellite Systems receiver
|
|
|
|
*
|
|
|
|
* This file is part of GNSS-SDR.
|
|
|
|
*
|
2020-02-08 00:20:02 +00:00
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2016-01-11 15:49:37 +00:00
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
2020-02-08 09:10:46 +00:00
|
|
|
#ifndef GNSS_SDR_CPU_MULTICORRELATOR_16SC_H
|
|
|
|
#define GNSS_SDR_CPU_MULTICORRELATOR_16SC_H
|
2016-01-11 15:49:37 +00:00
|
|
|
|
2016-01-12 17:58:00 +00:00
|
|
|
#include <volk_gnsssdr/volk_gnsssdr.h>
|
2016-01-11 15:49:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief Class that implements carrier wipe-off and correlators.
|
|
|
|
*/
|
2019-02-22 09:47:24 +00:00
|
|
|
class Cpu_Multicorrelator_16sc
|
2016-01-11 15:49:37 +00:00
|
|
|
{
|
|
|
|
public:
|
2019-02-22 09:47:24 +00:00
|
|
|
Cpu_Multicorrelator_16sc();
|
|
|
|
~Cpu_Multicorrelator_16sc();
|
2016-01-11 15:49:37 +00:00
|
|
|
bool init(int max_signal_length_samples, int n_correlators);
|
2018-03-03 01:03:39 +00:00
|
|
|
bool set_local_code_and_taps(int code_length_chips, const lv_16sc_t *local_code_in, float *shifts_chips);
|
|
|
|
bool set_input_output_vectors(lv_16sc_t *corr_out, const lv_16sc_t *sig_in);
|
2016-01-11 15:49:37 +00:00
|
|
|
void update_local_code(int correlator_length_samples, float rem_code_phase_chips, float code_phase_step_chips);
|
|
|
|
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);
|
|
|
|
bool free();
|
|
|
|
|
|
|
|
private:
|
|
|
|
// Allocate the device input vectors
|
|
|
|
const lv_16sc_t *d_sig_in;
|
|
|
|
const lv_16sc_t *d_local_code_in;
|
2020-06-23 07:47:58 +00:00
|
|
|
lv_16sc_t **d_local_codes_resampled;
|
2016-01-11 15:49:37 +00:00
|
|
|
lv_16sc_t *d_corr_out;
|
|
|
|
float *d_shifts_chips;
|
|
|
|
int d_code_length_chips;
|
|
|
|
int d_n_correlators;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-08 09:10:46 +00:00
|
|
|
#endif // GNSS_SDR_CPU_MULTICORRELATOR_H
|