GNSS-SDR  0.0.19
An Open Source GNSS Software Defined Receiver
gps_l2c_telemetry_decoder.h
Go to the documentation of this file.
1 /*!
2  * \file gps_l2c_telemetry_decoder.h
3  * \brief Interface of an adapter of a GPS L2C (CNAV) data decoder block
4  * to a TelemetryDecoderInterface
5  * \author Javier Arribas, 2015. 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_L2C_TELEMETRY_DECODER_H
20 #define GNSS_SDR_GPS_L2C_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 
32 /** \addtogroup Telemetry_Decoder
33  * \{ */
34 /** \addtogroup Telemetry_Decoder_adapters
35  * \{ */
36 
37 
39 
40 /*!
41  * \brief This class implements a NAV data decoder for GPS L2 M
42  */
44 {
45 public:
47  const ConfigurationInterface* configuration,
48  const std::string& role,
49  unsigned int in_streams,
50  unsigned int out_streams);
51 
52  inline std::string role() override
53  {
54  return role_;
55  }
56 
57  //! Returns "GPS_L2C_Telemetry_Decoder"
58  inline std::string implementation() override
59  {
60  return "GPS_L2C_Telemetry_Decoder";
61  }
62 
63  void connect(gr::top_block_sptr top_block) override;
64  void disconnect(gr::top_block_sptr top_block) override;
65  gr::basic_block_sptr get_left_block() override;
66  gr::basic_block_sptr get_right_block() override;
67 
68  void set_satellite(const Gnss_Satellite& satellite) override;
69 
70  inline void set_channel(int channel) override { telemetry_decoder_->set_channel(channel); }
71 
72  inline void reset() override
73  {
74  telemetry_decoder_->reset();
75  }
76 
77  inline size_t item_size() override
78  {
79  return sizeof(Gnss_Synchro);
80  }
81 
82 private:
83  gps_l2c_telemetry_decoder_gs_sptr telemetry_decoder_;
84  Gnss_Satellite satellite_;
85  Tlm_Conf tlm_parameters_;
86  std::string role_;
87  unsigned int in_streams_;
88  unsigned int out_streams_;
89 };
90 
91 
92 /** \} */
93 /** \} */
94 #endif // GNSS_SDR_GPS_L2C_TELEMETRY_DECODER_H
Class that contains all the configuration parameters for generic telemetry decoder block...
This class represents an interface to a telemetry decoder block.
Interface of a CNAV message demodulator block.
This is the class that contains the information that is shared by the processing blocks.
Definition: gnss_synchro.h:38
This class implements a NAV data decoder for GPS L2 M.
This abstract class represents an interface to configuration parameters.
Interface of the Gnss_Satellite class.
This class represents a GNSS satellite.
This abstract class represents an interface to a navigation GNSS block.
Interface of the Gnss_Synchro class.
std::string implementation() override
Returns "GPS_L2C_Telemetry_Decoder".