GNSS-SDR  0.0.13
An Open Source GNSS Software Defined Receiver
sbas_l1_telemetry_decoder.h
Go to the documentation of this file.
1 /*!
2  * \file sbas_l1_telemetry_decoder.h
3  * \brief Interface of an adapter of a SBAS telemetry data decoder block
4  * to a TelemetryDecoderInterface
5  * \author Daniel Fehr 2013. daniel.co(at)bluewin.ch
6  *
7  * -----------------------------------------------------------------------------
8  *
9  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
10  *
11  * GNSS-SDR is a software defined Global Navigation
12  * Satellite Systems receiver
13  *
14  * This file is part of GNSS-SDR.
15  *
16  * SPDX-License-Identifier: GPL-3.0-or-later
17  *
18  * -----------------------------------------------------------------------------
19  */
20 
21 
22 #ifndef GNSS_SDR_SBAS_L1_TELEMETRY_DECODER_H
23 #define GNSS_SDR_SBAS_L1_TELEMETRY_DECODER_H
24 
25 
26 #include "gnss_satellite.h" // for Gnss_Satellite
27 #include "gnss_synchro.h"
30 #include <gnuradio/runtime_types.h> // for basic_block_sptr, top_block_sptr
31 #include <cstddef> // for size_t
32 #include <string>
33 
34 
36 
37 /*!
38  * \brief This class implements a NAV data decoder for SBAS frames in L1 radio link
39  */
41 {
42 public:
44  const ConfigurationInterface* configuration,
45  const std::string& role,
46  unsigned int in_streams,
47  unsigned int out_streams);
48 
49  ~SbasL1TelemetryDecoder() = default;
50 
51  inline std::string role() override
52  {
53  return role_;
54  }
55 
56  /*!
57  * \brief Returns "SBAS_L1_Telemetry_Decoder"
58  */
59  inline std::string implementation() override
60  {
61  return "SBAS_L1_Telemetry_Decoder";
62  }
63 
64  void connect(gr::top_block_sptr top_block) override;
65  void disconnect(gr::top_block_sptr top_block) override;
66  gr::basic_block_sptr get_left_block() override;
67  gr::basic_block_sptr get_right_block() override;
68 
69  void set_satellite(const Gnss_Satellite& satellite) override;
70 
71  inline void set_channel(int channel) override { telemetry_decoder_->set_channel(channel); }
72 
73  inline void reset() override
74  {
75  telemetry_decoder_->reset();
76  }
77 
78  inline size_t item_size() override
79  {
80  return sizeof(Gnss_Synchro);
81  }
82 
83 private:
84  sbas_l1_telemetry_decoder_gs_sptr telemetry_decoder_;
85  Gnss_Satellite satellite_;
86  std::string dump_filename_;
87  std::string role_;
88  int channel_;
89  unsigned int in_streams_;
90  unsigned int out_streams_;
91  bool dump_;
92 };
93 
94 #endif
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:33
This abstract class represents an interface to configuration parameters.
Interface of the Gnss_Satellite class.
This class represents a GNSS satellite.
std::string implementation() override
Returns "SBAS_L1_Telemetry_Decoder".
Interface of a SBAS telemetry data decoder block.
This class implements a NAV data decoder for SBAS frames in L1 radio link.
This abstract class represents an interface to a navigation GNSS block.
Interface of the Gnss_Synchro class.