GNSS-SDR  0.0.14
An Open Source GNSS Software Defined Receiver
gps_l1_ca_telemetry_decoder.h
Go to the documentation of this file.
1 /*!
2  * \file gps_l1_ca_telemetry_decoder.h
3  * \brief Interface of an adapter of a GPS L1 C/A NAV data decoder block
4  * to a TelemetryDecoderInterface
5  * \author Javier Arribas, 2011. jarribas(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-2020 (see AUTHORS file for a list of contributors)
13  * SPDX-License-Identifier: GPL-3.0-or-later
14  *
15  * -----------------------------------------------------------------------------
16  */
17 
18 
19 #ifndef GNSS_SDR_GPS_L1_CA_TELEMETRY_DECODER_H
20 #define GNSS_SDR_GPS_L1_CA_TELEMETRY_DECODER_H
21 
22 #include "gnss_satellite.h" // for Gnss_Satellite
23 #include "gnss_synchro.h"
26 #include "tlm_conf.h"
27 #include <gnuradio/runtime_types.h> // for basic_block_sptr, top_block_sptr
28 #include <cstddef> // for size_t
29 #include <string>
30 
31 /** \addtogroup Telemetry_Decoder Telemetry Decoder
32  * Classes for the decoding of GNSS Navigation messages.
33  * \{ */
34 /** \addtogroup Telemetry_Decoder_adapters telemetry_decoder_adapters
35  * Wrap GNU Radio blocs for the decoding of GNSS Navigation messages with a
36  * TelemetryDecoderInterface
37  * \{ */
38 
39 
41 
42 /*!
43  * \brief This class implements a NAV data decoder for GPS L1 C/A
44  */
46 {
47 public:
49  const ConfigurationInterface* configuration,
50  const std::string& role,
51  unsigned int in_streams,
52  unsigned int out_streams);
53 
54  ~GpsL1CaTelemetryDecoder() = default;
55 
56  void connect(gr::top_block_sptr top_block) override;
57  void disconnect(gr::top_block_sptr top_block) override;
58  gr::basic_block_sptr get_left_block() override;
59  gr::basic_block_sptr get_right_block() override;
60 
61  void set_satellite(const Gnss_Satellite& satellite) override;
62 
63  inline std::string role() override
64  {
65  return role_;
66  }
67 
68  //! Returns "GPS_L1_CA_Telemetry_Decoder"
69  inline std::string implementation() override
70  {
71  return "GPS_L1_CA_Telemetry_Decoder";
72  }
73 
74  inline void set_channel(int channel) override { telemetry_decoder_->set_channel(channel); }
75 
76  inline void reset() override
77  {
78  telemetry_decoder_->reset();
79  }
80 
81  inline size_t item_size() override
82  {
83  return sizeof(Gnss_Synchro);
84  }
85 
86 private:
87  gps_l1_ca_telemetry_decoder_gs_sptr telemetry_decoder_;
88  Gnss_Satellite satellite_;
89  Tlm_Conf tlm_parameters_;
90  std::string role_;
91  int channel_;
92  unsigned int in_streams_;
93  unsigned int out_streams_;
94 };
95 
96 
97 /** \} */
98 /** \} */
99 #endif // GNSS_SDR_GPS_L1_CA_TELEMETRY_DECODER_H
This class implements a NAV data decoder for GPS L1 C/A.
Class that contains all the configuration parameters for generic telemetry decoder block...
This class represents an interface to a telemetry decoder block.
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.
Interface of the Gnss_Satellite class.
This class represents a GNSS satellite.
Interface of a NAV message demodulator block based on Kay Borre book MATLAB-based GPS receiver...
This abstract class represents an interface to a navigation GNSS block.
std::string implementation() override
Returns "GPS_L1_CA_Telemetry_Decoder".
Interface of the Gnss_Synchro class.