mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-09-30 07:50:51 +00:00
112 lines
2.7 KiB
C
112 lines
2.7 KiB
C
|
/*!
|
||
|
* \file galileo_e6_signal_processing.h
|
||
|
* \brief This library implements various functions for Galileo E6 signals such
|
||
|
* as replica code generation
|
||
|
* \author Carles Fernandez-Prades, 2020. cfernandez(at)cttc.es
|
||
|
*
|
||
|
*
|
||
|
* -----------------------------------------------------------------------------
|
||
|
*
|
||
|
* Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
|
||
|
*
|
||
|
* GNSS-SDR is a software defined Global Navigation
|
||
|
* Satellite Systems receiver
|
||
|
*
|
||
|
* This file is part of GNSS-SDR.
|
||
|
*
|
||
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||
|
*
|
||
|
* -----------------------------------------------------------------------------
|
||
|
*/
|
||
|
|
||
|
#ifndef GNSS_SDR_GALILEO_E6_SIGNAL_PROCESSING_H
|
||
|
#define GNSS_SDR_GALILEO_E6_SIGNAL_PROCESSING_H
|
||
|
|
||
|
#include <array>
|
||
|
#include <complex>
|
||
|
#include <cstdint>
|
||
|
#include <string>
|
||
|
#if HAS_STD_SPAN
|
||
|
#include <span>
|
||
|
namespace own = std;
|
||
|
#else
|
||
|
#include <gsl/gsl>
|
||
|
namespace own = gsl;
|
||
|
#endif
|
||
|
|
||
|
/** \addtogroup Algorithms_Library
|
||
|
* \{ */
|
||
|
/** \addtogroup Algorithm_libs algorithms_libs
|
||
|
* \{ */
|
||
|
|
||
|
|
||
|
/*!
|
||
|
* \brief Generates Galileo E6B code at 1 sample/chip
|
||
|
*/
|
||
|
void galileo_e6_b_code_gen_complex_primary(own::span<std::complex<float>> _dest,
|
||
|
int32_t _prn);
|
||
|
|
||
|
|
||
|
/*!
|
||
|
* \brief Generates Galileo E6B code at 1 sample/chip
|
||
|
*/
|
||
|
void galileo_e6_b_code_gen_float_primary(own::span<float> _dest, int32_t _prn);
|
||
|
|
||
|
|
||
|
/*!
|
||
|
* \brief Generates Galileo E6B complex code, shifted to the desired chip and
|
||
|
* sampled at a frequency fs
|
||
|
*/
|
||
|
void galileo_e6_b_code_gen_complex_sampled(own::span<std::complex<float>> _dest,
|
||
|
uint32_t _prn,
|
||
|
int32_t _fs,
|
||
|
uint32_t _chip_shift);
|
||
|
|
||
|
|
||
|
/*!
|
||
|
* \brief Generates Galileo E6C codes at 1 sample/chip
|
||
|
*/
|
||
|
void galileo_e6_c_code_gen_complex_primary(own::span<std::complex<float>> _dest,
|
||
|
int32_t _prn);
|
||
|
|
||
|
|
||
|
/*!
|
||
|
* \brief Generates Galileo E6C codes at 1 sample/chip
|
||
|
*/
|
||
|
void galileo_e6_c_code_gen_float_primary(own::span<float> _dest, int32_t _prn);
|
||
|
|
||
|
|
||
|
/*!
|
||
|
* \brief Generates Galileo E6C complex codes, shifted to the desired chip and
|
||
|
* sampled at a frequency fs
|
||
|
*/
|
||
|
void galileo_e6_c_code_gen_complex_sampled(own::span<std::complex<float>> _dest,
|
||
|
uint32_t _prn,
|
||
|
int32_t _fs,
|
||
|
uint32_t _chip_shift);
|
||
|
|
||
|
|
||
|
/*!
|
||
|
* \brief Generates Galileo E6C secondary codes at 1 sample/chip
|
||
|
*/
|
||
|
void galileo_e6_c_secondary_code_gen_complex(own::span<std::complex<float>> _dest,
|
||
|
int32_t _prn);
|
||
|
|
||
|
|
||
|
/*!
|
||
|
* \brief Generates Galileo E6C secondary codes at 1 sample/chip
|
||
|
*/
|
||
|
void galileo_e6_c_secondary_code_gen_float(own::span<float> _dest,
|
||
|
int32_t _prn);
|
||
|
|
||
|
|
||
|
/*!
|
||
|
* \brief Generates a string with Galileo E6C secondary codes at 1 sample/chip
|
||
|
*/
|
||
|
std::string galileo_e6_c_secondary_code(int32_t _prn);
|
||
|
|
||
|
|
||
|
/** \} */
|
||
|
/** \} */
|
||
|
#endif // GNSS_SDR_GALILEO_E6_SIGNAL_PROCESSING_H
|