GNSS-SDR  0.0.13
An Open Source GNSS Software Defined Receiver
beidou_b3i_telemetry_decoder.h
Go to the documentation of this file.
1 /*!
2  * \file beidou_b3i_telemetry_decoder.h
3  * \brief Interface of an adapter of a Beidou B3I NAV data decoder block
4  * to a TelemetryDecoderInterface
5  * \author Damian Miralles, 2019. dmiralles2009@gmail.com
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 #ifndef GNSS_SDR_BEIDOU_B3I_TELEMETRY_DECODER_H
22 #define GNSS_SDR_BEIDOU_B3I_TELEMETRY_DECODER_H
23 
25 #include "gnss_satellite.h" // for Gnss_Satellite
26 #include "gnss_synchro.h"
28 #include <gnuradio/runtime_types.h> // for basic_block_sptr, top_block_sptr
29 #include <cstddef> // for size_t
30 #include <string>
31 
33 
34 /*!
35  * \brief This class implements a NAV data decoder for BEIDOU B1I
36  */
38 {
39 public:
41  const ConfigurationInterface *configuration,
42  const std::string &role, unsigned int in_streams,
43  unsigned int out_streams);
44 
45  ~BeidouB3iTelemetryDecoder() = default;
46 
47  void connect(gr::top_block_sptr top_block) override;
48  void disconnect(gr::top_block_sptr top_block) override;
49  gr::basic_block_sptr get_left_block() override;
50  gr::basic_block_sptr get_right_block() override;
51 
52  void set_satellite(const Gnss_Satellite &satellite) override;
53 
54  inline std::string role() override { return role_; }
55 
56  //! Returns "BEIDOU_B3I_Telemetry_Decoder"
57  inline std::string implementation() override
58  {
59  return "BEIDOU_B3I_Telemetry_Decoder";
60  }
61 
62  inline void set_channel(int channel) override
63  {
64  telemetry_decoder_->set_channel(channel);
65  }
66 
67  inline void reset() override
68  {
69  telemetry_decoder_->reset();
70  }
71 
72  inline size_t item_size() override { return sizeof(Gnss_Synchro); }
73 
74 private:
75  beidou_b3i_telemetry_decoder_gs_sptr telemetry_decoder_;
76  Gnss_Satellite satellite_;
77  std::string dump_filename_;
78  std::string role_;
79  int channel_;
80  unsigned int in_streams_;
81  unsigned int out_streams_;
82  bool dump_;
83 };
84 
85 #endif
Implementation of a BEIDOU B3I DNAV data 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:33
This abstract class represents an interface to configuration parameters.
Interface of the Gnss_Satellite class.
This class represents a GNSS satellite.
This abstract class represents an interface to a navigation GNSS block.
This class implements a NAV data decoder for BEIDOU B1I.
std::string implementation() override
Returns "BEIDOU_B3I_Telemetry_Decoder".
Interface of the Gnss_Synchro class.