GNSS-SDR  0.0.13
An Open Source GNSS Software Defined Receiver
gps_l2c_signal.h
Go to the documentation of this file.
1 /*!
2  * \file gps_l2c_signal.h
3  * \brief This class implements signal generators for the GPS L2C signals
4  * \author Javier Arribas, 2015. jarribas(at)cttc.es
5  *
6  *
7  * -----------------------------------------------------------------------------
8  *
9  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
10  *
11  * GNSS-SDR is a software defined Global Navigation
12  * Satellite Systems receiver
13  *
14  * This file is part of GNSS-SDR.
15  *
16  * SPDX-License-Identifier: GPL-3.0-or-later
17  *
18  * -----------------------------------------------------------------------------
19  */
20 
21 #ifndef GNSS_SDR_GPS_L2C_SIGNAL_H
22 #define GNSS_SDR_GPS_L2C_SIGNAL_H
23 
24 #include <complex>
25 #include <cstdint>
26 #if HAS_STD_SPAN
27 #include <span>
28 namespace own = std;
29 #else
30 #include <gsl/gsl>
31 namespace own = gsl;
32 #endif
33 
34 //! Generates complex GPS L2C M code for the desired SV ID
35 void gps_l2c_m_code_gen_complex(own::span<std::complex<float>> _dest, uint32_t _prn);
36 void gps_l2c_m_code_gen_float(own::span<float> _dest, uint32_t _prn);
37 
38 //! Generates complex GPS L2C M code for the desired SV ID, and sampled to specific sampling frequency
39 void gps_l2c_m_code_gen_complex_sampled(own::span<std::complex<float>> _dest, uint32_t _prn, int32_t _fs);
40 
41 #endif // GNSS_SDR_GPS_L2C_SIGNAL_H
void gps_l2c_m_code_gen_complex(own::span< std::complex< float >> _dest, uint32_t _prn)
Generates complex GPS L2C M code for the desired SV ID.
STL namespace.
void gps_l2c_m_code_gen_complex_sampled(own::span< std::complex< float >> _dest, uint32_t _prn, int32_t _fs)
Generates complex GPS L2C M code for the desired SV ID, and sampled to specific sampling frequency...