GNSS-SDR  0.0.13
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  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
12  *
13  * GNSS-SDR is a software defined Global Navigation
14  * Satellite Systems receiver
15  *
16  * This file is part of GNSS-SDR.
17  *
18  * SPDX-License-Identifier: GPL-3.0-or-later
19  *
20  * -----------------------------------------------------------------------------
21  */
22 
23 
24 #ifndef GNSS_SDR_GALILEO_E5B_TELEMETRY_DECODER_H
25 #define GNSS_SDR_GALILEO_E5B_TELEMETRY_DECODER_H
26 
28 #include "gnss_satellite.h"
29 #include "gnss_synchro.h"
31 #include <gnuradio/runtime_types.h> // for basic_block_sptr, top_block_sptr
32 #include <cstddef> // for size_t
33 #include <string>
34 
35 
37 
38 /*!
39  * \brief This class implements a NAV data decoder for Galileo INAV frames in E5b radio link
40  */
42 {
43 public:
45  const ConfigurationInterface* configuration,
46  const std::string& role,
47  unsigned int in_streams,
48  unsigned int out_streams);
49 
50  ~GalileoE5bTelemetryDecoder() = default;
51 
52  /*!
53  * \brief Returns "Galileo_E5b_Telemetry_Decoder"
54  */
55  inline std::string implementation() override
56  {
57  return "Galileo_E5b_Telemetry_Decoder";
58  }
59 
60  /*!
61  * \brief Connect
62  */
63  void connect(gr::top_block_sptr top_block) override;
64 
65  /*!
66  * \brief Disconnect
67  */
68  void disconnect(gr::top_block_sptr top_block) override;
69 
70  /*!
71  * \brief Get left block
72  */
73  gr::basic_block_sptr get_left_block() override;
74 
75  /*!
76  * \brief Get right block
77  */
78  gr::basic_block_sptr get_right_block() override;
79 
80  void set_satellite(const Gnss_Satellite& satellite) override;
81 
82  inline std::string role() override
83  {
84  return role_;
85  }
86 
87  inline void set_channel(int channel) override { telemetry_decoder_->set_channel(channel); }
88 
89  inline void reset() override
90  {
91  telemetry_decoder_->reset();
92  }
93 
94  inline size_t item_size() override
95  {
96  return sizeof(Gnss_Synchro);
97  }
98 
99 private:
100  galileo_telemetry_decoder_gs_sptr telemetry_decoder_;
101  Gnss_Satellite satellite_;
102  std::string dump_filename_;
103  std::string role_;
104  int channel_;
105  unsigned int in_streams_;
106  unsigned int out_streams_;
107  bool dump_;
108 };
109 
110 #endif // GNSS_SDR_GALILEO_E5B_TELEMETRY_DECODER_H
std::string implementation() override
Returns "Galileo_E5b_Telemetry_Decoder".
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:33
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.