GNSS-SDR  0.0.19
An Open Source GNSS Software Defined Receiver
acq_conf_fpga.h
Go to the documentation of this file.
1 /*!
2  * \file acq_conf_fpga.h
3  * \brief Class that contains all the configuration parameters for generic
4  * acquisition block based on the PCPS algorithm running in the FPGA.
5  * \author Marc Majoral, 2022. mmajoral(at)cttc.es
6  *
7  * -----------------------------------------------------------------------------
8  *
9  * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
10  * This file is part of GNSS-SDR.
11  *
12  * Copyright (C) 2010-2022 (see AUTHORS file for a list of contributors)
13  * SPDX-License-Identifier: GPL-3.0-or-later
14  *
15  * -----------------------------------------------------------------------------
16  */
17 
18 #ifndef GNSS_SDR_ACQ_CONF_FPGA_H
19 #define GNSS_SDR_ACQ_CONF_FPGA_H
20 
22 #include <gnuradio/gr_complex.h>
23 #include <cstdint>
24 #include <string>
25 
26 /** \addtogroup Acquisition
27  * \{ */
28 /** \addtogroup acquisition_libs acquisition_libs
29  * Library with utilities for GNSS signal acquisition
30  * \{ */
31 
32 
34 {
35 public:
36  Acq_Conf_Fpga() = default;
37 
38  void SetFromConfiguration(const ConfigurationInterface *configuration, const std::string &role, uint32_t sel_queue_fpga, uint32_t blk_exp, uint32_t downsampling_factor_default, double chip_rate, double code_length_chips);
39 
40  /* PCPS Acquisition configuration */
41  std::string device_name = "uio0";
42  uint32_t *all_fft_codes = NULL; // pointer to memory that contains all the code ffts
43  int64_t fs_in{4000000LL};
44 
45  float doppler_step{250.0};
46  float doppler_step2{125.0};
47 
48  uint32_t num_doppler_bins_step2{4U};
49 
50  int32_t doppler_max{5000};
51 
52  uint32_t select_queue_Fpga{0U};
53  uint32_t downsampling_factor{4U};
54  uint32_t total_block_exp{13U};
55  uint32_t excludelimit{5U};
56  uint32_t max_num_acqs{2U};
57  uint32_t samples_per_code{1U};
58  uint32_t code_length{16000U};
59  bool make_2_steps{false};
60  bool repeat_satellite{false};
61 
62 private:
63  const std::string acquisition_device_name = "acquisition_S00_AXI"; // UIO device name
64 };
65 
66 
67 /** \} */
68 /** \} */
69 #endif // GNSS_SDR_ACQ_CONF_FPGA_H
This abstract class represents an interface to configuration parameters.
This class represents an interface to configuration parameters.