GNSS-SDR  0.0.13
An Open Source GNSS Software Defined Receiver
beidou_b1i_telemetry_decoder.h
Go to the documentation of this file.
1 /*!
2  * \file beidou_b1i_telemetry_decoder.h
3  * \brief Interface of an adapter of a Beidou B1I NAV data decoder block
4  * to a TelemetryDecoderInterface
5  * \author Damian Miralles, 2018. dmiralles2009@gmail.com
6  * \author Sergi Segura, 2018. sergi.segura.munoz(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_BEIDOU_B1I_TELEMETRY_DECODER_H
24 #define GNSS_SDR_BEIDOU_B1I_TELEMETRY_DECODER_H
25 
27 #include "gnss_satellite.h" // for Gnss_Satellite
28 #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 
35 
36 /*!
37  * \brief This class implements a NAV data decoder for BEIDOU B1I
38  */
40 {
41 public:
43  const ConfigurationInterface* configuration,
44  const std::string& role,
45  unsigned int in_streams,
46  unsigned int out_streams);
47 
48  ~BeidouB1iTelemetryDecoder() = default;
49 
50  void connect(gr::top_block_sptr top_block) override;
51  void disconnect(gr::top_block_sptr top_block) override;
52  gr::basic_block_sptr get_left_block() override;
53  gr::basic_block_sptr get_right_block() override;
54 
55  void set_satellite(const Gnss_Satellite& satellite) override;
56 
57  inline std::string role() override
58  {
59  return role_;
60  }
61 
62  //! Returns "BEIDOU_B1I_Telemetry_Decoder"
63  inline std::string implementation() override
64  {
65  return "BEIDOU_B1I_Telemetry_Decoder";
66  }
67 
68  inline void set_channel(int channel) override { telemetry_decoder_->set_channel(channel); }
69 
70  inline void reset() override
71  {
72  telemetry_decoder_->reset();
73  }
74 
75  inline size_t item_size() override
76  {
77  return sizeof(Gnss_Synchro);
78  }
79 
80 private:
81  beidou_b1i_telemetry_decoder_gs_sptr telemetry_decoder_;
82  Gnss_Satellite satellite_;
83  std::string dump_filename_;
84  std::string role_;
85  int channel_;
86  unsigned int in_streams_;
87  unsigned int out_streams_;
88  bool dump_;
89 };
90 
91 #endif
This class implements a NAV data decoder for BEIDOU B1I.
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.
Implementation of a BEIDOU BI1 DNAV data decoder block.
This abstract class represents an interface to a navigation GNSS block.
std::string implementation() override
Returns "BEIDOU_B1I_Telemetry_Decoder".
Interface of the Gnss_Synchro class.