GNSS-SDR  0.0.13
An Open Source GNSS Software Defined Receiver
beamformer_filter.h
Go to the documentation of this file.
1 /*!
2  * \file beamformer_filter.h
3  * \brief Interface of an adapter of a digital beamformer
4  * \author Javier Arribas jarribas (at) cttc.es
5  *
6  * -----------------------------------------------------------------------------
7  *
8  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
9  *
10  * GNSS-SDR is a software defined Global Navigation
11  * Satellite Systems receiver
12  *
13  * This file is part of GNSS-SDR.
14  *
15  * SPDX-License-Identifier: GPL-3.0-or-later
16  *
17  * -----------------------------------------------------------------------------
18  */
19 
20 
21 #ifndef GNSS_SDR_BEAMFORMER_FILTER_H
22 #define GNSS_SDR_BEAMFORMER_FILTER_H
23 
24 #include "gnss_block_interface.h"
25 #include <gnuradio/hier_block2.h>
26 #include <cstdint>
27 #include <string>
28 
30 
31 /*!
32  * \brief Interface of an adapter of a digital beamformer block
33  * to a GNSSBlockInterface
34  */
36 {
37 public:
38  BeamformerFilter(const ConfigurationInterface* configuration,
39  const std::string& role, unsigned int in_stream,
40  unsigned int out_stream);
41 
42  ~BeamformerFilter() = default;
43 
44  inline std::string role() override
45  {
46  return role_;
47  }
48 
49  //! returns "Beamformer_Filte"
50  inline std::string implementation() override
51  {
52  return "Beamformer_Filter";
53  }
54 
55  inline size_t item_size() override
56  {
57  return item_size_;
58  }
59 
60  void connect(gr::top_block_sptr top_block) override;
61  void disconnect(gr::top_block_sptr top_block) override;
62  gr::basic_block_sptr get_left_block() override;
63  gr::basic_block_sptr get_right_block() override;
64 
65 private:
66  gr::block_sptr beamformer_;
67  gr::block_sptr file_sink_;
68  std::string role_;
69  std::string item_type_;
70  std::string dump_filename_;
71  size_t item_size_;
72  uint64_t samples_;
73  unsigned int in_stream_;
74  unsigned int out_stream_;
75  bool dump_;
76 };
77 
78 #endif // GNSS_SDR_BEAMFORMER_FILTER_H
Interface of an adapter of a digital beamformer block to a GNSSBlockInterface.
std::string implementation() override
returns "Beamformer_Filte"
This interface represents a GNSS block.
This abstract class represents an interface to configuration parameters.
This abstract class represents an interface to GNSS blocks.