GNSS-SDR  0.0.14
An Open Source GNSS Software Defined Receiver
galileo_e5a_telemetry_decoder.h
Go to the documentation of this file.
1 /*!
2  * \file galileo_e5a_telemetry_decoder.h
3  * \brief Interface of an adapter of a GALILEO E5a FNAV data decoder block
4  * to a TelemetryDecoderInterface
5  * \author Marc Sales, 2014. marcsales92(at)gmail.com
6  * \based on work from:
7  * <ul>
8  * <li> Javier Arribas, 2011. jarribas(at)cttc.es
9  * </ul>
10  *
11  *
12  * -----------------------------------------------------------------------------
13  *
14  * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
15  * This file is part of GNSS-SDR.
16  *
17  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
18  * SPDX-License-Identifier: GPL-3.0-or-later
19  *
20  * -----------------------------------------------------------------------------
21  */
22 
23 #ifndef GNSS_SDR_GALILEO_E5A_TELEMETRY_DECODER_H
24 #define GNSS_SDR_GALILEO_E5A_TELEMETRY_DECODER_H
25 
27 #include "gnss_satellite.h" // for Gnss_Satellite
28 #include "gnss_synchro.h"
30 #include "tlm_conf.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 /** \addtogroup Telemetry_Decoder
36  * \{ */
37 /** \addtogroup Telemetry_Decoder_adapters
38  * \{ */
39 
40 
42 
43 /*!
44  * \brief This class implements a NAV data decoder for Galileo INAV frames in E1B radio link
45  */
47 {
48 public:
50  const ConfigurationInterface* configuration,
51  const std::string& role,
52  unsigned int in_streams,
53  unsigned int out_streams);
54 
55  ~GalileoE5aTelemetryDecoder() = default;
56 
57  void connect(gr::top_block_sptr top_block) override;
58  void disconnect(gr::top_block_sptr top_block) override;
59  gr::basic_block_sptr get_left_block() override;
60  gr::basic_block_sptr get_right_block() override;
61 
62  void set_satellite(const Gnss_Satellite& satellite) override;
63 
64  inline std::string role() override
65  {
66  return role_;
67  }
68 
69  /*!
70  * \brief Returns "Galileo_E5a_Telemetry_Decoder"
71  */
72  inline std::string implementation() override
73  {
74  return "Galileo_E5A_Telemetry_Decoder";
75  }
76 
77  inline void set_channel(int channel) override { telemetry_decoder_->set_channel(channel); }
78 
79  inline void reset() override
80  {
81  telemetry_decoder_->reset();
82  }
83 
84  inline size_t item_size() override
85  {
86  return sizeof(Gnss_Synchro);
87  }
88 
89 private:
90  galileo_telemetry_decoder_gs_sptr telemetry_decoder_;
91  Gnss_Satellite satellite_;
92  Tlm_Conf tlm_parameters_;
93  std::string role_;
94  int channel_;
95  unsigned int in_streams_;
96  unsigned int out_streams_;
97 };
98 
99 
100 /** \} */
101 /** \} */
102 #endif // GNSS_SDR_GALILEO_E5A_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
This abstract class represents an interface to configuration parameters.
Interface of the Gnss_Satellite class.
This class represents a GNSS satellite.
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 INAV frames in E1B radio link.
std::string implementation() override
Returns "Galileo_E5a_Telemetry_Decoder".
Interface of the Gnss_Synchro class.