GNSS-SDR  0.0.13
An Open Source GNSS Software Defined Receiver
gnss_signal_processing.h
Go to the documentation of this file.
1 /*!
2  * \file gnss_signal_processing.h
3  * \brief This library gathers a few functions used by the algorithms of gnss-sdr,
4  * regardless of system used
5  *
6  * \author Luis Esteve, 2012. luis(at)epsilon-formacion.com
7  *
8  *
9  * -----------------------------------------------------------------------------
10  *
11  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
12  *
13  * GNSS-SDR is a software defined Global Navigation
14  * Satellite Systems receiver
15  *
16  * This file is part of GNSS-SDR.
17  *
18  * SPDX-License-Identifier: GPL-3.0-or-later
19  *
20  * -----------------------------------------------------------------------------
21  */
22 
23 #ifndef GNSS_SDR_GNSS_SIGNAL_PROCESSING_H
24 #define GNSS_SDR_GNSS_SIGNAL_PROCESSING_H
25 
26 #include <complex>
27 #include <cstdint>
28 #if HAS_STD_SPAN
29 #include <span>
30 namespace own = std;
31 #else
32 #include <gsl/gsl>
33 namespace own = gsl;
34 #endif
35 
36 /*!
37  * \brief This function generates a complex exponential in _dest.
38  *
39  */
40 void complex_exp_gen(own::span<std::complex<float>> _dest, double _f, double _fs);
41 
42 /*!
43  * \brief This function generates a conjugate complex exponential in _dest.
44  *
45  */
46 void complex_exp_gen_conj(own::span<std::complex<float>> _dest, double _f, double _fs);
47 
48 /*!
49  * \brief This function makes a conversion from hex (the input is a char)
50  * to binary (the output are 4 ints with +1 or -1 values).
51  *
52  */
53 void hex_to_binary_converter(own::span<int32_t> _dest, char _from);
54 
55 /*!
56  * \brief This function resamples a sequence of float values.
57  *
58  */
59 void resampler(const own::span<float> _from, own::span<float> _dest,
60  float _fs_in, float _fs_out);
61 
62 /*!
63  * \brief This function resamples a sequence of complex values.
64  *
65  */
66 void resampler(own::span<const std::complex<float>> _from, own::span<std::complex<float>> _dest,
67  float _fs_in, float _fs_out);
68 
69 #endif // GNSS_SDR_GNSS_SIGNAL_PROCESSING_H
void complex_exp_gen_conj(own::span< std::complex< float >> _dest, double _f, double _fs)
This function generates a conjugate complex exponential in _dest.
STL namespace.
void resampler(const own::span< float > _from, own::span< float > _dest, float _fs_in, float _fs_out)
This function resamples a sequence of float values.
void hex_to_binary_converter(own::span< int32_t > _dest, char _from)
This function makes a conversion from hex (the input is a char) to binary (the output are 4 ints with...
void complex_exp_gen(own::span< std::complex< float >> _dest, double _f, double _fs)
This function generates a complex exponential in _dest.