GNSS-SDR  0.0.19
An Open Source GNSS Software Defined Receiver
gps_l1_ca_dll_pll_tracking_gpu.h
Go to the documentation of this file.
1 /*!
2  * \file gps_l1_ca_dll_pll_tracking_gpu.h
3  * \brief Implementation of an adapter of a DLL+PLL tracking loop block using GPU accelerated functions
4  * for GPS L1 C/A to a TrackingInterface
5  * \author Javier Arribas, 2015. jarribas(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_L1_CA_DLL_PLL_TRACKING_GPU_H
24 #define GNSS_SDR_GPS_L1_CA_DLL_PLL_TRACKING_GPU_H
25 
27 #include "tracking_interface.h"
28 #include <string>
29 
30 /** \addtogroup Tracking
31  * \{ */
32 /** \addtogroup Tracking_adapters
33  * \{ */
34 
35 
37 
38 /*!
39  * \brief This class implements a code DLL + carrier PLL tracking loop using GPU accelerated functions
40  */
42 {
43 public:
45  const ConfigurationInterface* configuration,
46  std::string role,
47  unsigned int in_streams,
48  unsigned int out_streams);
49 
50  virtual ~GpsL1CaDllPllTrackingGPU();
51 
52  inline std::string role() override
53  {
54  return role_;
55  }
56 
57  //! Returns "GPS_L1_CA_DLL_PLL_Tracking_GPU"
58  inline std::string implementation() override
59  {
60  return "GPS_L1_CA_DLL_PLL_Tracking_GPU";
61  }
62 
63  inline size_t item_size() override
64  {
65  return item_size_;
66  }
67 
68  void connect(gr::top_block_sptr top_block) override;
69  void disconnect(gr::top_block_sptr top_block) override;
70  gr::basic_block_sptr get_left_block() override;
71  gr::basic_block_sptr get_right_block() override;
72 
73  /*!
74  * \brief Set tracking channel unique ID
75  */
76  void set_channel(unsigned int channel) override;
77 
78  /*!
79  * \brief Set acquisition/tracking common Gnss_Synchro object pointer
80  * to efficiently exchange synchronization data between acquisition and tracking blocks
81  */
82  void set_gnss_synchro(Gnss_Synchro* p_gnss_synchro) override;
83 
84  void start_tracking() override;
85 
86  /*!
87  * \brief Stop running tracking
88  */
89  void stop_tracking() override;
90 
91 private:
92  gps_l1_ca_dll_pll_tracking_gpu_cc_sptr tracking_;
93  size_t item_size_;
94  unsigned int channel_;
95  std::string role_;
96  unsigned int in_streams_;
97  unsigned int out_streams_;
98 };
99 
100 
101 /** \} */
102 /** \} */
103 #endif // GNSS_SDR_GPS_L1_CA_DLL_PLL_TRACKING_GPU_H
void set_channel(unsigned int channel) override
Set tracking channel unique ID.
void stop_tracking() override
Stop running tracking.
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_gnss_synchro(Gnss_Synchro *p_gnss_synchro) override
Set acquisition/tracking common Gnss_Synchro object pointer to efficiently exchange synchronization d...
Implementation of a code DLL + carrier PLL tracking block, GPU ACCELERATED.
This abstract class represents an interface to a tracking block.
std::string implementation() override
Returns "GPS_L1_CA_DLL_PLL_Tracking_GPU".
This class implements a code DLL + carrier PLL tracking loop using GPU accelerated functions...
This class represents an interface to a tracking block.