GNSS-SDR  0.0.13
An Open Source GNSS Software Defined Receiver
array_signal_conditioner.h
Go to the documentation of this file.
1 /*!
2  * \file array_signal_conditioner.h
3  * \brief It wraps blocks to change data type, filter and resample input data, adapted to array receiver
4  * \author Javier Arribas jarribas (at) cttc.es
5  *
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_ARRAY_SIGNAL_CONDITIONER_H
22 #define GNSS_SDR_ARRAY_SIGNAL_CONDITIONER_H
23 
24 
25 #include "gnss_block_interface.h"
26 #include <gnuradio/block.h>
27 #include <cstddef>
28 #include <memory>
29 #include <string>
30 
31 
33 
34 
35 /*!
36  * \brief This class wraps blocks to change data_type_adapter, input_filter and resampler
37  * to be applied to the input flow of sampled signal.
38  */
40 {
41 public:
42  //! Constructor
44  std::shared_ptr<GNSSBlockInterface> data_type_adapt, std::shared_ptr<GNSSBlockInterface> in_filt,
45  std::shared_ptr<GNSSBlockInterface> res, std::string role, std::string implementation);
46 
47  //! Destructor
48  ~ArraySignalConditioner() = 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  inline std::string role() override { return role_; }
56  //! Returns "Array_Signal_Conditioner"
57  inline std::string implementation() override { return "Array_Signal_Conditioner"; }
58  inline size_t item_size() override { return 0; }
59 
60  inline std::shared_ptr<GNSSBlockInterface> data_type_adapter() { return data_type_adapt_; }
61  inline std::shared_ptr<GNSSBlockInterface> input_filter() { return in_filt_; }
62  inline std::shared_ptr<GNSSBlockInterface> resampler() { return res_; }
63 
64 private:
65  std::shared_ptr<GNSSBlockInterface> data_type_adapt_;
66  std::shared_ptr<GNSSBlockInterface> in_filt_;
67  std::shared_ptr<GNSSBlockInterface> res_;
68  std::string role_;
69  std::string implementation_;
70  bool connected_;
71 };
72 
73 #endif // GNSS_SDR_SIGNAL_CONDITIONER_H
~ArraySignalConditioner()=default
Destructor.
This interface represents a GNSS block.
This abstract class represents an interface to configuration parameters.
std::string implementation() override
Returns "Array_Signal_Conditioner".
ArraySignalConditioner(const ConfigurationInterface *configuration, std::shared_ptr< GNSSBlockInterface > data_type_adapt, std::shared_ptr< GNSSBlockInterface > in_filt, std::shared_ptr< GNSSBlockInterface > res, std::string role, std::string implementation)
Constructor.
This class wraps blocks to change data_type_adapter, input_filter and resampler to be applied to the ...
This abstract class represents an interface to GNSS blocks.