GNSS-SDR  0.0.13
An Open Source GNSS Software Defined Receiver
galileo_e1b_telemetry_decoder.h
Go to the documentation of this file.
1 /*!
2  * \file galileo_e1b_telemetry_decoder.h
3  * \brief Interface of an adapter of a GALILEO E1B NAV data decoder block
4  * to a TelemetryDecoderInterface
5  * \author Javier Arribas 2013 jarribas(at)cttc.es,
6  * Mara Branzanti 2013. mara.branzanti(at)gmail.com
7  *
8  * -----------------------------------------------------------------------------
9  *
10  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
11  *
12  * GNSS-SDR is a software defined Global Navigation
13  * Satellite Systems receiver
14  *
15  * This file is part of GNSS-SDR.
16  *
17  * SPDX-License-Identifier: GPL-3.0-or-later
18  *
19  * -----------------------------------------------------------------------------
20  */
21 
22 
23 #ifndef GNSS_SDR_GALILEO_E1B_TELEMETRY_DECODER_H
24 #define GNSS_SDR_GALILEO_E1B_TELEMETRY_DECODER_H
25 
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 E1B 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  ~GalileoE1BTelemetryDecoder() = default;
51 
52  void connect(gr::top_block_sptr top_block) override;
53  void disconnect(gr::top_block_sptr top_block) override;
54  gr::basic_block_sptr get_left_block() override;
55  gr::basic_block_sptr get_right_block() override;
56 
57  void set_satellite(const Gnss_Satellite& satellite) override;
58 
59  inline std::string role() override
60  {
61  return role_;
62  }
63 
64  /*!
65  * \brief Returns "Galileo_E1B_Telemetry_Decoder"
66  */
67  inline std::string implementation() override
68  {
69  return "Galileo_E1B_Telemetry_Decoder";
70  }
71 
72  inline void set_channel(int channel) override { telemetry_decoder_->set_channel(channel); }
73 
74  inline void reset() override
75  {
76  telemetry_decoder_->reset();
77  }
78 
79  inline size_t item_size() override
80  {
81  return sizeof(Gnss_Synchro);
82  }
83 
84 private:
85  galileo_telemetry_decoder_gs_sptr telemetry_decoder_;
86  Gnss_Satellite satellite_;
87  std::string dump_filename_;
88  std::string role_;
89  int channel_;
90  unsigned int in_streams_;
91  unsigned int out_streams_;
92  bool dump_;
93 };
94 
95 #endif
This class represents an interface to a telemetry decoder block.
This class implements a NAV data decoder for Galileo INAV frames in E1B radio link.
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.
std::string implementation() override
Returns "Galileo_E1B_Telemetry_Decoder".
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.
Interface of the Gnss_Synchro class.