GNSS-SDR  0.0.19
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  * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
10  * This file is part of GNSS-SDR.
11  *
12  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
13  * SPDX-License-Identifier: GPL-3.0-or-later
14  *
15  * -----------------------------------------------------------------------------
16  */
17 
18 #ifndef GNSS_SDR_BEIDOU_B3I_TELEMETRY_DECODER_H
19 #define GNSS_SDR_BEIDOU_B3I_TELEMETRY_DECODER_H
20 
22 #include "gnss_satellite.h" // for Gnss_Satellite
23 #include "gnss_synchro.h"
25 #include "tlm_conf.h"
26 #include <gnuradio/runtime_types.h> // for basic_block_sptr, top_block_sptr
27 #include <cstddef> // for size_t
28 #include <string>
29 
30 
31 /** \addtogroup Telemetry_Decoder
32  * \{ */
33 /** \addtogroup Telemetry_Decoder_adapters
34  * \{ */
35 
36 
38 
39 /*!
40  * \brief This class implements a NAV data decoder for BEIDOU B1I
41  */
43 {
44 public:
46  const ConfigurationInterface *configuration,
47  const std::string &role, unsigned int in_streams,
48  unsigned int out_streams);
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 { return role_; }
58 
59  //! Returns "BEIDOU_B3I_Telemetry_Decoder"
60  inline std::string implementation() override
61  {
62  return "BEIDOU_B3I_Telemetry_Decoder";
63  }
64 
65  inline void set_channel(int channel) override
66  {
67  telemetry_decoder_->set_channel(channel);
68  }
69 
70  inline void reset() override
71  {
72  telemetry_decoder_->reset();
73  }
74 
75  inline size_t item_size() override { return sizeof(Gnss_Synchro); }
76 
77 private:
78  beidou_b3i_telemetry_decoder_gs_sptr telemetry_decoder_;
79  Gnss_Satellite satellite_;
80  Tlm_Conf tlm_parameters_;
81  std::string role_;
82  unsigned int in_streams_;
83  unsigned int out_streams_;
84 };
85 
86 /** \} */
87 /** \} */
88 #endif
Implementation of a BEIDOU B3I DNAV data decoder block.
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.
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.