GNSS-SDR  0.0.19
An Open Source GNSS Software Defined Receiver
gps_l2_m_dll_pll_tracking_fpga.h
Go to the documentation of this file.
1 /*!
2  * \file gps_l2_m_dll_pll_tracking_fpga.h
3  * \brief Interface of an adapter of a DLL+PLL tracking loop block
4  * for GPS L2C to a TrackingInterface for the FPGA
5  * \author Marc Majoral, 2019, mmajoral(at)cttc.es
6  *
7  * Code DLL + carrier PLL according to the algorithms described in:
8  * K.Borre, D.M.Akos, N.Bertelsen, P.Rinder, and S.H.Jensen,
9  * A Software-Defined GPS and Galileo Receiver. A Single-Frequency
10  * Approach, Birkhauser, 2007
11  *
12  * -----------------------------------------------------------------------------
13  *
14  * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
15  * This file is part of GNSS-SDR.
16  *
17  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
18  * SPDX-License-Identifier: GPL-3.0-or-later
19  *
20  * -----------------------------------------------------------------------------
21  */
22 
23 #ifndef GNSS_SDR_GPS_L2_M_DLL_PLL_TRACKING_FPGA_H
24 #define GNSS_SDR_GPS_L2_M_DLL_PLL_TRACKING_FPGA_H
25 
27 #include "tracking_interface.h"
28 #include <gnuradio/runtime_types.h>
29 #include <cstddef>
30 #include <string>
31 
32 /** \addtogroup Tracking
33  * \{ */
34 /** \addtogroup Tracking_adapters
35  * \{ */
36 
37 
38 class Gnss_Synchro;
40 
41 /*!
42  * \brief This class implements a code DLL + carrier PLL tracking loop
43  */
45 {
46 public:
48  const ConfigurationInterface* configuration,
49  const std::string& role,
50  unsigned int in_streams,
51  unsigned int out_streams);
52 
53  virtual ~GpsL2MDllPllTrackingFpga();
54 
55  inline std::string role() override
56  {
57  return role_;
58  }
59 
60  //! Returns "GPS_L2_M_DLL_PLL_Tracking_Fpga"
61  inline std::string implementation() override
62  {
63  return "GPS_L2_M_DLL_PLL_Tracking_Fpga";
64  }
65 
66  inline size_t item_size() override
67  {
68  return sizeof(int);
69  }
70 
71  void connect(gr::top_block_sptr top_block) override;
72  void disconnect(gr::top_block_sptr top_block) override;
73  gr::basic_block_sptr get_left_block() override;
74  gr::basic_block_sptr get_right_block() override;
75 
76  /*!
77  * \brief Set tracking channel unique ID
78  */
79  void set_channel(unsigned int channel) override;
80 
81  /*!
82  * \brief Set acquisition/tracking common Gnss_Synchro object pointer
83  * to efficiently exchange synchronization data between acquisition and tracking blocks
84  */
85  void set_gnss_synchro(Gnss_Synchro* p_gnss_synchro) override;
86 
87  void start_tracking() override;
88 
89  /*!
90  * \brief Stop running tracking
91  */
92  void stop_tracking() override;
93 
94 private:
95  const std::string default_device_name_GPS_L2 = "multicorrelator_resampler_S00_AXI"; // UIO device name
96  static const uint32_t NUM_PRNs = 32;
97 
98  dll_pll_veml_tracking_fpga_sptr tracking_fpga_sc_sptr_;
99  std::string role_;
100  std::string device_name_;
101  int* prn_codes_ptr_;
102  uint32_t num_prev_assigned_ch_;
103  unsigned int channel_;
104  unsigned int in_streams_;
105  unsigned int out_streams_;
106 };
107 
108 
109 /** \} */
110 /** \} */
111 #endif // GNSS_SDR_GPS_L2_M_DLL_PLL_TRACKING_FPGA_H
Implementation of a code DLL + carrier PLL tracking block using an FPGA.
void stop_tracking() override
Stop running tracking.
std::string implementation() override
Returns "GPS_L2_M_DLL_PLL_Tracking_Fpga".
void set_gnss_synchro(Gnss_Synchro *p_gnss_synchro) override
Set acquisition/tracking common Gnss_Synchro object pointer to efficiently exchange synchronization d...
This is the class that contains the information that is shared by the processing blocks.
Definition: gnss_synchro.h:38
This abstract class represents an interface to configuration parameters.
void set_channel(unsigned int channel) override
Set tracking channel unique ID.
This abstract class represents an interface to a tracking block.
This class implements a code DLL + carrier PLL tracking loop.
This class represents an interface to a tracking block.