GNSS-SDR  0.0.14
An Open Source GNSS Software Defined Receiver
galileo_e5b_telemetry_decoder.h
Go to the documentation of this file.
1 /*!
2  * \file galileo_e5b_telemetry_decoder.h
3  * \brief Interface of an adapter of a GALILEO E5B NAV data decoder block
4  * to a TelemetryDecoderInterface
5  * \author Piyush Gupta 2020 piyush04111999@gmail.com.
6  * \note Code added as part of GSoC 2020 Program.
7  *
8  *
9  * -----------------------------------------------------------------------------
10  *
11  * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
12  * This file is part of GNSS-SDR.
13  *
14  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
15  * SPDX-License-Identifier: GPL-3.0-or-later
16  *
17  * -----------------------------------------------------------------------------
18  */
19 
20 
21 #ifndef GNSS_SDR_GALILEO_E5B_TELEMETRY_DECODER_H
22 #define GNSS_SDR_GALILEO_E5B_TELEMETRY_DECODER_H
23 
25 #include "gnss_satellite.h"
26 #include "gnss_synchro.h"
28 #include "tlm_conf.h"
29 #include <gnuradio/runtime_types.h> // for basic_block_sptr, top_block_sptr
30 #include <cstddef> // for size_t
31 #include <string>
32 
33 /** \addtogroup Telemetry_Decoder
34  * \{ */
35 /** \addtogroup Telemetry_Decoder_adapters
36  * \{ */
37 
38 
40 
41 /*!
42  * \brief This class implements a NAV data decoder for Galileo INAV frames in E5b radio link
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  ~GalileoE5bTelemetryDecoder() = default;
54 
55  /*!
56  * \brief Returns "Galileo_E5b_Telemetry_Decoder"
57  */
58  inline std::string implementation() override
59  {
60  return "Galileo_E5b_Telemetry_Decoder";
61  }
62 
63  /*!
64  * \brief Connect
65  */
66  void connect(gr::top_block_sptr top_block) override;
67 
68  /*!
69  * \brief Disconnect
70  */
71  void disconnect(gr::top_block_sptr top_block) override;
72 
73  /*!
74  * \brief Get left block
75  */
76  gr::basic_block_sptr get_left_block() override;
77 
78  /*!
79  * \brief Get right block
80  */
81  gr::basic_block_sptr get_right_block() override;
82 
83  void set_satellite(const Gnss_Satellite& satellite) override;
84 
85  inline std::string role() override
86  {
87  return role_;
88  }
89 
90  inline void set_channel(int channel) override { telemetry_decoder_->set_channel(channel); }
91 
92  inline void reset() override
93  {
94  telemetry_decoder_->reset();
95  }
96 
97  inline size_t item_size() override
98  {
99  return sizeof(Gnss_Synchro);
100  }
101 
102 private:
103  galileo_telemetry_decoder_gs_sptr telemetry_decoder_;
104  Gnss_Satellite satellite_;
105  Tlm_Conf tlm_parameters_;
106  std::string role_;
107  int channel_;
108  unsigned int in_streams_;
109  unsigned int out_streams_;
110 };
111 
112 
113 /** \} */
114 /** \} */
115 #endif // GNSS_SDR_GALILEO_E5B_TELEMETRY_DECODER_H
std::string implementation() override
Returns "Galileo_E5b_Telemetry_Decoder".
Class that contains all the configuration parameters for generic telemetry decoder block...
This class implements a NAV data decoder for Galileo INAV frames in E5b radio link.
This class represents an interface to a telemetry decoder block.
gr::basic_block_sptr get_right_block() override
Get right 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.
void connect(gr::top_block_sptr top_block) override
Connect.
Implementation of a Galileo unified INAV and FNAV message demodulator block.
This abstract class represents an interface to a navigation GNSS block.
void disconnect(gr::top_block_sptr top_block) override
Disconnect.
gr::basic_block_sptr get_left_block() override
Get left block.
Interface of the Gnss_Synchro class.