GNSS-SDR  0.0.13
An Open Source GNSS Software Defined Receiver
gps_l1_ca_dll_pll_tracking.h
Go to the documentation of this file.
1 /*!
2  * \file gps_l1_ca_dll_pll_tracking.h
3  * \brief Interface of an adapter of a DLL+PLL tracking loop block
4  * for GPS L1 C/A to a TrackingInterface
5  * \author Carlos Aviles, 2010. carlos.avilesr(at)googlemail.com
6  * Javier Arribas, 2011. jarribas(at)cttc.es
7  *
8  * Code DLL + carrier PLL according to the algorithms described in:
9  * K.Borre, D.M.Akos, N.Bertelsen, P.Rinder, and S.H.Jensen,
10  * A Software-Defined GPS and Galileo Receiver. A Single-Frequency
11  * Approach, Birkhauser, 2007
12  *
13  * -----------------------------------------------------------------------------
14  *
15  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
16  *
17  * GNSS-SDR is a software defined Global Navigation
18  * Satellite Systems receiver
19  *
20  * This file is part of GNSS-SDR.
21  *
22  * SPDX-License-Identifier: GPL-3.0-or-later
23  *
24  * -----------------------------------------------------------------------------
25  */
26 
27 #ifndef GNSS_SDR_GPS_L1_CA_DLL_PLL_TRACKING_H
28 #define GNSS_SDR_GPS_L1_CA_DLL_PLL_TRACKING_H
29 
30 #include "dll_pll_veml_tracking.h"
31 #include "tracking_interface.h"
32 #include <string>
33 
35 
36 /*!
37  * \brief This class implements a code DLL + carrier PLL tracking loop
38  */
40 {
41 public:
43  const ConfigurationInterface* configuration,
44  const std::string& role,
45  unsigned int in_streams,
46  unsigned int out_streams);
47 
48  ~GpsL1CaDllPllTracking() = default;
49 
50  inline std::string role() override
51  {
52  return role_;
53  }
54 
55  //! Returns "GPS_L1_CA_DLL_PLL_Tracking"
56  inline std::string implementation() override
57  {
58  return "GPS_L1_CA_DLL_PLL_Tracking";
59  }
60 
61  inline size_t item_size() override
62  {
63  return item_size_;
64  }
65 
66  void connect(gr::top_block_sptr top_block) override;
67  void disconnect(gr::top_block_sptr top_block) override;
68  gr::basic_block_sptr get_left_block() override;
69  gr::basic_block_sptr get_right_block() override;
70 
71  /*!
72  * \brief Set tracking channel unique ID
73  */
74  void set_channel(unsigned int channel) override;
75 
76  /*!
77  * \brief Set acquisition/tracking common Gnss_Synchro object pointer
78  * to efficiently exchange synchronization data between acquisition and tracking blocks
79  */
80  void set_gnss_synchro(Gnss_Synchro* p_gnss_synchro) override;
81 
82  void start_tracking() override;
83 
84  /*!
85  * \brief Stop running tracking
86  */
87  void stop_tracking() override;
88 
89 private:
90  dll_pll_veml_tracking_sptr tracking_;
91  size_t item_size_;
92  unsigned int channel_;
93  std::string role_;
94  unsigned int in_streams_;
95  unsigned int out_streams_;
96 };
97 
98 #endif // GNSS_SDR_GPS_L1_CA_DLL_PLL_TRACKING_H
void set_gnss_synchro(Gnss_Synchro *p_gnss_synchro) override
Set acquisition/tracking common Gnss_Synchro object pointer to efficiently exchange synchronization d...
void set_channel(unsigned int channel) override
Set tracking channel unique ID.
std::string implementation() override
Returns "GPS_L1_CA_DLL_PLL_Tracking".
This is the class that contains the information that is shared by the processing blocks.
Definition: gnss_synchro.h:33
This abstract class represents an interface to configuration parameters.
Implementation of a code DLL + carrier PLL tracking block.
This abstract class represents an interface to a tracking block.
void stop_tracking() override
Stop running tracking.
This class implements a code DLL + carrier PLL tracking loop.
This class represents an interface to a tracking block.