GNSS-SDR  0.0.14
An Open Source GNSS Software Defined Receiver
dll_pll_conf_fpga.h
Go to the documentation of this file.
1 /*!
2  * \file dll_pll_conf_fpga.h
3  * \brief Class that contains all the configuration parameters for generic
4  * tracking block based on a DLL and a PLL for the FPGA.
5  * \author Marc Majoral, 2019. mmajoral(at)cttc.cat
6  * \author Javier Arribas, 2018. jarribas(at)cttc.es
7  *
8  * Class that contains all the configuration parameters for generic tracking block based on a DLL and a PLL.
9  *
10  * -----------------------------------------------------------------------------
11  *
12  * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
13  * This file is part of GNSS-SDR.
14  *
15  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
16  * SPDX-License-Identifier: GPL-3.0-or-later
17  *
18  * -----------------------------------------------------------------------------
19  */
20 
21 #ifndef GNSS_SDR_DLL_PLL_CONF_FPGA_H
22 #define GNSS_SDR_DLL_PLL_CONF_FPGA_H
23 
25 #include <cstdint>
26 #include <string>
27 
28 /** \addtogroup Tracking
29  * \{ */
30 /** \addtogroup Tracking_libs
31  * \{ */
32 
33 
35 {
36 public:
38  void SetFromConfiguration(const ConfigurationInterface* configuration, const std::string& role);
39 
40  /* DLL/PLL tracking configuration */
41  std::string device_name;
42  std::string dump_filename;
43 
44  double fs_in;
45  double carrier_lock_th;
46 
47  float pll_pull_in_bw_hz;
48  float dll_pull_in_bw_hz;
49  float fll_bw_hz;
50  float pll_bw_hz;
51  float dll_bw_hz;
52  float pll_bw_narrow_hz;
53  float dll_bw_narrow_hz;
54  float early_late_space_chips;
55  float very_early_late_space_chips;
56  float early_late_space_narrow_chips;
57  float very_early_late_space_narrow_chips;
58  float slope;
59  float spc;
60  float y_intercept;
61  float cn0_smoother_alpha;
62  float carrier_lock_test_smoother_alpha;
63 
64  uint32_t pull_in_time_s; // signed integer, when pull in time is not yet reached it has to be compared against a negative number
65  uint32_t bit_synchronization_time_limit_s;
66  uint32_t vector_length;
67  uint32_t smoother_length;
68  uint32_t code_length_chips;
69  uint32_t code_samples_per_chip;
70  uint32_t extend_fpga_integration_periods;
71  uint32_t fpga_integration_period;
72 
73  int32_t fll_filter_order;
74  int32_t pll_filter_order;
75  int32_t dll_filter_order;
76  int32_t extend_correlation_symbols;
77  int32_t cn0_samples;
78  int32_t cn0_min;
79  int32_t max_code_lock_fail;
80  int32_t max_carrier_lock_fail;
81  int32_t cn0_smoother_samples;
82  int32_t carrier_lock_test_smoother_samples;
83  // int32_t max_lock_fail;
84 
85  int32_t* ca_codes;
86  int32_t* data_codes;
87 
88  char signal[3];
89  char system;
90 
91  bool extended_correlation_in_fpga;
92  bool track_pilot;
93  bool enable_doppler_correction;
94  bool enable_fll_pull_in;
95  bool enable_fll_steady_state;
96  bool carrier_aiding;
97  bool high_dyn;
98  bool dump;
99  bool dump_mat;
100 };
101 
102 
103 /** \} */
104 /** \} */
105 #endif // GNSS_SDR_DLL_PLL_CONF_FPGA_H
This abstract class represents an interface to configuration parameters.
This class represents an interface to configuration parameters.