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